When loading a json file that contains a null field, the interpreter chooses a string type which may not always be correct.
For instance in the following situation:
“Name”: “Some Name”,
The json data source makes the assumption that the null value of the nested value must be a string.
Then when the reporting engine tries to evaluate the line <<if[ob.nest?.value]>> it does not stop when it cannot find the value for nest…
Instead we get the error:
System.InvalidOperationException: ‘An error has been encountered at the end of expression ‘ob.nest?.value]>’. Can not get the value of member ‘value’ on type ‘System.String’.’
If we enable missing member though we still have an issue since the reporting engine now cannot evaluate the if statement:
The following error is produced: System.InvalidOperationException: ‘Tag ‘if’ is not well-formed. A conditional expression should return a Boolean value.’
To try and mintage this the ?? could be used except that the reporting engine has a blank object instead of null and does not know how to evaluate it now.
<<if[ob.nest?.value ?? false]>>
THIS IS TEXT
Gives the following error:
System.InvalidOperationException: ‘An error has been encountered at the end of expression ‘ob.nest?.value??false]>’. Can not apply operator ‘??’ to operands of type ‘System.Object’ and ‘System.Boolean’.’
BrokenJsonLoading.zip (1.7 KB)
To get each error please modify the files for the given situation
What would be the timeline on the fix for this situation, as we consider this a critical bug?