cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kimikat730
New Member

cannot write back to oracle on prem database

I have a 30 day trial license and am trying to evaluate if Power Apps will allow me to write back to an on-prem Oracle data warehouse.   I followed the steps outlined in this link: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-oracledb and have managed to create the connection, but when the system generates the app, i only get the gallery and view details pages.  I can see the data from my table correctly.  However no Edit Form page is created.   When I try to manually create it, I can build the form, but it does not write back when I submit form.  I have a gateway set up, and it is pulling in the data just fine.   What do I need to do to enable writeback to on-prem Oracle Data Warehouse tables?

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

I'm not an expert on Oracle, but SQL operates the same way when creating an App from Data.  In the case of SQL to write data back to the database the table must contain a Primary Key that is an autoincrementing Identity field.  Even if that is the case you need to build the Edit screen and the Patch() statement to write back to the database manually.  I would suspect that Oracle works the same way.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User III
Dual Super User III

I'm not an expert on Oracle, but SQL operates the same way when creating an App from Data.  In the case of SQL to write data back to the database the table must contain a Primary Key that is an autoincrementing Identity field.  Even if that is the case you need to build the Edit screen and the Patch() statement to write back to the database manually.  I would suspect that Oracle works the same way.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

thank you, I will try the primary key first.  I have not used the Patch function.  Is that required, or will the basic edit form work once there is a primary key in place?

Setting up a primary key allowed me to connect everything and successfully write back.  thank you!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,995)