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

Problem writing to a SQL table from a PowerApp - Read Only Message

Hi!

 

I've created a few PowerApps that use SQL connections successfully, reading and writing data. On this new PowerApp I'm creating, connected to the same database but using different tables, I'm getting an error when using the Collect / Patch and similar functions. The error message is "Data origin is read only, Collect function can't write to it".

If I select some older tables it works just fine, but any newly created tables has this same issue. 

 

I've tried creating the connection again, creating new tables, I'm using a super user with full read-write access. 

 

I don't know what else to check, is there a chance some new permission is being set up that I don't know?

The PowerApp can read the data from these tables, the issue is to write to them for some read-only error, so the connection works just fine.

 

Hope someone can have some ideas.

 

Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuxima-msft
Community Support
Community Support

Hi @Slopez ,

 

Is there the PrimaryKey in your SQL Table ?

Could you please check that? You need to set one PK  in your tables if you test.

 

Best Regards.

Yumia

 

View solution in original post

2 REPLIES 2
v-yuxima-msft
Community Support
Community Support

Hi @Slopez ,

 

Is there the PrimaryKey in your SQL Table ?

Could you please check that? You need to set one PK  in your tables if you test.

 

Best Regards.

Yumia

 

View solution in original post

It’s always the little things! I can’t believe I missed that.

 

Thank you!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,263)