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 Automate / Condition Check Intege...
Power Automate
Answered

Condition Check Integer works with English Form but not Chinese Form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have created 2 forms, one in English and the other in Mandarin. However, the Flow for the Chinese form keeps failing at the Condition Check for Integer greater than. The error message is as follows:

 

Unable to process template language expressions for action 'Condition_Check_if_Value_more_than_RMB300_per_person' at line '1' and column '48534': 'The template language function 'greater' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

 

In the Chinese form, I have already applied a Restriction to ensure users can only enter a number. This is the same settings I made in the English form.

chineserestrictioninteger.pngenglishrestrictioninteger.png

 

The screenshots below show the Flow condition used.

chineseflow.pngenglishflow.png

 

I suspect this may be a Form issue where the Chinese template is saving the restricted number field as a String and passing it to Automate, thus causing the error which does not occur in the English template.

 

Please help to test it out and help confirm if this is indeed the case?

 

Thank you.

Categories:
  • Paulie78 Profile Picture
    8,424 Moderator on at

    Try converting the form field response to a number (even though it is already one). You can do this in your condition or a compose action before your condition (then use the output of the compose as the left side of the condition).

     

    In the expression editor use something like:

    int(outputs('Get_response_details')?['body/whatIsTheValue'])
     
    You need to replace the outputs('Get_response_details')?['body/whatIsTheValue'] with the dynamic content from your own form submission.
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    It seems to be a bug that the answer should be Number type, but outputs as string (wrapped around double quotes) in the body of Get response details action.

    As an alternative workaround, please wrap single quote around 300 to convert it to string type to eliminate compatible issue

    Snipaste_2020-11-11_16-07-27.png

     

    Hope this helps.

    Sik

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard