web stats
Mirth Community - View Single Post - Queue on Failure
View Single Post
Old 09-15-2016, 09:16 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road

First of all you haven't answered all the questions I asked. What type of destination connector are you using?

Looks like you're doing that in the transformer. If a message errors out in the filter/transformer script, it will be a hard ERROR and will not queue.

If you want it to queue, you can move that script into a JavaScript Writer destination. You can return Response or Status objects from the script itself. So for example you can do this:

try {
    // Do something
} catch (e) {
    return new Response(QUEUED, '', e.javaException.getMessage(), org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace(e.javaException));
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote