Error:400:Bad Request: unrecognized ‘Edm.Guid’ litral ‘guid’ ” in ‘***’

Error:

  1. Bad Request: unrecognized ‘Edm.Guid’ litral ‘guid’ ” in ’20’
  2. UnRecognized ‘Edm.Guid’ literal ‘guid’null

JS Error

Resolution:

You got this error because some where in your code, your code is passing null value.

In my case i was retrieving current records GUID using ‘Xrm.Page.data.entity.getId()’, but on create, there is no GUID, thus result is it was passing null value. SO to avoid this we needs to restrict this. I resoled it by using ‘Xrm.Page.ui.getFormType() != 1’ (1 for create).

Ref: https://crmbusiness.wordpress.com/2014/09/25/crm-2011-unrecognized-edm-guid-literal-guidnull/

 

Advertisements

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 )

Google+ photo

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

Connecting to %s