web stats
Empty query results causing StringIndexOutOfBoundsException - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
error, hl7, oracle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:10 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation