web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataverse Dataflow loo...
Power Apps
Unanswered

Dataverse Dataflow lookup field not accepting alternate key

(1) ShareShare
ReportReport
Posted on by 427

When creating a dataflow to sync data from a SQL databse into Dataverse, the Lookupfield of the destination table are not accepting the correctly configured alternate key.

 

The dataflow fails with an error message:

"0x8006088a: The key in the request URI is not valid for resource 'Microsoft.Dynamics.CRM.sdx_itemparents'."

 

The data sent to dataverse by the dataflow is: "sdx_Item@odata.bind": "/sdx_items(sdx_productcode='XX7281.60')" and the "sdx_item" table has an alternate key set to the "sdx_productcode" field:

james_hathaway_0-1650965204590.png

Dataflow column mapping: (There happens to be 2 lookup fields to the same "Item" entity, as this table is setting up a "parent" relationship form Item -> Parent Item)

james_hathaway_1-1650965271970.png

So it should perform the lookup to the record correctly, but is not working.

I have also checked that the Key is active (using Classic mode):

james_hathaway_2-1650965420048.png

I have searched all Microsoft Documentation and the forums, and cannot find any reference to this error anywhere.

Has anyone else seen this error?

Any ideas why this lookup is not working?

 

 

I have the same question (0)
  • PHalseyKMS Profile Picture
    20 on at

    I have noticed a similar error occur in one of my dataflows, but it's inconsistent, sometimes the error occurs on one table mapping and on the next run that record works but the error occurs on a different table.

    Also only some records fail for a table and they all have the same key construct.  

  • chico Profile Picture
    638 on at

    seeing this failure as well, but very inconsistent.

    The refresh runs every 2 hours and maybe once a day, it fails with this error,,,

  • PBIQueryous Profile Picture
    2 on at

    Notice how no-one has explained this error? IT's 2023 and this is still happening. 
    The dataverse is an illogical, unintuitive, largely undocumented wilderness with random bugs, random failures, massive inconsistencies and restraints. It's a mess.

    Answer this, why do dataflows have this same error, occur randomly, on random different rows, with no real explanation?

    "message":"The key in the request URI is not valid for resource 'Microsoft.Dynamics.CRM.tbl.tablename'. Ensure that the names and number of key properties match the declared or alternate key properties for the resource '

    The names and number of key properties does match the declared key properties - BECAUSE IT'S USING DATVERSE GENERATED GUIDS TO CHECK FOR UNIQUENESS. If the key properties were different, it WOULD fail for the entire column, but it doesn't - it decides, one or two records will fail out of 100s - at random.

    This is a terrible experience for users, especially when it's designed for citizen-developers with no coding knowledge.

  • chico Profile Picture
    638 on at

    We see this error, Daily.
    Funny, my inbox had a notification from a new post on this thread and the message directly next to it was an alert from power platform to indicate a Dataflow refresh had failed.
    and yup, the same error....
    this proccess runs every hour and on average it fails 1-2 times a day due to that error...

    I just call it the "Fog"

  • DW-24091901-0 Profile Picture
    2 on at
    Wild Ass Guess. 
     
    Could it be that the reason it is happening is because a record is being created at the same moment that your query is happening and there is something unusual in the alternate key field?
     
    If you add a new auto-generated alternate key column to a Dataverse table with existing data, new rows will get a new autogenerated value in that column, but existing rows will be null. 
     
    XRM Toolbox has a utility called Alternate Key Manager which will populate the autogenerated value for that field. However, if the tools is creating new alternate keys at the same time as users are trying to create records, the users can experience a save/create failure due to their record trying to write a duplicate alternate key. 
     
    Not sure if this helps, but it may be a similar issue. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,009

#2
11manish Profile Picture

11manish 672

#3
Valantis Profile Picture

Valantis 628

Last 30 days Overall leaderboard