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

Excel WorkBook's Power Query Connections doesn't work after connection with PowerApps

Hi All,

 

I have an excel file with power query connection. I connected this to Power App. Now, connection to power query is lost though query exists. Data is no longer getting loaded. 

 

In one of the old case rasied in 2018, i see that there was no solution. Since we are in 2020, wanted to check if there is any update to this challange or workaround?

 

Thanks in advance. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @mohankvs :

I'm no sure if I understand what you mean correctly,please help me pooint it out if there is an error:

  • In the excel file, you get data through Power Query.
    You use this excel file as your data source.
  • Currently you can get the correct data structure, but you cannot get any record.

Firstly,let me explain why you encountered this problem.

PowerApps assigns a unique identifier to each row by adding a column called __PowerAppsId__.If the table is created by Power Query, "__PowerAppsId__" will not be added automatically.Because of the lack of a unique identifier, the data will not be returned to powerapp.

Secondly,manually inserting a field named "__PowerAppsId__" can solve this problem, but it may affect the performance of Power Query connection and cause it to fail to refresh.

1.JPG

1. Manually insert a field named "__PowerAppsId__" in the table
2. Delete and recreate the connection in PowerApps
3. You can get the records in the table (the value in the __PowerAppsId__ field in the Table will be filled in automatically, you can ignore it)

In addition,although this method can solve the problem, I still recommend that you use CDS as a data source. CDS also supports Power Query and is much more stable than Excel.

I think this link will help you a lot:

Load data from external data sources to the Common Data Service using Power Query (Previous Version) 

Best Regards,

Bof

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @mohankvs :

I'm no sure if I understand what you mean correctly,please help me pooint it out if there is an error:

  • In the excel file, you get data through Power Query.
    You use this excel file as your data source.
  • Currently you can get the correct data structure, but you cannot get any record.

Firstly,let me explain why you encountered this problem.

PowerApps assigns a unique identifier to each row by adding a column called __PowerAppsId__.If the table is created by Power Query, "__PowerAppsId__" will not be added automatically.Because of the lack of a unique identifier, the data will not be returned to powerapp.

Secondly,manually inserting a field named "__PowerAppsId__" can solve this problem, but it may affect the performance of Power Query connection and cause it to fail to refresh.

1.JPG

1. Manually insert a field named "__PowerAppsId__" in the table
2. Delete and recreate the connection in PowerApps
3. You can get the records in the table (the value in the __PowerAppsId__ field in the Table will be filled in automatically, you can ignore it)

In addition,although this method can solve the problem, I still recommend that you use CDS as a data source. CDS also supports Power Query and is much more stable than Excel.

I think this link will help you a lot:

Load data from external data sources to the Common Data Service using Power Query (Previous Version) 

Best Regards,

Bof

Table is created by Power Query, and "__PowerAppsId__" is added automatically. But, connection to query is lost. Also, in one of the article i read that we can't connect both PowerApps and power query at the same time and may be that is wish list. I have used SharePoint list to import data. Thanks for your help. 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,181)