Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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?

 

 

  • DW-24091901-0 Profile Picture
    2 on at
    Dataverse Dataflow lookup field not accepting alternate key
    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. 
  • chico Profile Picture
    636 on at
    Re: Dataverse Dataflow lookup field not accepting alternate key

    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"

  • PBIQueryous Profile Picture
    2 on at
    Re: Dataverse Dataflow lookup field not accepting alternate key

    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
    636 on at
    Re: Dataverse Dataflow lookup field not accepting alternate key

    seeing this failure as well, but very inconsistent.

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

  • PHalseyKMS Profile Picture
    20 on at
    Re: Dataverse Dataflow lookup field not accepting alternate key

    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.  

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics