web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / My PowerApp Won't Allo...
Power Apps
Unanswered

My PowerApp Won't Allow me to modify data in the SQL Database

(0) ShareShare
ReportReport
Posted on by 4

Hey Everyone,

 

I am able to save (create a record) to the SQL database, however I am not able to modify a record.  I have used every arrangement of code inside and outside of my gallery and can't seem to get it to work consistently.  

 

The most popular error is The requested operation is invalid. Server response: _scrubbedSensitiveData_.

 

Can anyone help with this or suggest a code that is working for them?

 

That error is there at all times once I'm trying to modify a record in the database.  I am using SQL connections and on-premise gateway.

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @PowerAppsUser10 

     

    This is clearly a caching issue.

     

    1. Refresh SQL connection will fix the issue but sometimes not.
    2. Remove and Add it back
      1. Please remove the SQL Connection
      2. Clear the cache
      3. Close the app and Reopen it
      4. Add the SQL connection back
      5. Make sure Table has an Identity column

     

     I had this issue yesterday. 😀

  • PowerAppsUser10 Profile Picture
    4 on at

    Hey StalinPonnusamy 

     

    Thank you for your Response.  

     

    1. Did you have issues modifying the records in sql using powerapps? and was the scrubbedsensitivedata your only issue? 

     

    2.  Could you send me the code you used to modify the data.  Was it a button outside the gallery.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @PowerAppsUser10 

     

    • I had an issue with the insert itself. But the issue is the Schema difference between SQL and PowerApps
    • SQL Collect Statement
    ClearCollect(
     tempTable,
     {
     RoleID: 1000,
     FactName: "TEST1"
     },
     {
     RoleID: 1000,
     FactName: "TEST2"
     },
     {
     RoleID: 1000,
     FactName: "TEST3"
     }
    );
    Collect(
     RoleFact,
     tempTable
    )

     

    StalinPonnusamy_0-1634068772862.png

     

     

  • PowerAppsUser10 Profile Picture
    4 on at

    Hey StalinPonnusamy 

     

    Inserting is good for me.  Modifying what I have saved is not working at all.  

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @PowerAppsUser10 

     

    I just tested and the Individual patch command works.

     

    Patch(
     RoleFact,
     {
     RoleFactID: 4,
     RoleID: 2000,
     FactName: "TEST"
     }
    )

     

    Note: RoleFactID - Identity Column

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @PowerAppsUser10 

     

    ClearCollect(
     UpdateTable,
     {
     RoleFactIDNew: 4,
     RoleID: 1001,
     FactName: "TEST10"
     },
     {
     RoleFactIDNew: 5,
     RoleID: 1002,
     FactName: "TEST11"
     },
     {
     RoleFactIDNew: 6,
     RoleID: 1003,
     FactName: "TEST12"
     }
    );
    ForAll(
     UpdateTable,
     Patch(
     RoleFact,
     {
     RoleFactID:ThisRecord.RoleFactIDNew,
     RoleID: ThisRecord.RoleID,
     FactName: ThisRecord.FactName
     }
     )
    )
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @PowerAppsUser10 


    Please let us know if anything needs on your post. We can help with this.

    Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

    Thanks,
    Stalin - Learn To Illuminate

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard