ElementType with BackgroundOpen

Check your list of Elements for odd things specifically of Curtain wall millions because some of them produce nulls and break the node as the error message says. I have experienced this before, just don’t recall exactly why elements caused it, but if you filter them first it should work.

This may also help you as I have done something similar and shared it before.