<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic TOS DI 6.3.2 HL7 Output Example not working in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TOS-DI-6-3-2-HL7-Output-Example-not-working/m-p/2295987#M143334</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I try to reconstruct &lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/qOXXOEQM7KqqLJRK2c_ozA" target="_self" rel="nofollow noopener noreferrer"&gt;this Example&lt;/A&gt; from the v6.3 Reference Guide.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.)&amp;nbsp; At step "5." In the references Guide this Windows appears:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3426.jpg" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaII.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135998iFA13091799870075/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaII.jpg" alt="0683p000009MaII.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In my TOS DI 3.2.2 I get this window ( the left side is missing &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3427.jpg" style="width: 340px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152510i2846AB38D95D06C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIN.jpg" alt="0683p000009MaIN.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I am able to connect the MSH &lt;STRONG&gt;tFixedFlowInput&lt;/STRONG&gt; component with the &lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;tHL7Output&lt;/STRONG&gt;&lt;/SPAN&gt; component&lt;/P&gt; 
&lt;P&gt;by clicking the save button "Save as generic Schema" and then loading it into the "MSH" component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3428.jpg" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIS.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140802i849204A4C0CDDA06/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIS.jpg" alt="0683p000009MaIS.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3430.jpg" style="width: 553px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155332i4CA75C42CB1D468E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIX.jpg" alt="0683p000009MaIX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;When I double click on the hHL7Output_1 component I see that both components are connected:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3429.jpg" style="width: 794px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZvA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147538i47504819A0C2B120/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZvA.jpg" alt="0683p000009MZvA.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But If I run the Job I get the following error:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Starting job thl7out at 11:36 27/05/2020.

[statistics] connecting to socket on port 3528
[statistics] connected
Exception in component tHL7Output_1 (thl7out)
ca.uhn.hl7v2.HL7Exception: Can't encode message: MSH-1 (field separator) is missing
	at ca.uhn.hl7v2.parser.PipeParser.doEncode(PipeParser.java:568)
	at ca.uhn.hl7v2.parser.Parser.encode(Parser.java:239)
	at ca.uhn.hl7v2.parser.PipeParser.encode(PipeParser.java:803)
	at ca.uhn.hl7v2.model.AbstractMessage.encode(AbstractMessage.java:192)
	at ukb.thl7out_0_1.thl7out.tFixedFlowInput_3Process(thl7out.java:1155)
	at ukb.thl7out_0_1.thl7out.runJobInTOS(thl7out.java:1419)
	at ukb.thl7out_0_1.thl7out.main(thl7out.java:1268)
[statistics] disconnected
Job thl7out ended at 11:36 27/05/2020. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;If I put a tLogRow in between, you can see that the HL7 fields are populated as in the reference Example:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[statistics] connecting to socket on port 3519
[statistics] connected
||^~\&amp;amp;||||||||||||||||ACK||MSGID66|P||2.3||||||||||||&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So for me it looks like that the data from the "MSH" component is not successfully read by the "tHl7Output_1" component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I look at the java code it also looks like the msg_tHL7Output_1 Variable&lt;STRONG&gt; gets never filled with data&lt;/STRONG&gt;:&lt;/P&gt; 
&lt;P&gt;It gets created and then assigned to an empty ACK Message Object and then the content gets read.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But&lt;/P&gt; 
&lt;PRE&gt;962 ca.uhn.hl7v2.model.Message msg_tHL7Output_1 = null;

...


1091 if (msg_tHL7Output_1 == null) {
		msg_tHL7Output_1 = new ca.uhn.hl7v2.model.v23.message.ACK();
		terser_tHL7Output_1 = new ca.uhn.hl7v2.util.Terser(
				msg_tHL7Output_1);
		util_tHL7Output_1.findSegments(msg_tHL7Output_1,
				map2Seg_tHL7Output_1);
					}
					
					
...
					
1153 String resultMsg_tHL7Output_1 = msg_tHL7Output_1.encode();&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can someone help me, I tired to follow the &lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/qOXXOEQM7KqqLJRK2c_ozA" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class="fluid-aside-tab-title fluid-aside-book-title"&gt;Reference Guide&lt;/SPAN&gt; example&lt;/A&gt; as much as possible.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3433.jpg" style="width: 440px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaFj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154021i848ACC24B72E6C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaFj.jpg" alt="0683p000009MaFj.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:19:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:19:00Z</dc:date>
    <item>
      <title>TOS DI 6.3.2 HL7 Output Example not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-DI-6-3-2-HL7-Output-Example-not-working/m-p/2295987#M143334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I try to reconstruct &lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/qOXXOEQM7KqqLJRK2c_ozA" target="_self" rel="nofollow noopener noreferrer"&gt;this Example&lt;/A&gt; from the v6.3 Reference Guide.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.)&amp;nbsp; At step "5." In the references Guide this Windows appears:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3426.jpg" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaII.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135998iFA13091799870075/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaII.jpg" alt="0683p000009MaII.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In my TOS DI 3.2.2 I get this window ( the left side is missing &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3427.jpg" style="width: 340px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIN.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152510i2846AB38D95D06C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIN.jpg" alt="0683p000009MaIN.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I am able to connect the MSH &lt;STRONG&gt;tFixedFlowInput&lt;/STRONG&gt; component with the &lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;tHL7Output&lt;/STRONG&gt;&lt;/SPAN&gt; component&lt;/P&gt; 
&lt;P&gt;by clicking the save button "Save as generic Schema" and then loading it into the "MSH" component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3428.jpg" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIS.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140802i849204A4C0CDDA06/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIS.jpg" alt="0683p000009MaIS.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3430.jpg" style="width: 553px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155332i4CA75C42CB1D468E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIX.jpg" alt="0683p000009MaIX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;When I double click on the hHL7Output_1 component I see that both components are connected:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3429.jpg" style="width: 794px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZvA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147538i47504819A0C2B120/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZvA.jpg" alt="0683p000009MZvA.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But If I run the Job I get the following error:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Starting job thl7out at 11:36 27/05/2020.

[statistics] connecting to socket on port 3528
[statistics] connected
Exception in component tHL7Output_1 (thl7out)
ca.uhn.hl7v2.HL7Exception: Can't encode message: MSH-1 (field separator) is missing
	at ca.uhn.hl7v2.parser.PipeParser.doEncode(PipeParser.java:568)
	at ca.uhn.hl7v2.parser.Parser.encode(Parser.java:239)
	at ca.uhn.hl7v2.parser.PipeParser.encode(PipeParser.java:803)
	at ca.uhn.hl7v2.model.AbstractMessage.encode(AbstractMessage.java:192)
	at ukb.thl7out_0_1.thl7out.tFixedFlowInput_3Process(thl7out.java:1155)
	at ukb.thl7out_0_1.thl7out.runJobInTOS(thl7out.java:1419)
	at ukb.thl7out_0_1.thl7out.main(thl7out.java:1268)
[statistics] disconnected
Job thl7out ended at 11:36 27/05/2020. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;If I put a tLogRow in between, you can see that the HL7 fields are populated as in the reference Example:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[statistics] connecting to socket on port 3519
[statistics] connected
||^~\&amp;amp;||||||||||||||||ACK||MSGID66|P||2.3||||||||||||&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So for me it looks like that the data from the "MSH" component is not successfully read by the "tHl7Output_1" component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I look at the java code it also looks like the msg_tHL7Output_1 Variable&lt;STRONG&gt; gets never filled with data&lt;/STRONG&gt;:&lt;/P&gt; 
&lt;P&gt;It gets created and then assigned to an empty ACK Message Object and then the content gets read.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But&lt;/P&gt; 
&lt;PRE&gt;962 ca.uhn.hl7v2.model.Message msg_tHL7Output_1 = null;

...


1091 if (msg_tHL7Output_1 == null) {
		msg_tHL7Output_1 = new ca.uhn.hl7v2.model.v23.message.ACK();
		terser_tHL7Output_1 = new ca.uhn.hl7v2.util.Terser(
				msg_tHL7Output_1);
		util_tHL7Output_1.findSegments(msg_tHL7Output_1,
				map2Seg_tHL7Output_1);
					}
					
					
...
					
1153 String resultMsg_tHL7Output_1 = msg_tHL7Output_1.encode();&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can someone help me, I tired to follow the &lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/qOXXOEQM7KqqLJRK2c_ozA" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class="fluid-aside-tab-title fluid-aside-book-title"&gt;Reference Guide&lt;/SPAN&gt; example&lt;/A&gt; as much as possible.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.3433.jpg" style="width: 440px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaFj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154021i848ACC24B72E6C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaFj.jpg" alt="0683p000009MaFj.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-DI-6-3-2-HL7-Output-Example-not-working/m-p/2295987#M143334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:19:00Z</dc:date>
    </item>
  </channel>
</rss>

