Forum Discussion

Satch's avatar
Satch
Helper III
1 year ago

Dataflow refresh error while works in pbix: SOLUTION

Hi

 

I created a pbix with some tables from a Dataflow.

While it refreshed in PBI Desktop, the online refresh kept stopping with an error.

After trying many suggested solutions here, the solution for me is very simple:

 

In the code the source of the table is:

= #"da944968-62f2-428........."{[entity="Tablename",version=""]}[Data]

 

>>After I removed ,version = "" all is refreshing like a charm

 

The error at online refresh for your reference

 {

"error":

{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","pbi.error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},

{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":

 

"The key didn't match any rows in the table."}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},

 

{"code":"Microsoft.Data.Mashup.ValueError.Key","detail":{"type":1,"value":"[entity = \"Dataflow-TableName", version = \"\"]"}},{"code":"Microsoft.Data.Mashup.ValueError.Reason","detail":{"type":1,"value":"Expression.Error"}},{"code":"Microsoft.Data.Mashup.ValueError.Table","detail":{"type":1,"value":"#table({\"entity\", \"dataCategory\", \"Data\", \"Tags\", \"ItemKind\", \"ItemName\", \"IsLeaf\"}, {})"}}],"exceptionCulprit":1}}} 

Table: depending table.

URI cluster: WABI-WEST-EUROPE-D-PRIMARY-redirect.analysis.windows.net

Activiteits-id: df70866e-2642-4a2b-a130-7.......

Aanvraag-id: 47ec1c1f-f25d-44ce-8.........

Tijd: 2024-12-18 16:34:40Z

2 Replies

  • Hi Satch - The error "The key didn't match any rows in the table" occurs because Power BI Service sometimes fails to recognize this version parameter, especially if it is an empty string.

    Your solution to remove ,version="" from the Dataflow reference is correct.

    If you don't need to target a specific version of a dataflow entity, it's advisable to exclude the version parameter from your M code. This approach reduces the risk of errors related to version mismatches.

    If your Dataflow or dataset requires a gateway, ensure the gateway is properly configured and up-to-date.
    Check for Case Sensitivity: Ensure the names of the entities (e.g., Tablename) match exactly as they appear in the Dataflow.
    Refresh Debugging: Use the Refresh History in Power BI Service to see detailed logs for any future issues.

     

     

    Ref: Data source error in PBI service for PBI Dataflow ... - Microsoft Fabric Community

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Satch ,

    Many thanks for sharing this. Please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Wisdom Wu