<?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: Export Data using RestClient gives forbidden request in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091435#M18781</link>
    <description>&lt;P&gt;Thanks for your prompt answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are the attached options related to the subscription package you are referring to?&lt;/P&gt;
&lt;P&gt;Because I can't find any other details to update to Reporting services level.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 09:22:40 GMT</pubDate>
    <dc:creator>PGeorge</dc:creator>
    <dc:date>2023-07-07T09:22:40Z</dc:date>
    <item>
      <title>Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091140#M18775</link>
      <description>&lt;P&gt;I am trying to export data in excel using the RestClient approach documented here by &lt;A id="inResponseTo" class="lia-link-navigation lia-message-reply-in-response-to" href="https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-data-with-the-NET-SDK-doesn-t-work-in-Qlik-Sense-SaaS/m-p/2068168/highlight/true#M18521" target="_blank"&gt;&lt;SPAN class="lia-message-in-response-to-username"&gt;Øystein_Kolsrud&lt;/SPAN&gt;&lt;/A&gt;:&amp;nbsp;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/QcsExportExcel" target="_blank"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/QcsExportExcel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var appId = "app-ID";
var objectId = "object-ID";

var client = new RestClient("wss://test.eu.qlikcloud.com");
client.AsApiKeyViaQcs("API_KEY");
                
var requestBody = CreateRequestBody(appId, objectId);
var httpRsp = client.PostHttpAsync("/api/v1/reports", requestBody);
var httpResult = httpRsp.Result;
var statusLocation = httpResult.Headers.Location;

var dataLocation = AwaitExportCompletion(client, statusLocation.AbsolutePath);
var dataLocationUri = new Uri(dataLocation);
byte[] exportBytes = await client.GetBytesAsync(dataLocationUri.AbsolutePath);
return File(exportBytes, "application/xlsx", "out.xlsx");&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;When in &lt;STRONG&gt;httpRsp.Result&amp;nbsp;&lt;/STRONG&gt;i get the following error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HttpRequestException: 403: Forbidden, {"code":403,"message":"You are not entitled to perform that operation. Export capability is off.","errors":[{"code":"REP-403026","detail":"Reporting capability is off","meta":{},"title":"You are not entitled to perform that operation. Export capability is off."}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any configuration I might be missing and i get this error?&lt;/P&gt;
&lt;P&gt;I have also tried the ExportData approach&amp;nbsp;from .NET SDK which is incompatible from what i read.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 14:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091140#M18775</guid>
      <dc:creator>PGeorge</dc:creator>
      <dc:date>2023-07-06T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091266#M18777</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/221895"&gt;@PGeorge&lt;/a&gt;&amp;nbsp;- the error message you are seeing is related to how exportData differs from Client-Managed Qlik Sense and Qlik Cloud.&lt;/P&gt;
&lt;P&gt;In Client-Managed Qlik Sense Enterprise, the Engine handles the data exports. In Qlik Cloud, they are handled by the Reporting Service. The error message is indicating that the Reporting capability is off, which most likely indicates that your subscription needs to be updated to support Reporting services.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 19:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091266#M18777</guid>
      <dc:creator>jprdonnelly</dc:creator>
      <dc:date>2023-07-06T19:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091435#M18781</link>
      <description>&lt;P&gt;Thanks for your prompt answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are the attached options related to the subscription package you are referring to?&lt;/P&gt;
&lt;P&gt;Because I can't find any other details to update to Reporting services level.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 09:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091435#M18781</guid>
      <dc:creator>PGeorge</dc:creator>
      <dc:date>2023-07-07T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091542#M18788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/221895"&gt;@PGeorge&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replying before&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/141812"&gt;@jprdonnelly&lt;/a&gt;&amp;nbsp;wakes up...&lt;/P&gt;
&lt;P&gt;Here's an example of using the reports API in Qlik Cloud to generate outputs:&amp;nbsp;&lt;A href="https://qlik.dev/embed/generate-reports/reporting-api-samples" target="_blank"&gt;https://qlik.dev/embed/generate-reports/reporting-api-samples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You are able to generate single object outputs using this method, and the reports API also supports our Reporting Service which helps you generate compositions of objects and sheets into a single file (both are covered in the link above).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 12:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091542#M18788</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2023-07-07T12:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091598#M18789</link>
      <description>&lt;P&gt;Very informative and helpful link.&lt;/P&gt;
&lt;P&gt;I followed the link's instructions and created a POST request which I sent through Postman and the response remains the same as above.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "code": 403,
    "message": "You are not entitled to perform that operation. Export capability is off.",
    "errors": [
        {
            "code": "REP-403026",
            "detail": "Reporting capability is off",
            "meta": {},
            "title": "You are not entitled to perform that operation. Export capability is off."
        },
        {
            "code": "REP-403026",
            "detail": "Reporting capability is off",
            "meta": {
                "appErrors": [
                    {
                        "appId": "app-id",
                        "method": "CheckExportCapabilities",
                        "parameters": {
                            "appID": "app-id",
                            "tags": "[api.public]",
                            "taskID": "task-id",
                            "tenantID": "tenant-id",
                            "userID": "user-id"
                        }
                    }
                ]
            },
            "title": "forbidden request"
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Which part of my subscription package do I have to update,&amp;nbsp; since I am not entitled to perform the operation?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 14:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2091598#M18789</guid>
      <dc:creator>PGeorge</dc:creator>
      <dc:date>2023-07-07T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2093174#M18843</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/141812"&gt;@jprdonnelly&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1870"&gt;@Dave_Channon&lt;/a&gt;&amp;nbsp;did you have a chance to look into it? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 14:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2093174#M18843</guid>
      <dc:creator>PGeorge</dc:creator>
      <dc:date>2023-07-12T14:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2093235#M18844</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/221895"&gt;@PGeorge&lt;/a&gt;&amp;nbsp;, did a little digging, could it be that you're using a Qlik Sense Business, rather than Enterprise subscription? It seems we might restrict which APIs and services the former can access.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 18:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2093235#M18844</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2023-07-12T18:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data using RestClient gives forbidden request</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2093596#M18853</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1870"&gt;@Dave_Channon&lt;/a&gt;&amp;nbsp; I will check my subscription options and come back to you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Export-Data-using-RestClient-gives-forbidden-request/m-p/2093596#M18853</guid>
      <dc:creator>PGeorge</dc:creator>
      <dc:date>2023-07-13T14:24:41Z</dc:date>
    </item>
  </channel>
</rss>

