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 / Error "The Requested O...
Power Apps
Answered

Error "The Requested Operation is invalid" due to number/text mismatch

(0) ShareShare
ReportReport
Posted on by 144

I have a gallery with a TextInput Field formatted as Number see below.

 

InvalidField.jpg

 

I want to insert this into a sharePoint list (ManpowerLog) with Title (text) and Number (Number, zero decimals) fields.

I am using the following patch command:

ForAll(gllryManPower.AllItems,Patch(ManpowerLog,{Title:cTitle.Text,Number:cNumber}))

I get the 'requested operation is invalid' error.  

 

It only works if the SharePoint field is changed to Text and using the following updated patch comand:

ForAll(gllryManPower.AllItems,Patch(ManpowerLog,{Title:cTitle.Text,Number:cNumber.Text})

How can i make it work with a sharepoint list formatted as number?

@rgruian

@mr-dang

Categories:
  • Verified answer
    gokello Profile Picture
    144 on at

    Figured it out.  Needed to use the Value Function on 'Number'

     

    ForAll(Filter(gllrycManPower.AllItems,Not IsBlank(mpNumber)),Patch(ManpowerLog,{Title:mpTitle.Text,Number:Value(mpNumber.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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard