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

 

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

 

Thank you!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,558)