<?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: Qlik replicate CURL POST not working in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437635#M10429</link>
    <description>&lt;P&gt;The post action seems to be working and correctly reporting a problem with the&amp;nbsp; provided JSON and tells you so:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"&lt;STRONG&gt;Failed to deserialize json to type ReplicationDefinitionExport: Type specified in JSON&lt;/STRONG&gt;"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;So what you are saying is that the POST action is working very well, but you cannot read.&lt;/P&gt;
&lt;P&gt;Did I say that out loudly? That wasn't very nice. Sorry. Do you see what I mean though?&lt;/P&gt;
&lt;P&gt;The JSON provided is for a server definition, a one-time action for which the "def" command should/can be used (or just use the GUI for this step!)&lt;/P&gt;
&lt;P&gt;According to the API guide the "...&lt;STRONG&gt;/servers/{ServerName}?action=import&lt;/STRONG&gt;" belongs to ImportAll which often is done over and over, and &lt;STRONG&gt;needs to be fed the output from an Export All&lt;/STRONG&gt; (GUI or API or REPCTL) command: "All valid JSON definitions provided in the request body will be imported. This includes server settings,&lt;BR /&gt;task settings, endpoints, and other definitions. " -&lt;/P&gt;
&lt;P&gt;This command should follow the PutServer command as it uses that server definition to find it by ServerName and then provide it the selected server the commands/information needed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nit-picking: This post post title reads "&lt;SPAN&gt;Qlik replicate CURL POST not working". Well, replicate does NOT have a CURL POST interface. The Enterprise Manages does and is has a specific sub-forum&amp;nbsp; which might be more appropriate, but admittedly gets far fewer (but more dedicated??) readers.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Enterprise-Manager/bd-p/qlik-enterprise-manager-discussions" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Enterprise-Manager/bd-p/qlik-enterprise-manager-discussions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 16:36:31 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2024-04-04T16:36:31Z</dc:date>
    <item>
      <title>Qlik replicate CURL POST not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437288#M10424</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;
&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;
&lt;DIV class="MessageSubject"&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="MessageInResponseTo lia-component-message-view-widget-in-response-to lia-component-in-response-to"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/td-p/2435815" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/td-p/2...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I tried below solution suggested in above post&lt;/P&gt;
&lt;P&gt;curl -i -k -v -X POST --header "EnterpriseManager.APISessionID: PXGgboAmc9pjTUPyANj2gw" --header "Content-Type: application/json"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://xxxxxxxx/attunityenterprisemanager/api/v1/servers/xxxx?action=import" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test/attunityenterprisemanager/api/v1/servers/test?action=import&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-T c:\myrepsrv1.json&lt;/P&gt;
&lt;P&gt;myrepsrv1.json&lt;/P&gt;
&lt;P&gt;{"$type": "AemReplicateServer", "name": test", "description": "test", "host": "test", "port": "3552", "username": "admin", "password": "{{}}", "verify_server_certificate": false, "monitored": true}&lt;/P&gt;
&lt;P&gt;but it gives me below error&lt;/P&gt;
&lt;P&gt;{"error_code":"DESERIALIZE_TO_TYPE","error_message":"Failed to deserialize json to type ReplicationDefinitionExport: Type specified in JSON 'Attunity.AemDataModel.AemReplicateServer, AemDataModel, Version=2022.11.0.860, Culture=neutral, PublicKeyToken=null' is not compatible with 'Attunity.Replicate.Globals.ReplicationDefinitionExport, RepuiGlobals, Version=2022.11.0.860, Culture=neutral, PublicKeyToken=null'. Path '$type', line 1, position 30.."}*&lt;/P&gt;
&lt;P&gt;Looks like it didnt like&amp;nbsp; "AemReplicateServer"&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Apr 2024 10:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437288#M10424</guid>
      <dc:creator>RajneeshSharma</dc:creator>
      <dc:date>2024-04-03T10:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik replicate CURL POST not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437402#M10425</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/239265"&gt;@RajneeshSharma&lt;/a&gt;&amp;nbsp;Hi, I see you posted a few times, I released them please delete the duplicates and if you cannot send me links and I will delete. You can only delete if someone hasn't commented. Sorry about this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 13:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437402#M10425</guid>
      <dc:creator>Sue_Macaluso</dc:creator>
      <dc:date>2024-04-03T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik replicate CURL POST not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437418#M10426</link>
      <description>&lt;P&gt;Thanks. I deleted a duplicate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 13:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437418#M10426</guid>
      <dc:creator>RajneeshSharma</dc:creator>
      <dc:date>2024-04-03T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik replicate CURL POST not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437635#M10429</link>
      <description>&lt;P&gt;The post action seems to be working and correctly reporting a problem with the&amp;nbsp; provided JSON and tells you so:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"&lt;STRONG&gt;Failed to deserialize json to type ReplicationDefinitionExport: Type specified in JSON&lt;/STRONG&gt;"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;So what you are saying is that the POST action is working very well, but you cannot read.&lt;/P&gt;
&lt;P&gt;Did I say that out loudly? That wasn't very nice. Sorry. Do you see what I mean though?&lt;/P&gt;
&lt;P&gt;The JSON provided is for a server definition, a one-time action for which the "def" command should/can be used (or just use the GUI for this step!)&lt;/P&gt;
&lt;P&gt;According to the API guide the "...&lt;STRONG&gt;/servers/{ServerName}?action=import&lt;/STRONG&gt;" belongs to ImportAll which often is done over and over, and &lt;STRONG&gt;needs to be fed the output from an Export All&lt;/STRONG&gt; (GUI or API or REPCTL) command: "All valid JSON definitions provided in the request body will be imported. This includes server settings,&lt;BR /&gt;task settings, endpoints, and other definitions. " -&lt;/P&gt;
&lt;P&gt;This command should follow the PutServer command as it uses that server definition to find it by ServerName and then provide it the selected server the commands/information needed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nit-picking: This post post title reads "&lt;SPAN&gt;Qlik replicate CURL POST not working". Well, replicate does NOT have a CURL POST interface. The Enterprise Manages does and is has a specific sub-forum&amp;nbsp; which might be more appropriate, but admittedly gets far fewer (but more dedicated??) readers.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Enterprise-Manager/bd-p/qlik-enterprise-manager-discussions" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Enterprise-Manager/bd-p/qlik-enterprise-manager-discussions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 16:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2437635#M10429</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-04-04T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik replicate CURL POST not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2439367#M10492</link>
      <description>&lt;P&gt;I used&amp;nbsp;GetServer followed by PutServer in same function definition(using same session) and it worked. Thanks for providing the clue&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-replicate-CURL-POST-not-working/m-p/2439367#M10492</guid>
      <dc:creator>RajneeshSharma</dc:creator>
      <dc:date>2024-04-09T13:09:43Z</dc:date>
    </item>
  </channel>
</rss>

