microsoft.Odata.Odataexception: The odata.bind instance or property annotation has a null value Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/tag/microsoft-odata-odataexception-the-odata-bind-instance-or-property-annotation-has-a-null-value/ Microsoft Dynamics CRM . Microsoft Power Platform Sun, 14 Jun 2020 15:36:30 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32&ssl=1 microsoft.Odata.Odataexception: The odata.bind instance or property annotation has a null value Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/tag/microsoft-odata-odataexception-the-odata-bind-instance-or-property-annotation-has-a-null-value/ 32 32 176351444 Set NULL Value to Lookup in Power Automate – Clear lookup field in Power automate – An Error Occurred while validating input parameters : microsoft.Odata.Odataexception: The odata.bind instance or property annotation has a null value https://microsoftdynamics.in/2020/06/14/set-null-value-to-lookup-in-power-automate-clear-lookup-field-in-power-automate-an-error-occurred-while-validating-input-parameters-microsoft-odata-odataexception-the-odata-bind-instance-or-pr/ Sun, 14 Jun 2020 15:36:30 +0000 http://microsoftdynamics.in/?p=3661 Set NULL Value to Lookup in Power Automate - Clear lookup field in Power automate - An Error Occurred while validating input parameters : microsoft.Odata.Odataexception: The odata.bind instance or property annotation has a null value

The post Set NULL Value to Lookup in Power Automate – Clear lookup field in Power automate – An Error Occurred while validating input parameters : microsoft.Odata.Odataexception: The odata.bind instance or property annotation has a null value appeared first on Microsoft Dynamics 365 Blog.

]]>
We Recently might have come up with an error while Setting up lookup and mapped value is Null/empty GUID or we want clear lookup field from the record.

An error occurred while validating input parameters: Microsoft.OData.ODataException: The 'odata.bind' instance or property annotation has a null value. In OData, the 'odata.bind' instance or property annotation must have a non-null string value.

There are two different part of Error

  1. We want to Clear the lookup field from a record example : From account record we need to clear primary contact lookup
  2. We have setup an dynamic Value to a lookup field and that dynamics field sometime returns null GUID

Check1:Clear or Empty the lookup field from a record

We all know clearing lookup or any other field in Workflow is quite issue , but straight forward clear option is missing from Power automate , but a more logical thing is available

i.e Unrelate record action for CDS is available, It Provides an option to select a record from and then select the relationship which needs to be detached but remember we need to pass lookup value in Item.

https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/06/img_5ee641c13e5bd.png?fit=1423%2C464&ssl=1

Check2: Error when Mapped field value is empty

To overcome this we need to have a condition saying if mapped dynamic field is null Go to FALSE Section Otherwise go to TRUE Section.

I know it kind of overdoing for just a field but currently, there is no other way I found.

https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/06/img_5ee6436716bdb.png?fit=1500%2C489&ssl=1

The post Set NULL Value to Lookup in Power Automate – Clear lookup field in Power automate – An Error Occurred while validating input parameters : microsoft.Odata.Odataexception: The odata.bind instance or property annotation has a null value appeared first on Microsoft Dynamics 365 Blog.

]]>
3661