<?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: using a resource in a cTalendJob in a route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337889#M106185</link>
    <description>&lt;P&gt;How is your tRouteInput configured? I also notice that you do not have a tRouteOutput, yet you have a cLog in the route that is calling the job.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 14:05:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-12T14:05:46Z</dc:date>
    <item>
      <title>using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337880#M106176</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm facing an issue when i want to use a resource in a talend job in a route.&lt;/P&gt;&lt;P&gt;I tried to make the job work solo, it does. &lt;/P&gt;&lt;P&gt;But when i put the same job (adapted to a route treatment of course) i get a nullPointerException.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to add the resource into the route, into the route dependencies, it didn't change a thing. &lt;/P&gt;&lt;P&gt;Anyone knows how to do it?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337880#M106176</guid>
      <dc:creator>RGriveau</dc:creator>
      <dc:date>2024-11-15T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337881#M106177</link>
      <description>&lt;P&gt;I'm afraid you will need to give us a lot more information. We'll need to see the job, see how it is configured with the cTalendJob and potentially have an understanding of how you are intending to pass data to the job. &lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 11:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337881#M106177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-09T11:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337882#M106178</link>
      <description>&lt;P&gt;Yes sure, it was a bit short.&lt;/P&gt;&lt;P&gt;I'm trying to validate json data with java functions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aF9GMAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140752i659B41A2CB0536B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aF9GMAA0.png" alt="0695b00000aF9GMAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aF9F4AAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131104i0ED0BF80F5A3D5D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aF9F4AAK.png" alt="0695b00000aF9F4AAK.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aF9DOAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140795iF3025150069528DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aF9DOAA0.png" alt="0695b00000aF9DOAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aF9EpAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147376i32A6928476DBE2F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aF9EpAAK.png" alt="0695b00000aF9EpAAK.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did put my jsonschema into the resource. My code works fine when i use only a job (see screenshot giving me the data not valid in my json)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aF9HFAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138966i5083A8332FDC5E5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aF9HFAA0.png" alt="0695b00000aF9HFAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i put this job in a route to generate my json based on an entry (data in my tFixedFlowInput)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aF9HyAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142771iD069F2C9FFB1381A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aF9HyAAK.png" alt="0695b00000aF9HyAAK.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cTalendJob is doing the exact same thing as my job previously shown based on a tRouteInput. The cFile contains the same data of the tFixedFlowInput.&lt;/P&gt;&lt;P&gt;So for me the process is exactly the same.&lt;/P&gt;&lt;P&gt;But on the route i get this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aF9KYAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141520iA41F89FC04051C5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aF9KYAA0.png" alt="0695b00000aF9KYAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 12:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337882#M106178</guid>
      <dc:creator>RGriveau</dc:creator>
      <dc:date>2022-12-09T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337883#M106179</link>
      <description>&lt;P&gt;Ah, I see. Your issue is that your Talend Job will require a tRouteInput and tRouteOutput component to receive and send data back to your Route. At the moment, nothing will be passed into your Job from the Route. There is a brief example of this here....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/en-US/8.0/route/route-scenario&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337883#M106179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-09T14:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337884#M106180</link>
      <description>&lt;P&gt;no, no my job in the route is correctly configured&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aFBTIAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149239i4A5BDE160929BF29/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aFBTIAA4.png" alt="0695b00000aFBTIAA4.png" /&gt;&lt;/span&gt;My issue is about the resource in the job that doesn't work when i launch the job from a route&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 15:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337884#M106180</guid>
      <dc:creator>RGriveau</dc:creator>
      <dc:date>2022-12-09T15:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337885#M106181</link>
      <description>&lt;P&gt;You have a tJava connected at the top, linked to your tPreJob via other libraries. What is that for? I am guessing that it contributes towards the Java you are using to process your JSON. If so, I think you need to get rid of everything at the top and put that into a Routine. You can import your Jars directly into a Routine and therefore do not need to use the tPreJob. A tPreJob should not be used in multi-threaded scenarios. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have your Routine, it'll be so much easier to use. In fact, you should be able to convert it to a Bean and use it directly in your Route. But first of all, I would attempt to change what you already have to get it to work with a Routine.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 15:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337885#M106181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-09T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337886#M106182</link>
      <description>&lt;P&gt;Thank you for your reply, but it's not answering my question, i'm not talking about multi-thread, just about using a resource into a route that launch a job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337886#M106182</guid>
      <dc:creator>RGriveau</dc:creator>
      <dc:date>2022-12-12T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337887#M106183</link>
      <description>&lt;P&gt;I was explaining why it won't work. You cannot use the tPreJob functionality in multi-threaded environments. Routes are this sort of environment. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 13:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337887#M106183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-12T13:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337888#M106184</link>
      <description>&lt;P&gt;I did as you said, i still get a NullPointerException when using a resource from the repository&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 13:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337888#M106184</guid>
      <dc:creator>RGriveau</dc:creator>
      <dc:date>2022-12-12T13:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337889#M106185</link>
      <description>&lt;P&gt;How is your tRouteInput configured? I also notice that you do not have a tRouteOutput, yet you have a cLog in the route that is calling the job.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337889#M106185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-12T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: using a resource in a cTalendJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337890#M106186</link>
      <description>&lt;P&gt;Why does a Talend employee write that a tPreJob shouldn't be used in a Route and then link to an article that shows a tPreJob being used in a route&lt;/P&gt;&lt;P&gt;Why does he divert from answering the underlying question pointing to aspects that can't possibly solve the problem&lt;/P&gt;&lt;P&gt;Has anybody found a solution to this? I have the same problem with a password set in the context of the subjob, I can't set it using the TMC bc the TMC only shows the Route parameters&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 09:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-a-resource-in-a-cTalendJob-in-a-route/m-p/2337890#M106186</guid>
      <dc:creator>DSF1</dc:creator>
      <dc:date>2023-04-20T09:55:46Z</dc:date>
    </item>
  </channel>
</rss>

