It is not possible to Include and Must_include variables with native Qlik Cloud scripts. Doing so leads to the error:
Unable to fetch file
Resolution
The possibility to include native Qlik Cloud scripts in other apps is on the roadmap for 2025.
In the meantime, there are two possible workarounds:
- Manually copy and paste the script to a txt file, then save it as a qvs file and reimport it
- In the native script:
- Enter the script editor
- Access the script's history
- Export the script from there
- You will receive a qvs in text format
- Import the qvs to the tenant and use that in the “include” variable
Cause
There are two sorts of script files in Qlik Cloud:
Native scripts: they are qvf files. They can be reloaded on their own, but currently cannot be included.
Qvs scripts: they are imported as datasets, and they are txt files. They cannot be reloaded on their own, but they can be included.
Environment