Frequent Contributor

Postman POST command to run process is stuck in "NOT_STARTED"

Hi experts,

Hope you can help with this. 

I'm running a process that runs an import action from Postman and I get a status 200 every time. The problem is the process isn't running. When I check the status I get "NOT_STARTED". Does anyone know why this is happening?

The process is an import action that updates a boolean (1 cell) from TRUE to FALSE. Pretty simple.

If I run the process from within Anaplan it works without error.

Screenshots:

Postman POST runs fine.

Screen Shot 2019-11-05 at 6.39.46 PM.pngScreen Shot 2019-11-05 at 6.40.02 PM.png

8 REPLIES 8
Occasional Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

Hi Jared,

 

I would try troubleshooting this by running a POST on the import action itself rather than the process. You can do so by doing the following:

 

POST: https://api.anaplan.com/1/3/workspaces/<workspaceID>/models/<modelID>/imports/<importID>/tasks 

 

Then verify if you see a similar response as you had mentioned from the task ID on the GET request. 

 

GET: POST: https://api.anaplan.com/1/3/workspaces/<workspaceID>/models/<modelID>/imports/<importID>/tasks/taskI...

 

 

My guess is the import itself is throwing an error which is why the process is not able to get started, even though you have successfully triggered it using a POST request.

 

Let me know if this helps!

Frequent Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

Thank you @ankit_bhargava  and @nathan_rudman. Really appreciate the quick response!

 

@ankit_bhargava I think you're right. I'm getting an error when I run the import from Postman. But, if I run the import while inside of Anaplan it runs fine. Do you have any thoughts as to why I'm getting this error and what I can do to get this action to run properly?

 

@nathan_rudman I've added the screenshots of the URL

 

Here's the action I'm trying to run from Postman:

 

Screen Shot 2019-11-06 at 7.08.55 AM.png

 

When I run this action in Anaplan it runs fine and resets the boolean flag to FALSE:

 

Screen Shot 2019-11-06 at 7.09.20 AM.png

 

Here is the ImportID of the action taken from Postman:

 

Screen Shot 2019-11-06 at 7.09.50 AM.png

 

When I run this action from Postman, I get this error: "Null Pointer"

 

Screen Shot 2019-11-06 at 9.13.39 AM.png

I get the task ID no problem.

 

Screen Shot 2019-11-06 at 9.14.58 AM.png

 

And I get the same response: Not Started

 

Screen Shot 2019-11-06 at 9.21.51 AM.png

 

Super Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

could you show us your url/headers/body ?

Nathan Rudman
Anaplan Model Builder
Frequent Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

@nathan_rudman here are the screenshots of the postman POST request:

 

Screen Shot 2019-11-06 at 9.25.55 AM.pngScreen Shot 2019-11-06 at 9.26.11 AM.pngScreen Shot 2019-11-06 at 9.26.32 AM.png

Occasional Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

Hi Jared,

 

For POST requests you need body: raw where it is defined as:

{
"localeName": "en_US"
}

 

Please see my screenshot and try adding this and re-running the taskPOST1.png

Frequent Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

You rock @ankit_bhargava. Thank you, thank you, that solved the problem.

I have marked it as the solution!

Way to go.

Super Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

I was onto it

 

same is true for export by the way

Nathan Rudman
Anaplan Model Builder
Frequent Contributor

Re: Postman POST command to run process is stuck in "NOT_STARTED"

@nathan_rudman,

Yeah, you asked for the screenshot. I think that's what got us the answer. Thank you!

I must of overlooked it. All my other POST requests have this tag in the body.

Really appreciate all you do @nathan_rudman. I follow these issues all day - not sure how you're able to answer all these questions.