<?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 Issue with JSON Payload in User Creation via NPrinting REST API from Qlik Sense in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Issue-with-JSON-Payload-in-User-Creation-via-NPrinting-REST-API/m-p/2520954#M42706</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm integrating Qlik Sense with the NPrinting REST API to automatically create users and assign them dynamic email report delivery.&lt;BR /&gt;My goal is to create users through the endpoint /api/v1/users, using the POST method and a JSON payload with name, email, and roles. However, I encounter the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;"Connector reply error: Unknown substring, string, or value at (X,YY): '.xxxx@yyyy.zzz'"&lt;/P&gt;&lt;P&gt;(where the error points to part of the email address I send in the email field)&lt;/P&gt;&lt;P&gt;-What I've tried:&lt;/P&gt;&lt;P&gt;I've built the JSON payload ensuring all entries are in a single line, quotes are correctly escaped, and the roles array is well-formed.&lt;BR /&gt;Example of how I construct the payload in Qlik:&lt;/P&gt;&lt;P&gt;"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LET vClient = 'Jose pipo pip giga chad (sample name)';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LET vEmail = 'pepe.chad@gigachad.giga.com';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LET vRoles = chr(34) &amp;amp; 'User' &amp;amp; chr(34); // ["User"]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LET vUserPayload =&lt;BR /&gt;&amp;nbsp;chr(123) &amp;amp;&lt;BR /&gt;chr(34) &amp;amp; 'name' &amp;amp; chr(34) &amp;amp; ':' &amp;amp; chr(34) &amp;amp; '$(vClient)' &amp;amp; chr(34) &amp;amp; ',' &amp;amp;&lt;BR /&gt;chr(34) &amp;amp; 'email' &amp;amp; chr(34) &amp;amp; ':' &amp;amp; chr(34) &amp;amp; '$(vEmail)' &amp;amp; chr(34) &amp;amp; ',' &amp;amp;&lt;BR /&gt;chr(34) &amp;amp; 'roles' &amp;amp; chr(34) &amp;amp; ':[' &amp;amp; '$(vRoles)' &amp;amp; ']' &amp;amp;&lt;BR /&gt;chr(125);&lt;/P&gt;&lt;P&gt;TRACE 'JSON Payload: ' &amp;amp; '$(vUserPayload)';&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the log, the string appears perfectly formatted, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"name":"Jose pipo pip giga chad (sample name)","email":"pepe.chad@gigachad.giga.com","roles":&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ["User"]}&lt;/P&gt;&lt;P&gt;The API call:&lt;/P&gt;&lt;P&gt;WITH CONNECTION (&lt;BR /&gt;URL "$(vNPrintingServer)/api/v1/users",&lt;BR /&gt;HTTPHEADER "Cookie" "$(vCookie)",&lt;BR /&gt;HTTPHEADER "Content-Type" "application/json",&lt;BR /&gt;BODY "$(vUserPayload)",&lt;BR /&gt;METHOD "POST"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;What I’ve validated:&lt;/P&gt;&lt;P&gt;-Payload has no line breaks or invisible characters (verified with TRACE).&lt;BR /&gt;-The roles array is correct: ["User"].&lt;BR /&gt;-Content-Type header is set properly.&lt;BR /&gt;-Cookie and URL are working for other endpoints.&lt;BR /&gt;&lt;BR /&gt;The error received:&lt;/P&gt;&lt;P&gt;Despite the correct JSON, the server responds:&lt;/P&gt;&lt;P&gt;"Connector reply error: Unknown substring, string, or value at (8,56): '.chad@gigachad.giga.com'"&lt;/P&gt;&lt;P&gt;It seems to cut parts of the email address, even though in logs it looks okay.&lt;BR /&gt;&lt;BR /&gt;Has anyone faced similar issues?&lt;BR /&gt;Is there something else to review in the payload or how the REST call is made?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="Qlik NPrinting" id="qlikNPrinting"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 01:59:02 GMT</pubDate>
    <dc:creator>xdoomcore</dc:creator>
    <dc:date>2025-06-12T01:59:02Z</dc:date>
    <item>
      <title>Issue with JSON Payload in User Creation via NPrinting REST API from Qlik Sense</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Issue-with-JSON-Payload-in-User-Creation-via-NPrinting-REST-API/m-p/2520954#M42706</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm integrating Qlik Sense with the NPrinting REST API to automatically create users and assign them dynamic email report delivery.&lt;BR /&gt;My goal is to create users through the endpoint /api/v1/users, using the POST method and a JSON payload with name, email, and roles. However, I encounter the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;"Connector reply error: Unknown substring, string, or value at (X,YY): '.xxxx@yyyy.zzz'"&lt;/P&gt;&lt;P&gt;(where the error points to part of the email address I send in the email field)&lt;/P&gt;&lt;P&gt;-What I've tried:&lt;/P&gt;&lt;P&gt;I've built the JSON payload ensuring all entries are in a single line, quotes are correctly escaped, and the roles array is well-formed.&lt;BR /&gt;Example of how I construct the payload in Qlik:&lt;/P&gt;&lt;P&gt;"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LET vClient = 'Jose pipo pip giga chad (sample name)';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LET vEmail = 'pepe.chad@gigachad.giga.com';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LET vRoles = chr(34) &amp;amp; 'User' &amp;amp; chr(34); // ["User"]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LET vUserPayload =&lt;BR /&gt;&amp;nbsp;chr(123) &amp;amp;&lt;BR /&gt;chr(34) &amp;amp; 'name' &amp;amp; chr(34) &amp;amp; ':' &amp;amp; chr(34) &amp;amp; '$(vClient)' &amp;amp; chr(34) &amp;amp; ',' &amp;amp;&lt;BR /&gt;chr(34) &amp;amp; 'email' &amp;amp; chr(34) &amp;amp; ':' &amp;amp; chr(34) &amp;amp; '$(vEmail)' &amp;amp; chr(34) &amp;amp; ',' &amp;amp;&lt;BR /&gt;chr(34) &amp;amp; 'roles' &amp;amp; chr(34) &amp;amp; ':[' &amp;amp; '$(vRoles)' &amp;amp; ']' &amp;amp;&lt;BR /&gt;chr(125);&lt;/P&gt;&lt;P&gt;TRACE 'JSON Payload: ' &amp;amp; '$(vUserPayload)';&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the log, the string appears perfectly formatted, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"name":"Jose pipo pip giga chad (sample name)","email":"pepe.chad@gigachad.giga.com","roles":&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ["User"]}&lt;/P&gt;&lt;P&gt;The API call:&lt;/P&gt;&lt;P&gt;WITH CONNECTION (&lt;BR /&gt;URL "$(vNPrintingServer)/api/v1/users",&lt;BR /&gt;HTTPHEADER "Cookie" "$(vCookie)",&lt;BR /&gt;HTTPHEADER "Content-Type" "application/json",&lt;BR /&gt;BODY "$(vUserPayload)",&lt;BR /&gt;METHOD "POST"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;What I’ve validated:&lt;/P&gt;&lt;P&gt;-Payload has no line breaks or invisible characters (verified with TRACE).&lt;BR /&gt;-The roles array is correct: ["User"].&lt;BR /&gt;-Content-Type header is set properly.&lt;BR /&gt;-Cookie and URL are working for other endpoints.&lt;BR /&gt;&lt;BR /&gt;The error received:&lt;/P&gt;&lt;P&gt;Despite the correct JSON, the server responds:&lt;/P&gt;&lt;P&gt;"Connector reply error: Unknown substring, string, or value at (8,56): '.chad@gigachad.giga.com'"&lt;/P&gt;&lt;P&gt;It seems to cut parts of the email address, even though in logs it looks okay.&lt;BR /&gt;&lt;BR /&gt;Has anyone faced similar issues?&lt;BR /&gt;Is there something else to review in the payload or how the REST call is made?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="Qlik NPrinting" id="qlikNPrinting"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 01:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Issue-with-JSON-Payload-in-User-Creation-via-NPrinting-REST-API/m-p/2520954#M42706</guid>
      <dc:creator>xdoomcore</dc:creator>
      <dc:date>2025-06-12T01:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with JSON Payload in User Creation via NPrinting REST API from Qlik Sense</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Issue-with-JSON-Payload-in-User-Creation-via-NPrinting-REST-API/m-p/2521114#M42710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have you tried using my subroutines?&lt;/P&gt;&lt;P&gt;&lt;A href="https://nprintingadventures.com/2020/03/27/nprinting-api-qlik-rest-subroutines-v1-2/" target="_blank"&gt;https://nprintingadventures.com/2020/03/27/nprinting-api-qlik-rest-subroutines-v1-2/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;nprinting.qvs has this implemented and it worked well last time i checked&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 09:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Issue-with-JSON-Payload-in-User-Creation-via-NPrinting-REST-API/m-p/2521114#M42710</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2025-06-13T09:06:54Z</dc:date>
    </item>
  </channel>
</rss>

