Do you have idea why mange worksets are null???
You don’t need the longest lacing on the Manage Worksets of RevitLinkInstance node.
If you have several worksets which starts with “wor”, I do not guarantee the result.
Still the same…
I don’t think.
Which version of Revit do you use ?