Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Text Writter getting wrong (http://www.mirthcorp.com/community/forums/showthread.php?t=217799)

jcamilorincon 11-24-2017 06:07 AM

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.

odo 11-25-2017 03:20 AM

Seems like you forgot to add .toString() when writing the fields to the variables.

jcamilorincon 11-26-2017 05:51 PM

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

jcamilorincon 11-27-2017 05:59 AM

Quote:

Originally Posted by odo (Post 261888)
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.


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

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