Hello,
I am running into a strange problem with one of my workflows. I am doing some (> 20k) requests at NCBI using the GET Resource node. The response is saved as a XML file using the XML Writer node.
Workflow design
Everything is wrapped into two loops: Loop 1 starts with a Chunk Loop Start node and ends with a crude Loop End node just to perform one request at a time. Loop 2 (inner loop) starts with a Generic Loop Start node and ends with a Variable Condition Loop End node.
The reason for the inner loop is, to catch all fails caused by the GET Resource node and retry until a certain limit is reached.
Failure
Now suddenly after a few hundred loops the workflow fails. Error 1 is caused by the Variable Condition Loop End node:
ERROR Variable Condition Loop End Execute failed: Input table's structure differs from reference (first iteration) table: different column counts 1 vs. 0
At this point I can tell you that the preceding nodes outport delivers a table with one column and one row. Cell type is XML.
Error 2 is caused by the XML Writer node:
ERROR XML Writer Execute failed: ("NullPointerException"): null
Last but not least three more errors can be found in the console:
ERROR XMLCellContent Error while parsing XML in XML Cell
ERROR LocalNodeExecutionJob Caught "NullPointerException": null
ERROR LocalNodeExecutionJob Caught "NullPointerException": null
Confusion
Apart from the fact, that error 1 makes no sense to me, I can pull an additional XML Writer node into the failed/cancelled workflow and connect it to the same outport as the original XML Writer node. Now when executing this node, everything is fine, no errors occure...
A screenshot is attached to this post, I hope it helps to understand the problem.
Best,
Marc