(See attached graph)
I have created a workflow that grabs all elements of a category, finds the Space they reside in, then assigns a unique sequential ID in the order of the room number via “List.SortByKey”. This works in my small simplified “test environment” project, but am having trouble when using this workflow on a larger “real world” project, and it is getting hung up on the list of Spaces. I am getting an error, “Dereferencing a non-pointer”. I have read other threads that say that it’s possible that when the first item listed is “null”, it can bring about this error.
One Idea: Remove “nulls” from the Space list (before it gets pushed to the “GetParameterValueByName” node), but not sure how to do this. I would also think that the number of filtered results would need to be the same for all elements getting pushed to the “List.SortByKey” ‘list’ input.
Another Idea: Somehow rearrange the Elements list (aka the output of the “All Elements of Category” node) to at least start with an element that has a valid Space, so that it may circumvent the error.
Any ideas or thoughts for a solution would be greatly appreciated.