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 / Flow.RUN() failed erro...
Power Apps
Unanswered

Flow.RUN() failed error "TriggerInputSchemaMismatch". Error type : "Expected Number but got String"

(0) ShareShare
ReportReport
Posted on by 18

Hi,

 

I am trying to run a flow (Execute SQL Stored Procedure) where the flow takes a GroupID from varRecord (Gallery.Selected) and an Individual ID from ComboBox.Selected.ID.

 

I am not able to fetch the GroupID using varRecord.GroupID. It comes up as blank. When I do a LookUp with the table where the GroupID is stored, it gives me a schema mismatch error. It says expected number but got string.

 

I tried using Value(LookUp(...)), but that didn't help either.

 

I am running the SP on the 'OnSelect' property of the ComboBox. The error pops up on PowerApps even before the Flow can run.

Categories:
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    I suspect that the GroupId property of varRecord is being read as a string when you need an integer.  Try replacing your use of varRecord.GroupId in the Lookup with value(varRecord.GroupId), rather than putting the Value() outside the lookup.

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Is the error coming from the Lookup(), if so, maybe it has to with the condition in the lookup. What is the lookup formula?

  • pralikab931 Profile Picture
    18 on at

    Now I get an error as follows:

     

    'Execute Procedure V2' requires the property 'parameter/id' to be a string of maximum length '-1' but is of length '1'. error in powerapps

  • pralikab931 Profile Picture
    18 on at

    LookUp(IMTable, IM_No = Gallery.Selected.IM_No).GroupID

     

    IMTable has GroupID against every IM_No

     

    Data type of IM_No and GroupID is int.

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Can you try this and see if the lookup will return a value instead of an error.

     

    LookUp(IMTable, IM_No = Value(Gallery.Selected.IM_No)).GroupID

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 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard