web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Condition Check Intege...
Power Automate
Unanswered

Condition Check Integer works with English Form but not Chinese Form

(0) ShareShare
ReportReport
Posted on by

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:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard