ArrayIndexOutOfBoundsException error

Trying to extract XML payload from inbound ebXML message. Successfully run services getContentsFromStreams, bytesToString, stringToDocument but then error on documentToRecord:

An error occurred while tracing.
com.wm.app.b2b.server.ServiceException: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1

Any ideas?
Thanks, John

Are you setting any parameters to pub.web:documentToRecord? e.g. makeArrays=“true” or passing in a recordName?

Is it possible to post the document as a string?

This may be a job for Customer Care.