Mirth Connect
  1. Mirth Connect
  2. MIRTH-4038

Batch Processing fails when using a grouping column, and that column doesn't exist

    Details

      Description

      When using a channel to batch process a text delimited file with a grouping column, if that grouping column is not present on a row (blank is okay, but if the column is towards the end and for some reason-say the input had a newline character in an unexpected place so the row never reaches column X, which may be the grouping column), Mirth returns the error displayed below. Furthermore, rather than just erroring out on this particular line (and treating the grouping column as blank and moving on), the entire file hangs, and the channel gets stuck in a perpetual "READING" status. The original file never gets moved to the /processed/ directory, despite the move after processing action being properly set up.

      [2016-08-26 12:30:00,004] ERROR (com.mirth.connect.connectors.file.FileReceiver:363): Unable to dispatch message to channel 11cf22aa-cd1c-4d2e-8ad7-59e11c628278: com.mirth.connect.donkey.server.message.batch.BatchMessageException: Failed to retrieve batch message at sequence number 1

      at com.mirth.connect.donkey.server.message.batch.BatchAdaptor.getMessage(BatchAdaptor.java:54)

      at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchBatchMessage(SourceConnector.java:230)

      at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchBatchMessage(SourceConnector.java:196)

      at com.mirth.connect.connectors.file.FileReceiver.processFile(FileReceiver.java:331)

      at com.mirth.connect.connectors.file.FileReceiver.processFiles(FileReceiver.java:247)

      at com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:203)

      at com.mirth.connect.donkey.server.channel.PollConnectorJob.execute(PollConnectorJob.java:47)

      at org.quartz.core.JobRunShell.run(JobRunShell.java:213)

      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
      Caused by: java.lang.IndexOutOfBoundsException: Index: 13, Size: 12

      at java.util.ArrayList.rangeCheck(ArrayList.java:653)

      at java.util.ArrayList.get(ArrayList.java:429)

      at com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getMessage(DelimitedBatchAdaptor.java:220)

      at com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getMessageFromReader(DelimitedBatchAdaptor.java:103)

      at com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getNextMessage(DelimitedBatchAdaptor.java:94)

      at com.mirth.connect.donkey.server.message.batch.BatchAdaptor.getMessage(BatchAdaptor.java:37)

      ... 8 more

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Alex Vacharat
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development