web stats
Mirth Community - View Single Post - Empty query results causing StringIndexOutOfBoundsException
View Single Post
  #1  
Old 11-02-2012, 07:11 AM
psanders psanders is offline
OBX.2 Kenobi
 
Join Date: Nov 2011
Posts: 55
psanders is on a distinguished road
Default Empty query results causing StringIndexOutOfBoundsException

I getting the error below in the transform step of my channel:

"StringIndexOutOfBoundsException: String index out of range"

is this due to the fact that some elements in the xml string returned from a query are empty?

The source on my channel is a database reader connecting to Oracle. I'm writing an HL7 file to the local drive. I have transform steps on all the xml elements to an HL7 field. But I suspect the error is due to having empty elements. I won't always have data returned in every field.

My question is how to handle that scenario? I still get the file created in my "error" directory, it just doesn't create it in the "out" directory.

Thanks
Reply With Quote