Skip to main content
Best answer

Error:: Failed to create a task in Asana. The app returned "Unable to fetch custom for the project: Status code 400"

  • November 10, 2022
  • 9 replies
  • 197 views

Forum|alt.badge.img

Hello,

 

I am creating a “new user onboarding” flow that takes data from a new form submission → google sheets → slack (for alert) → Freshdesk (for ticket) → then Asana (for template copy). I need Asana to do 3 things:

Task #1 - Create a new project from template and name it with “[variableName] - Onboarding” (this works fine)

Task #2 - Look up project “[variableName] - Onboarding” 

Task #3 - Add a new task to a specific section (section 1 i believe it is) and add comments to it. 

 

I am getting errors when trying to do task #3. I’m thinking it cannot successfully write to it. I tried both the name of the actual project and the GID. Any ideas?

 

Thank you very much

Best answer by Troy TessaloneBest answer by Troy Tessalone

@ReturnCo 

There are 2 issues I can see.

The Project will expect the Asana Project ID, not the Asana Project Name.

 

Then, try using another Zap step to find the Section in the Project, to get the Asana Project Section ID.

 

When I look at examples of the expected IDs for sections in Asana, those values are larger numbers.

So trying to use 1 is likely not the right expected value.

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

9 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31387 replies
  • November 10, 2022

Hi @ReturnCo 

Good question.

Please post detailed screenshots with how your Zap steps are configured in order for us to have enough context, thanks.

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 10, 2022

Hey Troy,

 

Thanks for the quick response. Here are some pictures of how it works. I made a new one just for testing Google Sheets / Asana portion. 

The “Project” is the result from the previous step, Create project from Template in Asana → Find project in Asana 

 


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31387 replies
  • Answer
  • November 10, 2022

@ReturnCo 

There are 2 issues I can see.

The Project will expect the Asana Project ID, not the Asana Project Name.

 

Then, try using another Zap step to find the Section in the Project, to get the Asana Project Section ID.

 

When I look at examples of the expected IDs for sections in Asana, those values are larger numbers.

So trying to use 1 is likely not the right expected value.

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 10, 2022

Ahhhhhhh - ok I am going to check this now. Thanks Troy!


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 10, 2022

That did it! Thank you Troy!!


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 10, 2022

Hey Troy,

 

So it looks like it works when I’m actually testing the Zap but when it runs, it does not find the ID.

 

 

Should I throw a delay in there?


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 10, 2022

And here’s a picture of it successfully finding it in the Zapier editor

 

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 14, 2022

Hey @Troy Tessalone - I just tried again. It looks like it’s resulting in the same error. Any ideas? 


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31387 replies
  • November 15, 2022

@ReturnCo 

Make sure the names are exactly the same when searching for the value.

Check if there are extra spaces before/after, etc.