<?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 Patching JSON Data via CKAN API to a Website in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Patching-JSON-Data-via-CKAN-API-to-a-Website/m-p/2484354#M141330</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i moved myself into a dead end and a solution seems impossible to find right now. Maybe you can help me.&lt;/P&gt;
&lt;P&gt;To my situation: It "should be" a simple job. Got some simple structured Data from an Oracle DB (3 Colums / 4 Rows) which has to be put on an Webserver as a JSON. I thought: so far no problem. I worked out the Data, used the tWriteJsonField to put the rows into a JSON loop and, from what i saw, the JSON looked good and was sorted out.&lt;BR /&gt;After this i added the tRestClient (fast forward lots of problems in communication... i got the information this is not a RESTful service but an older CKAN API to work with.)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="modules.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172322iC3B6D92AA9AA7A81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="modules.PNG" alt="modules.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With this hint things are now as follows:&lt;/P&gt;
&lt;P&gt;I put the JSON Data into the REST input Column "String", Body should be empty as needed.&lt;BR /&gt;URL is provided as needed from the CKAN API documentation. &lt;A href="https://docs.ckan.org/en/2.10/api/#ckan.logic.action.patch.resource_patch" target="_blank"&gt;https://docs.ckan.org/en/2.10/api/#ckan.logic.action.patch.resource_patch&lt;/A&gt; &lt;BR /&gt;To patch the data on the correct place i got an id and an auth token too. The auth should be in the header and the id somewhere in the body as far as i know.&lt;BR /&gt;I guess my error is to be found on this point here. Either i put one of both informations on the wrong place or i did configure the tRestClient wrongly. (ID is missing in the following screenshots, as this was an attempt where i put it right into the JSON looped Data.)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="REST_basic.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172324i5FAE0085537B546D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="REST_basic.PNG" alt="REST_basic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="REST_advanced.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172323iE858D1D1FDC9D355/image-size/medium?v=v2&amp;amp;px=400" role="button" title="REST_advanced.PNG" alt="REST_advanced.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the Job will push me an HTTP 409 Conflict. Moving and changing up the positions of the ID and auth to other config fields doesn't change anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for any help, hints or solutions,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 12:30:38 GMT</pubDate>
    <dc:creator>Ulonis</dc:creator>
    <dc:date>2024-09-30T12:30:38Z</dc:date>
    <item>
      <title>Patching JSON Data via CKAN API to a Website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Patching-JSON-Data-via-CKAN-API-to-a-Website/m-p/2484354#M141330</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i moved myself into a dead end and a solution seems impossible to find right now. Maybe you can help me.&lt;/P&gt;
&lt;P&gt;To my situation: It "should be" a simple job. Got some simple structured Data from an Oracle DB (3 Colums / 4 Rows) which has to be put on an Webserver as a JSON. I thought: so far no problem. I worked out the Data, used the tWriteJsonField to put the rows into a JSON loop and, from what i saw, the JSON looked good and was sorted out.&lt;BR /&gt;After this i added the tRestClient (fast forward lots of problems in communication... i got the information this is not a RESTful service but an older CKAN API to work with.)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="modules.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172322iC3B6D92AA9AA7A81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="modules.PNG" alt="modules.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With this hint things are now as follows:&lt;/P&gt;
&lt;P&gt;I put the JSON Data into the REST input Column "String", Body should be empty as needed.&lt;BR /&gt;URL is provided as needed from the CKAN API documentation. &lt;A href="https://docs.ckan.org/en/2.10/api/#ckan.logic.action.patch.resource_patch" target="_blank"&gt;https://docs.ckan.org/en/2.10/api/#ckan.logic.action.patch.resource_patch&lt;/A&gt; &lt;BR /&gt;To patch the data on the correct place i got an id and an auth token too. The auth should be in the header and the id somewhere in the body as far as i know.&lt;BR /&gt;I guess my error is to be found on this point here. Either i put one of both informations on the wrong place or i did configure the tRestClient wrongly. (ID is missing in the following screenshots, as this was an attempt where i put it right into the JSON looped Data.)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="REST_basic.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172324i5FAE0085537B546D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="REST_basic.PNG" alt="REST_basic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="REST_advanced.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172323iE858D1D1FDC9D355/image-size/medium?v=v2&amp;amp;px=400" role="button" title="REST_advanced.PNG" alt="REST_advanced.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the Job will push me an HTTP 409 Conflict. Moving and changing up the positions of the ID and auth to other config fields doesn't change anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for any help, hints or solutions,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 12:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Patching-JSON-Data-via-CKAN-API-to-a-Website/m-p/2484354#M141330</guid>
      <dc:creator>Ulonis</dc:creator>
      <dc:date>2024-09-30T12:30:38Z</dc:date>
    </item>
  </channel>
</rss>

