Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us for a live Q&A! September 21, 10 AM ET - Onboarding Fast in Qlik Sense SaaS! REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
spalmisano
Partner
Partner

QlikView server 12.2 IQMS2.ClearQVSCache method fails with authorization error

Anyone run into this issue:

I have a C# program that obtains the service key and calls ClearQVSCache method.  This program works in QlikView server 11.2 with the IQMS API.  However in 12.2 both the IQMS and IQMS2 API methods fail with the error:

"Unhandled Exception: System.ServiceModel.FaultException: Authorization failed for user ___"



Also frustratingly, is that the API code example for IQMS2 has the code for the deprecated IQMS...

https://help.qlik.com/en-US/qlikview-developer/November2017/apis/QMS+API/html/M_PIX_Services_V12_Api...



C# code that works fine on 11.2 when IQMS2 is changed to IQMS

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using QMSAPIv12p2.ServiceReferenceIQMS2;

using QMSAPIv12p2.ServiceSupport;

namespace QMSAPIv12p2

{

    class Program    

    {    

        static void Main(string[] args)

        {

            string serverName = "http://qlikserver2:4799/QMS/Service";

            IQMS2 apiClient = new QMS2Client("BasicHttpBinding_IQMS2", serverName);

            string key = apiClient.GetTimeLimitedServiceKey();

            ServiceKeyClientMessageInspector.ServiceKey = key;

            apiClient.ClearQVSCache(QVSCacheObjects.UserDocumentList);        

        }

    }

}


1 Solution

Accepted Solutions
spalmisano
Partner
Partner
Author

Answer for those trying to migrate from QlikView Server 11.2 to QlikView Server 12.2:

QlikView server 11.2 requires the Active Directory group QlikView Management API while QlikView server 12.2 requires the local group QlikView Management API and there must not be an AD group of the same name.  Therefore Qv server 11.2 and 12.2 cannot run at the same time (2 licenses) on the same domain. 

To install 12.2, delete the QlikView Management API AD group, add the QlikView Management API local group on the server and assign service level account as member,  restart all 5 Qlik services. 

View solution in original post

1 Reply
spalmisano
Partner
Partner
Author

Answer for those trying to migrate from QlikView Server 11.2 to QlikView Server 12.2:

QlikView server 11.2 requires the Active Directory group QlikView Management API while QlikView server 12.2 requires the local group QlikView Management API and there must not be an AD group of the same name.  Therefore Qv server 11.2 and 12.2 cannot run at the same time (2 licenses) on the same domain. 

To install 12.2, delete the QlikView Management API AD group, add the QlikView Management API local group on the server and assign service level account as member,  restart all 5 Qlik services. 

View solution in original post