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 / The request operation ...
Power Apps
Answered

The request operation is invalid.

(0) ShareShare
ReportReport
Posted on by 31

Hi yall!

 

Im having an issue, but first let me explain my app and my code

 

What im trying to do is basically an app to check if the information that its uploaded from another app to my azure sql database is correct

 

What im thinking its to have a gallery with a check box, and check only those that are correct, and after checking the ones that are correct I want to patch a column in this database that register the name of the usser in a column, to see who check the information

 

So my formula goes like this

 

If(Checkbox1.Value = true, Patch(tblDataBase,Gallery1.Selected, {CheckColumn: USER}))

 

Jose_LuisA_0-1631728191767.png

 

But when I try to patch like this, the formula displays an error that says:

 

The request operation is invalid. Server Response: tblDataBase failed. A Value must be provided for item. clientRquestId

 

Im kinda lost in this

Any help would be much apreciated

Thanks in advance!

 

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

    Hi @Jose_LuisA ,

     

    May be something like below might work in your case. 

     

    If(Checkbox1.Value = true, UpdateIf(tblDataBase, ID=ThisItem.ID, {CheckColumn: User().Email}))
    
    Or
    
    ForAll(Filter(Gallery1.AllItems,Checkbox1.Value = true),Patch(tblDataBase,Defaults(tblDataBase),{CheckColumn: User().Email}))

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Jose_LuisA ,

     

    It's because you actually have not select any item when check the check box of this item in the gallery.

     

    To achieve your need, you could leverage the OnCheck and OnUncheck properties of the check box:

    OnCheck:

    Patch(database, ThisItem, {CheckColumn: USER})

     OnUncheck:

    Patch(database, ThisItem, {CheckColumn: Blank()})

     

    So once check will write current user into SQL data base and once uncheck will clear it.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard