Liquid template Minus operation within Logic Apps

hichamveo 41 Reputation points

I'm trying to substract 2 variables from 2 strings in source json. Even with a math filter to convert them to number/float, I'm getting :

Liquid error: Parameter count mismatch.

{% assign my_v1="12.24" | plus: 1 %}
{% assign my_v2="10.24" | plus: 1 %}

{{ my_v1 | Minus : my_v2}}

expected value : 2.24

any help please?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,933 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,846 Reputation points

    @hichamveo Liquid action follows the DotLiquid implementation for Liquid as mentioned here. Looks like the issue that you have observed was fixed recently here.

    I have reached out to my team to confirm the current version of DotLiquid version and if there are any plans to migrate it in the near future. I will update this thread once I heard back from my team.

    Update 9/20:
    Currently logic app supports 2.0.361 version of DotLiquid. The product team will be updating it to the latest version and we will update the version information in our document. The current ETA for this change is March 2022 but could be changed due to unforeseen circumstances.

0 additional answers

Sort by: Most helpful