Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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.

  • Verified answer
    v-siky-msft Profile Picture
    on at
    Re: Condition Check Integer works with English Form but not Chinese Form

    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

  • Paulie78 Profile Picture
    8,416 Super User 2025 Season 1 on at
    Re: Condition Check Integer works with English Form but not Chinese Form

    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1