Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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?
did you use any images in that app?
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')
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