Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

API problem creating row with reference ID

(0) ShareShare
ReportReport
Posted on by 25

I continue to get this maddening response when trying to create entries in the Click Dimensions 'listmember' table via API call:

400 with message: Bad Request and also this {"error":{"code":"0x80048d19","message":"Error identified in Payload provided by the user for Entity :'listmembers', For more information on this error please follow this help link go.microsoft.com/.../ ----> InnerException : Microsoft.OData.ODataException: A property '_listid_value' which only has property annotations in the payload but no property value is declared to be of type 'Edm.Guid'. In OData, only navigation properties and named streams can be represented as properties without values. etc etc etc...

I have verified the field name (_listid_value) and that the pass ID exists in the referenced lists table, yet I still get this message. 

ListMemeber meta data:

<EntityType Name="listmember" BaseType="mscrm.crmbaseentity">
<Key>
<PropertyRef Name="listmemberid"/>
</Key>
<Property Name="versionnumber" Type="Edm.Int64"/>
<Property Name="_modifiedonbehalfby_value" Type="Edm.Guid"/>
<Property Name="entitytype" Type="Edm.String" Unicode="false"/>
<Property Name="timezoneruleversionnumber" Type="Edm.Int32"/>
<Property Name="name" Type="Edm.String" Unicode="false"/>
<Property Name="overriddencreatedon" Type="Edm.DateTimeOffset"/>
<Property Name="_listid_value" Type="Edm.Guid"/>
<Property Name="utcconversiontimezonecode" Type="Edm.Int32"/>
<Property Name="_ownerid_value" Type="Edm.Guid"/>
<Property Name="_createdby_value" Type="Edm.Guid"/>
<Property Name="_createdonbehalfby_value" Type="Edm.Guid"/>
<Property Name="importsequencenumber" Type="Edm.Int32"/>
<Property Name="owninguser" Type="Edm.Guid"/>
<Property Name="_entityid_value" Type="Edm.Guid"/>
<Property Name="owningbusinessunit" Type="Edm.Guid"/>
<Property Name="createdon" Type="Edm.DateTimeOffset"/>
<Property Name="listmemberid" Type="Edm.Guid"/>
<Property Name="modifiedon" Type="Edm.DateTimeOffset"/>
<Property Name="_modifiedby_value" Type="Edm.Guid"/>
     <NavigationProperty Name="createdby" Type="mscrm.systemuser" Nullable="false" Partner="lk_listmember_createdby">
          <ReferentialConstraint Property="_createdby_value" ReferencedProperty="systemuserid"/>
     </NavigationProperty>
     <NavigationProperty Name="createdonbehalfby" Type="mscrm.systemuser" Nullable="false" Partner="lk_listmember_createdonbehalfby">
          <ReferentialConstraint Property="_createdonbehalfby_value" ReferencedProperty="systemuserid"/>
     </NavigationProperty>
     <NavigationProperty Name="modifiedby" Type="mscrm.systemuser" Nullable="false" Partner="lk_listmember_modifiedby">
          <ReferentialConstraint Property="_modifiedby_value" ReferencedProperty="systemuserid"/>
     </NavigationProperty>
     <NavigationProperty Name="modifiedonbehalfby" Type="mscrm.systemuser" Nullable="false" Partner="lk_listmember_modifiedonbehalfby">
          <ReferentialConstraint Property="_modifiedonbehalfby_value" ReferencedProperty="systemuserid"/>
     </NavigationProperty>
     <NavigationProperty Name="listmember_AsyncOperations" Type="Collection(mscrm.asyncoperation)" Partner="regardingobjectid_listmember"/>
     <NavigationProperty Name="listmember_MailboxTrackingFolders" Type="Collection(mscrm.mailboxtrackingfolder)" Partner="regardingobjectid_listmember"/>
     <NavigationProperty Name="listmember_BulkDeleteFailures" Type="Collection(mscrm.bulkdeletefailure)" Partner="regardingobjectid_listmember"/>
     <NavigationProperty Name="listmember_PrincipalObjectAttributeAccesses" Type="Collection(mscrm.principalobjectattributeaccess)" Partner="objectid_listmember"/>
</EntityType>

List table meta data:

<EntityType Name="list" BaseType="mscrm.crmbaseentity">
<Key>
<PropertyRef Name="listid"/>
</Key>
<Property Name="lockstatus" Type="Edm.Boolean"/>
<Property Name="stageid" Type="Edm.Guid"/>
<Property Name="_ownerid_value" Type="Edm.Guid"/>
<Property Name="_createdonbehalfby_value" Type="Edm.Guid"/>
<Property Name="membertype" Type="Edm.Int32"/>
<Property Name="_modifiedonbehalfby_value" Type="Edm.Guid"/>
<Property Name="source" Type="Edm.String" Unicode="false"/>
<Property Name="listid" Type="Edm.Guid"/>
<Property Name="timezoneruleversionnumber" Type="Edm.Int32"/>
<Property Name="ignoreinactivelistmembers" Type="Edm.Boolean"/>
<Property Name="utcconversiontimezonecode" Type="Edm.Int32"/>
<Property Name="description" Type="Edm.String" Unicode="false"/>
<Property Name="versionnumber" Type="Edm.Int64"/>
<Property Name="exchangerate" Type="Edm.Decimal" Scale="Variable"/>
<Property Name="_cdi_marketinglistsfordetachid_value" Type="Edm.Guid"/>
<Property Name="modifiedon" Type="Edm.DateTimeOffset"/>
<Property Name="statuscode" Type="Edm.Int32"/>
<Property Name="query" Type="Edm.String" Unicode="false"/>
<Property Name="_modifiedby_value" Type="Edm.Guid"/>
<Property Name="cost" Type="Edm.Decimal" Scale="Variable"/>
<Property Name="createdfromcode" Type="Edm.Int32"/>
<Property Name="_cdi_marketinglistsforattachid_value" Type="Edm.Guid"/>
<Property Name="_owningbusinessunit_value" Type="Edm.Guid"/>
<Property Name="donotsendonoptout" Type="Edm.Boolean"/>
<Property Name="_transactioncurrencyid_value" Type="Edm.Guid"/>
<Property Name="_owningteam_value" Type="Edm.Guid"/>
<Property Name="purpose" Type="Edm.String" Unicode="false"/>
<Property Name="membercount" Type="Edm.Int32"/>
<Property Name="statecode" Type="Edm.Int32"/>
<Property Name="_owninguser_value" Type="Edm.Guid"/>
<Property Name="listname" Type="Edm.String" Unicode="false"/>
<Property Name="type" Type="Edm.Boolean"/>
<Property Name="_createdby_value" Type="Edm.Guid"/>
<Property Name="createdon" Type="Edm.DateTimeOffset"/>
<Property Name="overriddencreatedon" Type="Edm.DateTimeOffset"/>
<Property Name="_cdi_subscriptionlistid_value" Type="Edm.Guid"/>
<Property Name="traversedpath" Type="Edm.String" Unicode="false"/>
<Property Name="processid" Type="Edm.Guid"/>
<Property Name="processedmembercount" Type="Edm.Int32"/>
<Property Name="processfetchxml" Type="Edm.String" Unicode="false"/>
<Property Name="importsequencenumber" Type="Edm.Int32"/>
<Property Name="lastusedon" Type="Edm.DateTimeOffset"/>
<Property Name="cost_base" Type="Edm.Decimal" Scale="Variable"/>
<NavigationProperty Name="createdby" Type="mscrm.systemuser" Nullable="false" Partner="lk_list_createdby">
<ReferentialConstraint Property="_createdby_value" ReferencedProperty="systemuserid"/>
</NavigationProperty>
<NavigationProperty Name="createdonbehalfby" Type="mscrm.systemuser" Nullable="false" Partner="lk_list_createdonbehalfby">
<ReferentialConstraint Property="_createdonbehalfby_value" ReferencedProperty="systemuserid"/>
</NavigationProperty>
<NavigationProperty Name="modifiedby" Type="mscrm.systemuser" Nullable="false" Partner="lk_list_modifiedby">
<ReferentialConstraint Property="_modifiedby_value" ReferencedProperty="systemuserid"/>
</NavigationProperty>
<NavigationProperty Name="modifiedonbehalfby" Type="mscrm.systemuser" Nullable="false" Partner="lk_list_modifiedonbehalfby">
<ReferentialConstraint Property="_modifiedonbehalfby_value" ReferencedProperty="systemuserid"/>
</NavigationProperty>
<NavigationProperty Name="owninguser" Type="mscrm.systemuser" Nullable="false" Partner="user_list">
<ReferentialConstraint Property="_owninguser_value" ReferencedProperty="systemuserid"/>
</NavigationProperty>
<NavigationProperty Name="owningteam" Type="mscrm.team" Nullable="false" Partner="team_list">
<ReferentialConstraint Property="_owningteam_value" ReferencedProperty="teamid"/>
</NavigationProperty>
<NavigationProperty Name="ownerid" Type="mscrm.principal" Nullable="false" Partner="owner_lists">
<ReferentialConstraint Property="_ownerid_value" ReferencedProperty="ownerid"/>
</NavigationProperty>
<NavigationProperty Name="owningbusinessunit" Type="mscrm.businessunit" Nullable="false" Partner="business_unit_list">
<ReferentialConstraint Property="_owningbusinessunit_value" ReferencedProperty="businessunitid"/>
</NavigationProperty>
<NavigationProperty Name="List_SyncErrors" Type="Collection(mscrm.syncerror)" Partner="regardingobjectid_list_syncerror"/>
<NavigationProperty Name="List_DuplicateMatchingRecord" Type="Collection(mscrm.duplicaterecord)" Partner="duplicaterecordid_list"/>
<NavigationProperty Name="List_DuplicateBaseRecord" Type="Collection(mscrm.duplicaterecord)" Partner="baserecordid_list"/>
<NavigationProperty Name="List_AsyncOperations" Type="Collection(mscrm.asyncoperation)" Partner="regardingobjectid_list"/>
<NavigationProperty Name="list_MailboxTrackingFolders" Type="Collection(mscrm.mailboxtrackingfolder)" Partner="regardingobjectid_list"/>
<NavigationProperty Name="List_ProcessSessions" Type="Collection(mscrm.processsession)" Partner="regardingobjectid_list"/>
<NavigationProperty Name="List_BulkDeleteFailures" Type="Collection(mscrm.bulkdeletefailure)" Partner="regardingobjectid_list"/>
<NavigationProperty Name="list_principalobjectattributeaccess" Type="Collection(mscrm.principalobjectattributeaccess)" Partner="objectid_list"/>
<NavigationProperty Name="stageid_processstage" Type="mscrm.processstage" Nullable="false" Partner="processstage_lists">
<ReferentialConstraint Property="stageid" ReferencedProperty="processstageid"/>
</NavigationProperty>
<NavigationProperty Name="transactioncurrencyid" Type="mscrm.transactioncurrency" Nullable="false" Partner="transactioncurrency_list">
<ReferentialConstraint Property="_transactioncurrencyid_value" ReferencedProperty="transactioncurrencyid"/>
</NavigationProperty>
<NavigationProperty Name="list_connections1" Type="Collection(mscrm.connection)" Partner="record1id_list"/>
<NavigationProperty Name="list_connections2" Type="Collection(mscrm.connection)" Partner="record2id_list"/>
<NavigationProperty Name="List_Annotation" Type="Collection(mscrm.annotation)" Partner="objectid_list"/>
<NavigationProperty Name="campaignactivitylist_association" Type="Collection(mscrm.campaignactivity)" Partner="campaignactivitylist_association"/>
<NavigationProperty Name="List_BulkOperations" Type="Collection(mscrm.bulkoperation)" Partner="regardingobjectid_list"/>
<NavigationProperty Name="campaignlist_association" Type="Collection(mscrm.campaign)" Partner="campaignlist_association"/>
<NavigationProperty Name="listcontact_association" Type="Collection(mscrm.contact)" Partner="listcontact_association"/>
<NavigationProperty Name="listlead_association" Type="Collection(mscrm.lead)" Partner="listlead_association"/>
<NavigationProperty Name="listaccount_association" Type="Collection(mscrm.account)" Partner="listaccount_association"/>
<NavigationProperty Name="list_listoperation_ListId" Type="Collection(mscrm.listoperation)" Partner="ListId"/>
<NavigationProperty Name="new_list_new_catagory" Type="Collection(mscrm.new_catagory)" Partner="new_NicheId"/>
<NavigationProperty Name="cdi_bulktxtmessage_list" Type="Collection(mscrm.cdi_bulktxtmessage)" Partner="cdi_bulktxtmessage_list"/>
<NavigationProperty Name="cdi_cdi_datasync_list" Type="Collection(mscrm.cdi_datasync)" Partner="cdi_cdi_datasync_list"/>
<NavigationProperty Name="cdi_emailsend_list" Type="Collection(mscrm.cdi_emailsend)" Partner="cdi_emailsend_list"/>
<NavigationProperty Name="cdi_emailsend_suppressed_list" Type="Collection(mscrm.cdi_emailsend)" Partner="cdi_emailsend_suppressed_list"/>
<NavigationProperty Name="cdi_marketinglistsforattachid" Type="mscrm.cdi_import" Nullable="false" Partner="cdi_MarketingListsForAttach">
<ReferentialConstraint Property="_cdi_marketinglistsforattachid_value" ReferencedProperty="cdi_importid"/>
</NavigationProperty>
<NavigationProperty Name="cdi_marketinglistsfordetachid" Type="mscrm.cdi_import" Nullable="false" Partner="cdi_MarketingListsForDetach">
<ReferentialConstraint Property="_cdi_marketinglistsfordetachid_value" ReferencedProperty="cdi_importid"/>
</NavigationProperty>
<NavigationProperty Name="cdi_subscriptionlistid" Type="mscrm.cdi_subscriptionlist" Nullable="false" Partner="cdi_subscriptionlist_list">
<ReferentialConstraint Property="_cdi_subscriptionlistid_value" ReferencedProperty="cdi_subscriptionlistid"/>
</NavigationProperty>
</EntityType>
The request payload:
{"_ownerid_value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","entitytype":"lead","_listid_value@odata.bind":"lists(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)"}

What am I doing wrong?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans