Unable to set array element in structure

I remember something about references from structures being an issue in my code, but I might be remembering wrong. It appears you don’t have a reference returned for the Category STR return value. I’m not saying you can make it a reference, but is there a way to expand the code for RTN Fetch Category from Category directly and somehow operate on a reference just to see if references are an issue.

I honestly don’t know what you are experiencing in regards to how you check if the array is set, but this is just a thought I had cuz it seems like you are directly accessing a reference when getting the container of the category, but not on the category fetching return value.

Maybe structure return values are references. Anyways, this is what I would check.