cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MJDBrooks
Frequent Visitor

dataflow errors with alternate key on lookup fields

I am having persistent problems importing data from a spreadsheet into a custom entity "ProjectlinkAccount" which has two lookup fields - one to Accounts and one to a custom entity Projects. I have an alternate key set up on each parent entity.

 

I keep getting an error message: {"error":{"code":"0x0","message":"Bad Request - Error in query syntax."}}

The query from one of the import rows looks like this:

https://nameremoved.dynamics.com/api/data/v9.1/brooks_projectlinkaccounts{\r\n  "brooks_accountname": "JohnBrook",\r\n  "brooks_legacyaccountid": "16",\r\n  "brooks_legacyid": "26",\r\n  "brooks_legacyprojectid": "19",\r\n  "brooks_name": "Main Account",\r\n  "brooks_projectname": "Great North Road",\r\n  "brooks_role": "Main Account",\r\n  "brooks_accountlu@odata.bind": "/accounts(brooks_brooksaccountid=16)",\r\n  "brooks_projectlu@odata.bind": "/brooks_projects(brooks_legacy_project_id=19)"\r\n}

 

Should the alternate key references in brackets be converted to GUIDs in the dataflow run?

3 REPLIES 3
Anonymous
Not applicable

Same issue here. In my case one of the two lookup attribute values has been resolved to a concrete record GUID, while the other one remains in the OData query-by-alternate-key syntax. I can see this in the synchronization log CSV file which lists the errors occured. Did file a support ticket, but support seems not competent to help any further. 

ostola
Regular Visitor

Hello everyone,

Do you resolved the issue??

I have the same behavior...

bigwookie3000
Frequent Visitor

Has anyone found a solution to this yet? 

In my error, the following shows:

"name@odata.bind": "name(cr4_alternate_key=Ryan"

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (4,296)