Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
shraddha_23
Partner - Creator
Partner - Creator

Not able to import Qlik sense app(qvf) on Qlik sense QMC.

Hi All,

I m not able to import qlik sense app(qvf) on Qlik sense QMC.

Error:-invalid application

for reference find attached screen shot

13 Replies
OmarBenSalem

But even then; normaly it should work no? If the desktop is more recent than the server version; we sometimes won't find the variables when import the app etc; but I've never faced a problem where I can't import the application .

What are your desktop and server versions Shradha? And does the application work fine when u open it with ur Sense Desktop?

shraddha_g
Partner - Master III
Partner - Master III

did you use any images in that app?

maik_broxterman
Partner - Contributor II
Partner - Contributor II

Whoah cool it is working now.

I needed to send the raw image in the data field and not in the images field of Python requests module. Found that out after "reverse engineering" the QMC app import function.

So

data = json.dumps(self.data)

if self.files is not None:

  headers['Content-Type'] = 'application/vnd.qlik.sense.app'
   data = self.files

response = requests.post(

  url,

   cert=('/tmp/client.pem', '/tmp/client_key.pem'),

   verify=False,

   headers=headers,

   data=data

)

instead of

data = json.dumps(self.data)

if self.files is not None:

  headers['Content-Type'] = 'application/vnd.qlik.sense.app'

response = requests.post(

  url,

   cert=('/tmp/client.pem', '/tmp/client_key.pem'),

   verify=False,

   headers=headers,

   data=data,

   files=self.files

)

Where files contains just the output of open('tmp/application.qvf', 'rb')

awhitfield
Partner - Champion
Partner - Champion

Can you upload the app and see if anyone else can import it?

You Should have entries in the Servername_AuditACtivity_Engine.txt and Servername_AuditACtivity_Repository.txt log files, check it out and post the error message

for "Command=Import app" with "ResultText=Error"

Andy