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 / Qty amount reduces mor...
Power Apps
Unanswered

Qty amount reduces more than supposed to

(0) ShareShare
ReportReport
Posted on by

Hello, wonderful community!

 

I'm facing an issue for which I'm struggling to find a solution. I have a Warehouse App in which users scan materials using the barcode Scanner control. The scanned materials are stored in a collection, and when the user presses the submit button, these scanned items are then stored in a Withdrawal SharePoint List. Additionally, the quantity of each product scanned is supposed to reduce in our inventory SharePoint List.

 

However, there are instances when a user takes, for example, 3 out of 5 boxes of an item, but the stock quantity in the Inventory List suddenly changes to -3852 (just an example), even though the input number value is correct. Why does this issue occur?

 

Please refer to the attached images for clarification, and feel free to ask for more information. Since this app is already launched and currently in use, I need to resolve this issue as soon as possible.

 

Thank you!

Collect Button Formula.PNG
Submit Button Formula.PNG
Qty Stock Value Error and Withdrawal List of said Product.PNG
Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @VincentGiovanni ,

     

    For patching to the inventory list, what's the collection colAntVal? Where or how is it updated?

    vjefferni_0-1695025916585.png

    Best regards,

  • VincentGiovanni Profile Picture
    on at

    Hello @v-jefferni !

    Perhaps this is bad naming from my part but the colAntVal is a Label control inside a gallery that stores the quantity number from the users input from previous screen. See newly attached files.

    Thank you for the quick response by the way.

    ColAntVal Label in gallery.PNG
    userInp for qty val.PNG
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @VincentGiovanni ,

     

    Does the Gallery where includes the user input quantity Label connect to the collection colUttag as its data source?

     

    Please modify the formula on collect button, remove the Text function from Antal column, just use Value(ScannaOrAntalTxtInp.Text). Secondly, on submit button, change "-colAntVal" with "-Varukorg.Antal".

     

    Best regards,

  • VincentGiovanni Profile Picture
    on at

    Hello @v-jefferni 

    I tried your solution but recieving error messages on the colAntVal Label control in the gallery saying "Value Text is expected"  and the submit button saying "invalid argumenttype. One of the following is expected: Number, Text, Boolean, UntypedObject" 

    Give some time too solve this, I'm no expert on PowerApps unfortunately.

    Thanks 

  • VincentGiovanni Profile Picture
    on at

    Also on the collect button saying the same message. "Incompatible type. Collection can't contain value of this type"

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @VincentGiovanni ,

     

    Firstly, please consider raise a support ticket if it's an urgent issue. Secondly, you can change back the formula on the label, but the two errors on collect and submit button, please share a screenshot so I can know exactly what the issue is.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard