<?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 Re: Hierarchical mapper - if then else condition maintaining loop in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270238#M48216</link>
    <description>&lt;P&gt;attached output file which is currently coming.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxDd"&gt;Map_2.JPG&lt;/A&gt;</description>
    <pubDate>Mon, 25 Nov 2019 11:30:45 GMT</pubDate>
    <dc:creator>VijayTalend</dc:creator>
    <dc:date>2019-11-25T11:30:45Z</dc:date>
    <item>
      <title>Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270235#M48213</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have to map EDI file to Text file. I am getting issue in mapping using&amp;nbsp;Hierarchical mapper.&lt;/P&gt;
&lt;P&gt;I am getting below error "Change loop Specification" -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output map element: /root/Loop-NP17/NP34/Starttidspunkt_for_fapportperiode&lt;/P&gt;
&lt;P&gt;is already looping using: in$/Transaction-SLSRPT/Loop-UNB/Loop-UNH/Loop-S005 (SimpleLoop)&lt;/P&gt;
&lt;P&gt;which is not compatible with: in$/Transaction-SLSRPT/Loop-UNB/Loop-UNH/Loop-S005/DTM&lt;/P&gt;
&lt;P&gt;Do you want to change the output map element looping?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me in this issue fix.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270235#M48213</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2024-11-16T04:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270236#M48214</link>
      <description>&lt;P&gt;Can you share a screenshot of your map? Also, is this error caused by adding the IFThenElse function?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 11:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270236#M48214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270237#M48215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Thanks for your reply. I have attached map screenshot.&lt;/P&gt; 
&lt;P&gt;I have progressed in map output.&lt;/P&gt; 
&lt;P&gt;Now ,the issue is I am getting NULL values too in output,which I do not want. Can you please let me know how to remove NULL values from output.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;like output is coming as -&lt;/P&gt; 
&lt;P&gt;NP34&lt;BR /&gt;NP34&lt;BR /&gt;NP34 201910012300201910022300&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But I want output only asNP34 201910012300201910022300&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxCg"&gt;Map_1.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 25 Nov 2019 11:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270237#M48215</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-25T11:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270238#M48216</link>
      <description>&lt;P&gt;attached output file which is currently coming.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxDd"&gt;Map_2.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 25 Nov 2019 11:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270238#M48216</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-25T11:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270239#M48217</link>
      <description>&lt;P&gt;Do you get the looping on this field if you remove the IF condition?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270239#M48217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T12:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270240#M48218</link>
      <description>&lt;P&gt;yes, &lt;SPAN&gt;get the looping on this field if you remove the IF condition.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I only want the fields where source field is 51 or 52. Others are coming as NULL now, but we do not want to come those as NULL too.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270240#M48218</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-25T12:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270241#M48219</link>
      <description>&lt;P&gt;It's really difficult to think about this without having access to the actual mapper. But have you tried using the EMIT tab? This should help you conditionally remove the field.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270241#M48219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T13:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270242#M48220</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your replies.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried emit tab. but my target node NP34 requires a Null value coming to source to Emit. But, I have condition to check 51 or 52 value,otherwise its giving null value as output.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How to put these condition in Emit. Can you please try to give any example in screenshot from talend studio. The example should check all values of incoming node and emit only values like 51,52 or any other constant.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;One of the error I am getting while emit usage is -&lt;/P&gt; 
&lt;P&gt;Overall: Error&lt;BR /&gt;1: Error - The referenced map element loops but there is no looping function that specifies how to handle this loop. (222) (INPUT)&lt;BR /&gt;Expression: Emit&lt;BR /&gt;Referenced Element : Map: Maps/SLSRPT_Recognition.xml - Map Element: in$/Transaction-SLSRPT/Loop-UNB/Loop-UNH/Loop-S005/DTM&lt;BR /&gt;Enclosing [Map] Element : Map: Maps/SLSRPT_Recognition.xml - Map Element: out$/root/Loop-NP17/NP34&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270242#M48220</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-25T13:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270243#M48221</link>
      <description>&lt;P&gt;First of all, the values that are being returned (which aren't null) are they the correct aggregate values? If this is the case, you should be able to apply the same logic in your EMIT logic. Alternatively you could try setting a variable with this aggregate logic and checking the variable value to see if it is null or holds a value.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270243#M48221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270244#M48222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i copy the same logic in NP34 node in emit, I am getting error. Error attached in Map_3.jpg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regarding variable, can you please let me know how and where can I create variable and access it in Hierarchical mapper.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx8y"&gt;Map_3.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270244#M48222</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-25T13:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270245#M48223</link>
      <description>&lt;P&gt;I tried to SetVariable and GetVariable.&lt;/P&gt; 
&lt;P&gt;I am calling GetVariable and checking its Null or not for main node NP34. But it gave error -&lt;/P&gt; 
&lt;P&gt;2: Error - The transformation code (XQuery/XSLT) failed to compile. (201)&lt;BR /&gt;Exception: net.sf.saxon.trans.XPathException: Axis step attribute::attribute({&lt;A href="http://www.w3.org/2001/XMLSchema-instance}nil" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance}nil&lt;/A&gt;, xs:anyAtomicType) cannot be used here: the context item is an atomic value&lt;BR /&gt;at net.sf.saxon.expr.AxisExpression.typeCheck(AxisExpression.java:85)&lt;BR /&gt;at net.sf.saxon.expr.ExpressionVisitor.typeCheck(ExpressionVisitor.java:181)&lt;BR /&gt;at net.sf.saxon.expr.FilterExpression.typeCheck(FilterExpression.java:181)&lt;BR /&gt;at net.sf.saxon.expr.ExpressionVisitor.typeCheck(ExpressionVisitor.java:181)&lt;BR /&gt;at net.sf.saxon.expr.FunctionCall.typeCheck(FunctionCall.java:118)&lt;BR /&gt;at net.sf.saxon.expr.ExpressionVisitor.typeCheck(ExpressionVisitor.java:181)&lt;BR /&gt;at net.sf.saxon.instruct.Choose.typeCheck(Choose.java:249)&lt;BR /&gt;at net.sf.saxon.expr.ExpressionVisitor.typeCheck(ExpressionVisitor.java:181)&lt;BR /&gt;at net.sf.saxon.instruct.ParentNodeConstructor.typeCheck(ParentNodeConstructor.java:165)&lt;BR /&gt;at net.sf.saxon.expr.ExpressionVisitor.typeCheck(ExpressionVisitor.java:181)&lt;BR /&gt;at net.sf.saxon.expr.ForExpression.typeCheck(ForExpression.java:119)&lt;BR /&gt;at net.sf.saxon.expr.ExpressionVisitor.typeCheck(ExpressionVisitor.java:181)&lt;BR /&gt;at net.sf.saxon.query.XQueryFunction.compile(XQueryFunction.java:365)&lt;BR /&gt;at net.sf.saxon.query.XQueryFunctionLibrary.fixupGlobalFunctions(XQueryFunctionLibrary.java:198)&lt;BR /&gt;at net.sf.saxon.query.QueryModule.fixupGlobalFunctions(QueryModule.java:1033)&lt;BR /&gt;at net.sf.saxon.instruct.Executable.fixupQueryModules(Executable.java:625)&lt;BR /&gt;at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:107)&lt;BR /&gt;at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:343)&lt;BR /&gt;at com.oaklandsw.transform.runtime.xquery.saxon9.Saxon9AdaptorImpl.compile(Saxon9AdaptorImpl.java:395)&lt;BR /&gt;at com.oaklandsw.transform.runtime.xquery.XQueryAdaptorImpl.compile(XQueryAdaptorImpl.java:66)&lt;BR /&gt;at com.oaklandsw.transform.runtime.xquery.XQueryAdaptorImpl.compile(XQueryAdaptorImpl.java:93)&lt;BR /&gt;at com.oaklandsw.transform.runtime.StandardMapRuntimeImpl.compile(StandardMapRuntimeImpl.java:162)&lt;BR /&gt;at com.oaklandsw.transform.runtime.StandardMapRuntimeImpl.runSubclass(StandardMapRuntimeImpl.java:232)&lt;BR /&gt;at com.oaklandsw.transform.runtime.MapRuntimeImpl$1.run(MapRuntimeImpl.java:405)&lt;BR /&gt;at com.oaklandsw.transform.runtime.RuntimeEngineImpl.runSansEditor(RuntimeEngineImpl.java:1147)&lt;BR /&gt;at com.oaklandsw.transform.runtime.MapRuntimeImpl.runMap(MapRuntimeImpl.java:396)&lt;BR /&gt;at com.oaklandsw.transform.runtime.MapOrStructRuntimeImpl.run(MapOrStructRuntimeImpl.java:805)&lt;BR /&gt;at com.oaklandsw.transform.editor.AbstractEditorContributor$6.run(AbstractEditorContributor.java:871)&lt;BR /&gt;at com.oaklandsw.gui.AppEditorImpl$22.run(AppEditorImpl.java:2417)&lt;BR /&gt;at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270245#M48223</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-25T14:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270246#M48224</link>
      <description>&lt;P&gt;The EMIT value needs to be true or false. Your errors are based on the fact that the aggregate calculation does not return a boolean. You will need to shift this expression around to produce true or false.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270246#M48224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270247#M48225</link>
      <description>&lt;P&gt;please suggest how to create variable and use it.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 15:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270247#M48225</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-25T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270248#M48226</link>
      <description>&lt;P&gt;I'm afraid I can't tell you how to fix this using a variable. I would have to use an element of trial and error on this even if I had your data. My suggestion is to go back to try using the IF condition that you tried, but change the outputs to true or false. The errors you had trying that were because you were not outputting true or false.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 16:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270248#M48226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-25T16:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270249#M48227</link>
      <description>&lt;P&gt;Hi, Thanks again for your reply.&lt;/P&gt;
&lt;P&gt;If I am using boolean function (isNull then&amp;nbsp;IF)&amp;nbsp;on main node NP 34, it gives below error -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot paste 'IfThen' on 'Input Value'&lt;/P&gt;
&lt;P&gt;Caused by: 'IfThen' has a type of 'Simple Category' which is not compatible with the expected type of 'None/Sequence'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 07:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270249#M48227</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2019-11-26T07:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical mapper - if then else condition maintaining loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270250#M48228</link>
      <description>&lt;P&gt;Can you raise a support call on this issue? Problems with the TDM are very difficult to resolve remotely. Support will be able to share your screen and see your issue live. This should help them identify the issue and get it resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 11:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Hierarchical-mapper-if-then-else-condition-maintaining-loop/m-p/2270250#M48228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-26T11:07:14Z</dc:date>
    </item>
  </channel>
</rss>

