Expected a node but got null

This error occurs when an XML node could not be found for any number of reasons.

If you are getting this error as a result of running an operation, check if your contextNodeId, and other node IDs, are correct. You can use a transform to find the right node for your operation.