HTTP Error 422


I had an import which loads salesforce data into Anaplan using the RestAPI fail today with the 422 error code below:



  "status": {
    "code": 422,
    "message": "Unprocessable Entity"
  "path": "/2/0/workspaces/8a81b08e5cdbe172015cfb45189104ca/models/43955D63B8BD4E3FA3EA72776BE2CC41/files/113000000080",
  "timestamp": "2022-02-02T22:58:40.507838Z"


 It took me a while to figure out the source of the error as it was not obvious based on the error code, so I wanted to share the reason for the error so it is on the community.

The 422 error means Anaplan received the request and the request was in the right format, but it couldn't process the request. In checking the reason my import failed was because the target model had been archived without me knowing. 

So my integrations where sending the right information but the model was not available.


Hope this helps others avoid some needless head-scratching.