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 / Not supplied data source
Power Apps
Unanswered

Not supplied data source

(0) ShareShare
ReportReport
Posted on by

Hey guys, I hope you all are having a great day.

 

I'm building an app with a SQL Server data conection, the basic app purpose is to get an item from the data base and them te user could patch the quantity of the items in stock.

 

But even though the formula seem ok I recive the runtime error bellow:

 

LuFerri_0-1702552507768.png

 

The code I'm using is bellow:

 

Set(QTT_A, LookUp(TABLE, COLUMN = Value(OP.Text)).QTT_DB_A);
Set(QTT_B, LookUp(TABLE, COLUMN = Value(OP.Text)).QTT_DB_B);

Patch(
 TABLE;
 Filter(TABLE, COLUMN = Value(OP.Text)),
 {
 QTT_DB_A: (QTT_A + Value(FIELD.Text)),
 QTT_DB_B: (QTT_B - Value(FIELD.Text))
 }
)

 

Thanks in advance and I hope you can help me.

Have a good day.

Categories:
I have the same question (0)
  • timl Profile Picture
    37,262 Super User 2026 Season 1 on at

    @LuFerri 

    Assuming that you want to patch a single record, you should call the LookUp function to retrieve the target record, rather than Filter.

    Also note that in your formula, the separator character after TABLE is a semi-colon. If you're using Power Apps in English, this should be a comma.

    Patch(
     TABLE,
     LookUp(TABLE, COLUMN = Value(OP.Text)),
     {
     QTT_DB_A: (QTT_A + Value(FIELD.Text)),
     QTT_DB_B: (QTT_B - Value(FIELD.Text))
     }
    )

     

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