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 throwing error i...
Power Apps
Unanswered

Patch throwing error if use divide in the patch insert

(1) ShareShare
ReportReport
Posted on by 14

HI Guys , 

I'm trying to do divide function in the patch , it is not allowing to do and throwing out patch error , Can u help me sort out .

 

Error Highlighted as Bold. 

 

Forall(SalesHistory,Patch('ProductSales',Defaults('ProductSales'),{Category:ThisRecord.category,'Outlet Type':ThisRecord.cr6bc_type,'Quantity':ThisRecord.Sales_Qty*(Value(TextInput1.Text)/100)}))

Categories:
  • ganesan_30r Profile Picture
    14 on at

    Hi , I run out same code , Still have same patch issue while updating , condition it is entering if i do multiply it is working properly , if i do division over their creating issues  . Can u help to solve  

  • ganesan_30r Profile Picture
    14 on at

    @Ali_SZ_365  thanks for the effort, i solve the problem , it is not do to divide function , it is due to whole number data type  , it is not allowing decimals due to that issue happen .  Using Round function i solved the problem .

     

    Thanks for your reply

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard