web stats
Text Writter getting wrong - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2017, 06:07 AM
jcamilorincon jcamilorincon is offline
What's HL7?
 
Join Date: Nov 2017
Posts: 3
jcamilorincon is on a distinguished road
Question Text Writter getting wrong

Hello, I'm newbie using Mirth Connect. I'm following a tutorial to create a Text Writer Destination (Flat File with HL7 specific content).

When I tried to add extracted variables to my destination template
${dateOrTimeOfMessage_value};${sendingApplication_ entityIdentifier};${messageControlId_value}

The content file appears like this:
[Ljava.lang.Object;@4ea1750c;[Ljava.lang.Object;@5ecbe5;[Ljava.lang.Object;@609a74cd

What I expect is the content file will be like this:
2017110101;DATACAPTOR;7a55d2552c2c5d

What is it wrong? What is it missing?

Thanks in advance.
Reply With Quote
  #2  
Old 11-25-2017, 03:20 AM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 137
odo is on a distinguished road
Default

Seems like you forgot to add .toString() when writing the fields to the variables.
Reply With Quote
  #3  
Old 11-26-2017, 05:51 PM
jcamilorincon jcamilorincon is offline
What's HL7?
 
Join Date: Nov 2017
Posts: 3
jcamilorincon is on a distinguished road
Exclamation

Hello Odo:

I checked and all transformed variables at output (destination) includes .toString() suffix. What am I doing wrong?.

Should the transformation be at the destination or at source?

please let me know
Reply With Quote
  #4  
Old 11-27-2017, 05:59 AM
jcamilorincon jcamilorincon is offline
What's HL7?
 
Join Date: Nov 2017
Posts: 3
jcamilorincon is on a distinguished road
Default

Quote:
Originally Posted by odo View Post
Seems like you forgot to add .toString() when writing the fields to the variables.
Hello,

All variable at output transformation filter had .toString() command included. Despite that, in my destination file (text writer) still appears like java annotation.
Reply With Quote
Reply

Tags
connect, destination filters, destination template, text file

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 10:21 PM.


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