• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Community/Discussions
Solution home Troubleshooting Salesforce

Salesforce Error: 400 Bad request. errorCode: MALFORMED_ID. Wrong field is mapped

Modified on: Tue, Sep 27, 2016 at 9:49 PM

Error: 

Invalid Salesforce ID value(s) for: <x>

400 Bad Request: [{"message":"<x>: id value of incorrect type:YouTest","errorCode":MALFORMED_ID","fields":["<x>""]}]

 

What does this mean?: 

The error happens when a field that was expecting a Salesforce ID was given some value that does not represent a Salesforce object ID. This will occur also when you use the wrong ID from the wrong object. Example from the screenshot : The action is requesting for an OwnerID, but IDs coming from other application or ID from other object such as an AccountID will not work for this case. 


Here is another similar case of error with a Search object action. When I have an incorrect ID in the field, it throws a data error mentioning that the search query was not processed because of invalid input.




Resolution: 

If you see either of these errors, it means that the field is expecting a Salesforce ID, and not anything else. The correct resolution is to put in an actual Salesforce ID that matches the field.






Once you have made the change, save the recipe, and simply re-run the job.



The same issue can happen to any other apps as well. Always make sure that when the field expects an ID, it is provided with the correct ID from the same application.



Have a question? Join our bi-weekly Expert Hour to get help from our Experts. Alternatively, you can find similar questions in our Q&A (Recipe Errors) Forums or Start a New Topic.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Still can't find your solution?

    Visit our forums to search for answers, or post your own questions.

    Documentation
    Developer's Library
    Tutorials
    eBooks
    Product Hour
    Product Blog
    Workato Blog
    Product updates
    Customer Stories
    © Workato 2020   Privacy   Terms   +1 (844) 469-6752
    • Documentation
    • Workato Blog
    • Product Blog
    • Solutions
    • Forums
    • Tickets
    • Log in
    • Return to Workato
    Article views count