I am trying to add a data source to my powerApps but it throws me an error, I am connecting with dynamics ax 365, could someone help me?
there was a problem adding your datasource. Please try again
Error
Primary key column 'TaskId' must be either read-only and optional or writable and required.
Thanks ¡¡¡
@Anonymous , @sable did you ever get to the bottom of this. I'm having exactly the same problem with exactly the same table.
I am receving the same error. Tried re-creating the Table in D365. However, getting the same error for Primary Key 'Item Number'. I'm able to use other Inventory tables though.
Could you please advise further on resolving this issue ?
Here's an exact flow how to recreate the error
"Primary key column 'ItemNumber' must be either read-only and optional or writable and required."
1. Open web.powerapps.com
2. Press Canvas app from blank
3. Tab: Insert > Data table
4. Data > Add data source
5. Select dynamics 365 for operations
6. Choose environment
7. Choose table "WarehousesOnHand" and connect
8. Error message that displays: "Primary key column 'ItemNumber' must be either read-only and optional or writable and required."
How can we solve this?
Hi @mperez,
Could you show me a screenshot of the error?
Have you provided a correct Primary key when creating the connection?
I tried to create a connection to Dynamics 365 for Operation, it didn’t return any error message.
Best regards,
Mabel Mao
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1