Skip to content

Error in CreateRequest when a lookup field is null/undefined in target object #47

Description

@khoait

Hi,

I'm using dataverse-ify version 2.0.7. I'm trying to send a batch request using the executeMultiple function. When the target object contains a lookup field with undefined/null value, I get the below error.

Error identified in Payload provided by the user for Entity :'(entity name removed)', For more information on this error please follow this help link https://go.microsoft.com/fwlink/?linkid=2195293 
----> InnerException : Microsoft.Crm.CrmException: Invalid property '(lookup field name removed)' was found in entity 'Microsoft.Dynamics.CRM.(entity name removed)'. 
---> Microsoft.OData.ODataException: Does not support untyped value in non-open type.

I also checked the normal create function and got the same error. The target object looks like this:

{
  logicalName: "new_entityname",
  new_name: "some name",
  new_lookupfield: null
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions