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 / Patch with Excel - Error
Power Apps
Unanswered

Patch with Excel - Error

(0) ShareShare
ReportReport
Posted on by 3

I am trying to create a patch to an already connected Excel. I think the problem is the two semicolons after "table1". But with one colon the patch has invalid arguments. I've been trying to fix this for three days now hahaha. Can you pls help me 🙂

Set(bst_thispart; TextInput3.Text);;
Patch(Table1;; Defaults(Table1);
LookUp(Table1; ETR = etnr_thispart);
{Inventory: bst_thispart});;
Notify(etnr_thispart & “ ” & bst_thispart)

Translated with DeepL.com (free version)

Categories:
I have the same question (0)
  • MuhammadAizaz Profile Picture
    53 on at

    Hello @MarcoSager ,
    here is the correct code:
    Set(bst_thispart, TextInput3.Text);
    Patch(Table1,
    LookUp(Table1, ETR = etnr_thispart),
    {Inventory: bst_thispart}
    );
    Notify(etnr_thispart & " " & bst_thispart)

  • MarcoSager Profile Picture
    3 on at

    Hey there @MuhammadAizaz1  , thanks for your answer!

    But just as i said, for my region (Switzerland) we use semicolons instead of commas. The problem is, that the patch has wrong arguments in it. when i put 2 semicolons (in your case that would be 2 commas) after the first table1, then there is no error. What could be wrong with my data that its says wrong arguments?

     

     

  • MuhammadAizaz Profile Picture
    53 on at

    Hey @MarcoSager , sorry for late response.
    If you issue is still not resolved, please make sure you are either using Default or Lookup function inside Patch function. You cannot use both together inside the Patch function as per my knowledge. Correct code will be.

    Set(bst_thispart; TextInput3.Text);;
    Patch(Table1;
    LookUp(Table1; ETR = etnr_thispart);
    {Inventory: bst_thispart});;
    Notify(etnr_thispart & “ ” & bst_thispart)

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 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard