microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.21k stars 327 forks source link

Custom SetProperty function with number value #1669

Closed NavneetThekkumpat closed 1 year ago

NavneetThekkumpat commented 1 year ago

Running Testengine with this SetProperty

SetProperty(Rating1.Value, 5);

PowerFx.Engine.Check and Eval functions fail with the below error

image

Workaround right now is setting NumberIsFloat ParserOptions to true and it runs successful.

jas-valgotar commented 1 year ago

This is related to https://github.com/microsoft/Power-Fx/issues/1659 This should be a fix here: https://github.com/microsoft/Power-Fx/blob/main/src/libraries/Microsoft.PowerFx.Interpreter/CustomFunction/CustomSetPropertyFunction.cs#L72