(java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 Error documentToRecord

Hi All,

We have a flow which processes documents into our ERP. It works perfectly well but then just randomly throws the following error when going through a list of files…

pub.web:documentToRecord sefail: Array index out of range: -1

What is a sefail?

… I’ve checked the document contents and here is nothing untoward.

Any guidance on this would be warmly received as I can’t find anything similar in other posts.

Thank you.

This service was deprecated a long time ago; you must consider an upgrade.

Anyhow, this doesn’t happen without a problem with the data structure; do investigate your pipeline closely.
You can add a step in the Catch block to write the current data item to the logs for closer investigation/comparison against a successful item.

Try setting the makeArrays parameter to false (this is from pub.xml:xmlNodeToDocument from later version, but this should still apply) -


1 Like

Hi DS,

I think you can try to reprocess using the same document, save pipeline to file, then restore from pipeline to debug the service, normally it should be the data structure issue.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.