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 / JSON parsing error exp...
Power Apps
Answered

JSON parsing error expected 'number' but got 'string' calling flow from Canvas app.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I created a dummy Power Automate flow that just returns a number:

 

edhalsim_0-1683034873256.png

Here's a test run:

edhalsim_1-1683034912320.png

Note the quotes around the 1.

When I call this flow from Power Apps:

    Set(EdTest, 'EdTestReturningNumber'.Run());

I get this error:

edhalsim_2-1683034966347.png

Any idea why the flow is putting quotes around the 1?  I know I can change it to return a string, but then I need to convert it to a number in both my canvas app. and in another flow that calls this one.

Thanks for your time.

Categories:
  • mmollet Profile Picture
    3,187 on at

    You could try to use the float function in your flow to cast it into a float or the int function to cast it into an int value. Also on the powerapps side its a pretty easy cast to do there as well. Value(YourReturnParameter) will turn the string back into a value/number field.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What seems to work is in the Respond step return "int(...)".

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard