You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the child nodes in the result array can be different. When I try and execute rules against this (using ExecuteAllRulesAsync) I get the following error:
System.ArgumentException: 'Object of type 'System.Collections.Generic.List1[System.Int64]' cannot be converted to type '<>f__AnonymousType02[System.Int64,System.Collections.Generic.List`1[System.String]]'.'
This is only a problem when I have an array of differerent types. It works if I only have child nodes of "type1" for example.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there. I have a Json structure that looks something like this:
So the child nodes in the result array can be different. When I try and execute rules against this (using ExecuteAllRulesAsync) I get the following error:
System.ArgumentException: 'Object of type 'System.Collections.Generic.List
1[System.Int64]' cannot be converted to type '<>f__AnonymousType0
2[System.Int64,System.Collections.Generic.List`1[System.String]]'.'This is only a problem when I have an array of differerent types. It works if I only have child nodes of "type1" for example.
My workflow is very simple and looks like this:
Does the rules engine not work for Json objects that have differing child nodes?
Beta Was this translation helpful? Give feedback.
All reactions