spunny,
Welcome to the forum. ![]()
Please go back, edit your question once again and fix the formatting of your code.
When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thanks in advance
Guide to Posting Code - Redux <---- Click
![]()
( !! Sometimes the preformatted text button hides behind the settings gear symbol.
)
This is usually a hint that you get an array, a list, a collection instead of a single object. Iโd try to cast the variable explicitly for an array and inspect whatโs in it. ![]()