Web API “An error occurred while validating input parameters”

Today I had this error in my JS Web Api request:

{“error”:{“code”:”0x0″,”message”:”An error occurred while validating input parameters: Microsoft.OData.ODataException: An undeclared property ‘mm_account’ which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values.

The code was generated through CRM REST Builder, which is a fantastic tool developed by Jason Lattimer MVP for generating JS requests.

The particular request was updating an entity field. Field’s name was “mm_account” and schema name was “mm_Account”. Finding was for some reason generated code was using field name instead of schema name. Changing name fixed this issue.

I hope sharing this will save someone’s time 🙂

Let’s Connect

 twIcon lnIcon fbicon

4 Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s