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

Community site session details

Session Id :
Power Apps - Power Query
Answered

Dataflow Failing on Create w/ Alternate Key Lookup: "Invalid type for entity id value"

(0) ShareShare
ReportReport
Posted on by 11

Hello everyone,

Hoping for some community insight on a perplexing Dataflow issue that has recently appeared in our production environment.

The Scenario:
In our Dataflow, we use the Power Query 'Merge' operation to enrich our source data. We perform a Left Outer join against a Dataverse table, cre89_tracktmjjobnumbers, to find the correct parent record to link to. The join condition correctly uses our text-based alternate key field, cre89_id. This merge step validates and works perfectly within the Power Query editor.

The Problem:
The issue occurs when the Dataflow attempts to load the data into our target table, track_tracksuffix. This process was completely stable and worked for months, but it suddenly began to fail about 2 weeks ago.

For every new row, the lookup to the parent table fails on load. The row-level diagnostics show that the Dataflow is attempting to create the lookup binding correctly, like this:

"track_JobNumber@odata.bind": "/cre89_tracktmjjobnumberses(cre89_id='some_value')"

This action results in the following detailed error for every single row:

{
"message": "Invalid type for entity id value",
"cdsErrorCode": "0x80040203",
"HelpLink": "http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040203&client=platform",
"InnerErrorMessage": "Invalid type for entity id value",
"cdsRequestId": "[a different guid for each failed row]"
}

Key Details:

  • Dataverse Version: 9.2.25093.148

  • Region: United Kingdom

What We Have Already Ruled Out:

  • Custom Code: We've confirmed there are no synchronous plugins or real-time workflows on the target track_tracksuffix table.

  • Business Rules: There are no active Business Rules with 'Entity' scope on the table.

  • Configuration: The alternate key on cre89_id is correctly defined and has been recreated as a test. We have also cleared the Dataverse connector cache.

Our Question for the Community:
Our focus is on why a successful Power Query merge is failing on load.

  1. Has anyone else seen this specific failure with a Dataflow 'Merge' that populates a lookup via an alternate key?

  2. Is it possible for a platform update to change how the Dataflow engine translates a successful merge into a Dataverse lookup binding, causing it to fail in this manner?

We have a ticket open with Microsoft Support, but any theories or shared experiences from the community would be hugely appreciated.

Many thanks.

 

Categories:
I have the same question (0)
  • venturemavenwill Profile Picture
    931 Super User 2025 Season 2 on at
    Dataflow Failing on Create w/ Alternate Key Lookup: "Invalid type for entity id value"
    I am assuming you checked again the data type of both tables in your PowerQuery
    Can you share the PowerQuery you used?
  • MW-07041548-0 Profile Picture
    11 on at
    Dataflow Failing on Create w/ Alternate Key Lookup: "Invalid type for entity id value"

    Hi @venturemavenwill,

    Many thanks for taking a look at this.

    To answer your questions:

    1. Yes, that's correct. The cre89_id attribute has always been a 'Single line of text' field since it was created. It has never been a number field, so there hasn't been any recent data type change on that front.

    2. That's a great question. The Dataflow is indeed quite complex with several queries merging together. However, the issue seems to be independent of the specific query logic inside the Power Query editor. See below image:

    Is there any specific section you would like to inspect the query? I'm happy to paste from the advanced editor what's happening...

    The key behaviour we're seeing is that all of the merges and transformations preview correctly within the editor. The merge successfully finds the parent cre89_tracktmjjobnumbers record and brings its columns into the dataset as expected.

    The failure occurs universally for all rows during the final step: the load into the track_tracksuffix table. It's at this point that Dataverse rejects the lookup binding that the Dataflow is creating.

    So, rather than one specific query's transformation logic, the problem appears to be in how the Dataverse connector is handling the 'load' operation for this particular lookup. It's this discrepancy—working perfectly in the editor but failing on load—that we find so strange, especially as it only began about two weeks ago.

    Thanks again for your help and any further thoughts you might have.

  • Suggested answer
    venturemavenwill Profile Picture
    931 Super User 2025 Season 2 on at
    Dataflow Failing on Create w/ Alternate Key Lookup: "Invalid type for entity id value"
    Another possibility is that the data is preview works, but that there are exceptions where the join does not work, and PowerQuery simply got too many errors and stopped the process
     
    Any chance you can check the data integrity of your alternate keys? So basically, making sure that there are no leading/trailing spaces, cases match etc. 
  • Verified answer
    MW-07041548-0 Profile Picture
    11 on at
    Dataflow Failing on Create w/ Alternate Key Lookup: "Invalid type for entity id value"
     
    Hi again,
     
    I solved this issue this morning. It turns out where originally in the dataflow I was using GUID to do the merging and matching, with the associated GUID key on the mapping step, this suddenly stopped working.
     
    This morning, I changed the dataflows to be using an alternate key based on the autonumber column and it appears to be working correctly, but with a 'possible match' rather than 'match confirmed' in the column mapping.
     
    Many thanks for you help.
    MW
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

Last 30 days Overall leaderboard

Featured topics