Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Hemik
Contributor II
Contributor II

Qlik - Dotnet Integration

Hi All,

 

I want to do integration between dotnet and Qlik, actually wanted to fetch sheet data from Qlik using dotnet. My sample code is working fine on staging environment but on production environment getting error "QTProduct timeout".

below are the details :

Dotnet Framework : 4.7.2

Qlik version : 14.5.1 ( Feb - 2021) using Azure

For production I am able to get response using static header proxy using postman but using dotnet code it's not working. Same proxy settings done which is done on staging (working fine on staging with same code)

Code :

using MMDM.COMMON;
using Qlik.Engine;
using Qlik.Engine.Communication;
using Qlik.Engine.Extensions;
using Qlik.Sense.Client;
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using System.Web;

 

public async Task<System.Data.DataTable> InvokeService()
{
         Uri uri = new Uri(_qlikBaseUri);
         ILocation qsLocation = Qlik.Engine.Location.FromUri(uri);

         qsLocation.AsStaticHeaderUserViaProxy(_qlikHeaderUserId, _qlikAuthHeaderName, false);
         qsLocation.VirtualProxyPath = _qlikVirtualProxyPath;

         try
         {

                  // I am getting error in below step.
                  IHub qsHub = qsLocation.Hub();
         }
         catch (Exception ex)
         {         }         

         return await GetQlikData(qsLocation);
}

What are the possible issues?

Or Is there any other way I can connect Qlik sense and fetch the data?

Thanks,

Hemik

1 Reply
Hemik
Contributor II
Contributor II
Author

It's working for me, when I tried from outside of the existing network.

Thanks,

Hemik