Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
aj96
Contributor III
Contributor III

Not able to use PreDefined Environment Variable

When I'm trying to use PreDefined variable I'm getting the following error

  • SYS-E-ERRMSG, User-defined variables are not set, some variables could not be replaced in the following string $$${database.Data Warehouse.datawarehouseSchema}.
  • SYS,GENERAL_EXCEPTION,User-defined variables are not set, some variables could not be replaced in the following string $$${database.Data Warehouse.datawarehouseSchema}

I'm using  SQL Server db. Also I tried used custom variables with which I had no issues.

1 Solution

Accepted Solutions
shashi_holla
Support
Support

@aj96 

Looks like you are on latest patch version of 2021.08 and in the user guide link I shared in my last update, it mentions and we could be running into this constraint.

  • Exported CSV objects that are associated with predefined environment variables (for example, a mapping database and schema) cannot contain user-defined environment variables.

    For instance, this is not allowed:

    Name Landing Zone Database Schema
    MyMapping $$${MyDatabase} $$${MySchema}

    See also: Migrating objects as CSV files.

 In any case if you could open a support case we can check it in detail and provide the right solution/answer.

Thank you,

View solution in original post

5 Replies
Steve_Nguyen
Support
Support

@aj96 

 

more information would help others to understand the issue.

 

where are you using the variable ?

 

what are you trying to do?

 

 

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!
aj96
Contributor III
Contributor III
Author

@Steve_Nguyen 

I was trying to use in customETL. wanted to use the variable there in the query.

shashi_holla
Support
Support

Hi @aj96 

Please confirm the Compose version you are on.  Based on the 2021.08 Qlik Compose user guide, usage of predefined variables is supported sp03 onwards i.e. sub-version 250 or later.

https://help.qlik.com/en-US/compose/August2021/Content/ComposeDWDL/Main/DW/Projects/Variables_templa...

Thank you,

aj96
Contributor III
Contributor III
Author

@shashi_holla 

sub version is 569

The custom variables are working, it's just the the PreDefined Datawarehouse variables are not working.

shashi_holla
Support
Support

@aj96 

Looks like you are on latest patch version of 2021.08 and in the user guide link I shared in my last update, it mentions and we could be running into this constraint.

  • Exported CSV objects that are associated with predefined environment variables (for example, a mapping database and schema) cannot contain user-defined environment variables.

    For instance, this is not allowed:

    Name Landing Zone Database Schema
    MyMapping $$${MyDatabase} $$${MySchema}

    See also: Migrating objects as CSV files.

 In any case if you could open a support case we can check it in detail and provide the right solution/answer.

Thank you,