Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error connecting to D365. Primary Key error.

Good morning internet.

I'm trying to connect a PowerApp to some specific tables in D365. Some tables connect OK, for example, ItemBatches table, however to get stock locations, I need to connect to the WarehousesOnHand, however, when I try and connect, I receive the following message.


            There was a problem adding your data source. Please try again


                  Primary key column 'ItemNumber' must be either read-only and optional or writable and required.


I notice this question has been asked a couple of times, but the threads have fizzled out without an answer. Does anybody have any ideas?


Many thanks in advanced

Neil (a D365/PowerApps Newbie)

Community Support
Community Support

Hi NeilCotton, 


We have it reported as bug. We are working on to fix this issue.




Not applicable


Thanks for your reply..... do you know if there is any other way I can get at that specific data (the warehouse location of a batch)?


Many thanks for your time.




No sorry. but we hope to have the bug fix in the next weeks.



Frequent Visitor


I have the same issue can you please tell me when MS will release the fix ? Is the issue from powerapps or entity of D365FO ?


Thank you.


Advocate II
Advocate II

I am having the same issue any idea when this will be fixed?

@FCGALLEGdo you have an update on when the fix will be available to us? I'm getting a similar error when trying to use ReqTrans table in my app.

Advocate II
Advocate II

@FCGALLEG can you at least tell us the bug number and the link so we can track it ??

@VineetCANZ  looks like this is still under investigation. I searched for this on

@FCGALLEGif you can validate please.


Issue 413461 - Open

I am no getting a different error 


Cannot read property 'name' of undefined

Session ID: e1b46985-2bab-4cce-8808-0e35a5020f5f


Can anyone let me know what this means and how can i get this working ?

Helpful resources

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.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,647)