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 / Erreur caractères inat...
Power Apps
Unanswered

Erreur caractères inattendus

(0) ShareShare
ReportReport
Posted on by

Bonjour, 

J'ai un soucis avec ma formule. J'ai crée une appli Power apps pour la gestion des stocks. le but de ma formule est de que lorsque nous choisissons de sortir 2 paires de gants par exemple, mon stock disponible (qui est affiché) diminue en fonction du nombre d'objet que nous sortons.

 

Voici la formule : 

UpdateContext({ QuantiteAValider: NumberInput1.Value}) & Patch('Tableau des articles de protection' ,LookUp(Tableau1;'Article'= "GANTS NITRILE PLUS 5540 VERT. 45 CM. EP. 0.56 MM T09 COV.5539")),{ Stock Actuel: Stock actuel - QuantiteAValider }
 
Lorsque j'écris ma formule, j'ai plusieurs erreurs qui apparaissent. Toutes sont des caractères inattendus.
 
Merci pour votre aide
Categories:
I have the same question (0)
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    There are a few issues with the formula, including a mixture of using , and ; to separate function arguments, an extra closing parenthesis on the LookUp call, and others. Something similar to the expression below should work:

    UpdateContext({ QuantiteAValider: NumberInput1.Value});
    With(
     { recordToUpdate: LookUp(Tableau1,'Article'= "GANTS NITRILE PLUS 5540 VERT. 45 CM. EP. 0.56 MM T09 COV.5539") },
     Patch(
     'Tableau des articles de protection',
     recordToUpdate,
     { 'Stock Actuel': recordToUpdate.'Stock actuel' - QuantiteAValider }
     )
    )

    Or below if your language uses ',' as the decimal separator (which would be the case for French):

    UpdateContext({ QuantiteAValider: NumberInput1.Value});;
    With(
     { recordToUpdate: LookUp(Tableau1;'Article'= "GANTS NITRILE PLUS 5540 VERT. 45 CM. EP. 0.56 MM T09 COV.5539") };
     Patch(
     'Tableau des articles de protection';
     recordToUpdate;
     { 'Stock Actuel': recordToUpdate.'Stock actuel' - QuantiteAValider }
     )
    )

    Hope this helps!

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

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard