<?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: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2068168#M18521</link>
    <description>&lt;P&gt;Hmm... I do seem to remember that CSV&amp;nbsp; export wasn't supported, but I don't remember the status of it. And that documentation could use some love and attention I guess...&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 12:34:18 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2023-05-05T12:34:18Z</dc:date>
    <item>
      <title>Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2065846#M18475</link>
      <description>&lt;P&gt;I have an application that uses the .NET SDK (latest version, 16.3.0) that extracts data from some Qlik Sense objects, using the following code:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var obj = app.GetObject&amp;lt;GenericObject&amp;gt;("my-object-id");
var result = obj.ExportData(format, "/qHyperCubeDef", "out.xlsx", NxExportState.EXPORT_POSSIBLE);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works perfectly with Qlik Sense Enterprise on-premise, however it fails in Qlik Sense SaaS, throwing an exception that says:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Qlik.Engine.MethodInvocationException: Access denied [5]:Access denied(ExportData)
   at Qlik.Engine.Communication.QlikConnection.AwaitResponseTask[T](T task, String methodName, CancellationToken cancellationToken)
   at Qlik.Engine.Communication.QlikConnection.AwaitResponse[T](Task`1 task, String methodName, CancellationToken cancellationToken)
   at Qlik.Engine.GenericObject.ExportData(NxExportFileType fileType, String path, String fileName, NxExportState exportState, Boolean serveOnce)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea why this isn't working? I tested exporting the same object manually from the browser (right click -&amp;gt; download)&amp;nbsp; while connected with the same user I'm using with the SDK and it works correctly, so it doesn't seem to be a permission problem like the error message seems to imply...&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 14:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2065846#M18475</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2023-04-28T14:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2065854#M18476</link>
      <description>&lt;P&gt;That method is not available in QCS. May not be obvious at first sight, but there's a actually a remark in the documentation that states so:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportData.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportData.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It's somewhat more visible in the raw engine API documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/EngineJSONAPI/Content/service-genericobject-exportdata.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/EngineJSONAPI/Content/service-genericobject-exportdata.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The flow for exporting data is handled differently in QCS, and you need to go through REST APIs to do so. There's a small example illustrating how to utilize the reporting service available here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/QcsExportExcel/Program.cs" target="_blank"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/QcsExportExcel/Program.cs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 14:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2065854#M18476</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2023-04-28T14:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2065895#M18477</link>
      <description>&lt;P&gt;As always, thanks for your quick and precise answers &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'll study the API and see if I can re-implement the same flow. From what I can see from the docs, compared to the Enterprise Edition:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;This only supports exporting in XLSX format, not CSV (not a big problem I guess)&lt;/LI&gt;
&lt;LI&gt;This is not synced with the SDK session, so creating a temporary bookmark is required to keep the current selections and variables&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Will post my findings when I've tested it. Thanks again for your support &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 16:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2065895#M18477</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2023-04-28T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2066650#M18490</link>
      <description>&lt;P&gt;I've tried this solution and it works, thank you again.&lt;/P&gt;
&lt;P&gt;One more question though: I noticed in the documentation that the "type" property in the OutputItem definition supports various values, including &lt;STRONG&gt;csv&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;However, it doesn't seem to work, if I try to use "csv" instead of "xlsx" I get the following error:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "code": 400,
    "errors": [
        {
            "code": "REP-400000",
            "detail": "unsupported output type csv for sense-data-1.0 template",
            "title": "bad or malformed http request"
        }
    ],
    "message": "bad or malformed http request"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is CSV output just not supported at all? Or am I just not building the request correctly?&lt;/P&gt;
&lt;P&gt;The documentation is quite strange, because it states:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;csv doesn't have csv output&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Maybe I'm dumb, but what is that sentence even supposed to mean?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 10:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2066650#M18490</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2023-05-02T10:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2068168#M18521</link>
      <description>&lt;P&gt;Hmm... I do seem to remember that CSV&amp;nbsp; export wasn't supported, but I don't remember the status of it. And that documentation could use some love and attention I guess...&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 12:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2068168#M18521</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2023-05-05T12:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2068191#M18523</link>
      <description>&lt;P&gt;Thanks for the confirmation, I suspected it wasn't supported but the "csv" type in the docs made me doubt.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2068191#M18523</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2023-05-05T13:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2083925#M18688</link>
      <description>&lt;P&gt;I am getting when I followed&amp;nbsp;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/QcsExportExcel/Program.cs" target="_blank" rel="noopener"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/QcsExportExcel/Program.cs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;One or more errors occurred. (400: Bad Request, {"code":400,"message":"Query string not allowed","errors":[{"code":"REP-400000","title":"Query string not allowed"}]} error when authenticate with Session.&lt;/P&gt;
&lt;P&gt;Instead of&amp;nbsp;client.AsApiKeyViaQcs(apiKey); I used client.AsExistingSessionViaQcs(qcsSessionInfo); since I have different section access for different users, i want to export only data related to those users. Also, is there any documentation of bookmarks?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if I use AsJsonWebTokenViaQCS&lt;/P&gt;
&lt;P&gt;i am getting&amp;nbsp;One or more errors occurred. (400: Bad Request, {"code":400,"message":"bad or malformed http request","errors":[{"code":"REP-400020","detail":"The issuer is not compatible with a non browser like request" .. Error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We currently moved from Qlik On-prem to Qlik Cloud and that has resulted in Broken export functionality, We were using&amp;nbsp;genericObject.ExportData(NxExportFileType.EXPORT_OOXML) but for that i am getting Access Denied Error.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 18:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2083925#M18688</guid>
      <dc:creator>AkshayBheda</dc:creator>
      <dc:date>2023-06-14T18:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data with the .NET SDK doesn't work in Qlik Sense SaaS</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2513370#M22031</link>
      <description>&lt;P&gt;Just FYI your examples no longer appear to exist or the links are broken.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 14:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2513370#M22031</guid>
      <dc:creator>DBIT</dc:creator>
      <dc:date>2025-04-07T14:01:51Z</dc:date>
    </item>
  </channel>
</rss>

