logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

Liquid maps: Slice doesn't support arrays

Open chriswatsonaus opened this issue 4 years ago • 3 comments

In Liquid Maps, the Slice filter doesn't support array inputs, only strings. This is a known issue in DotLiquid - https://github.com/dotliquid/dotliquid/issues/455 Please ensure the update is included as soon as it has been completed in DotLiquid.

Example: "My first birthday" | Slice: 0,1 --> "My" - OK "My first birthday" | Split " " | Slice: 0,1 --> Error (String[] not supported input), expected: ["My","first"]

chriswatsonaus avatar Jan 10 '22 03:01 chriswatsonaus

are you facing this in logic app standard or the consumption?

mbarqawi avatar Feb 23 '22 07:02 mbarqawi

I was seeing it in Standard. I haven't tried it in Consumption. It looks like it has since been resolved in the DotLiquid source. If the change has been rolled into the Logic Apps implementation then I am happy to test.

chriswatsonaus avatar Feb 25 '22 10:02 chriswatsonaus

I have tried in the consumption, it does not work. The Slice or Split currently is not performing. Also I can see the latest version of the DOT Liquid is 2.2.656 and Logic app is still using DotLiquid 2.0. Kindly update the version.

Prafulkapse avatar Sep 23 '22 09:09 Prafulkapse

We are currently using Liquid 2.0.361.0 and I have added this to our backlog to update this to the latest version.

rohithah avatar Nov 16 '22 07:11 rohithah