Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

Variable error

Hi All,

i have assigned one connection string to variable, i am using that variable in qlikview.

when im running qlikview script im not able to connect to the Oracle database.

without using variable im able to connecto to the database.

kindly suggest me

Thanks in Advance,

Niranjan

5 Replies
saimahasan
Partner - Creator III
Partner - Creator III

Can you check the value of the variable Vname in your qlikview application???

mayankraoka
Specialist
Specialist

Just wanted to check have you written that variable or call that variable in script?

Regards,

Mayank

sunny_talwar

I think you forgot to use the variable before you pull from the database query

CONNECT TO $(Vname);


DIM1:

LOAD "FCT_TMPLT_ID",

    "TMPLT_NM",

    "TMPLT_STS_CD",

    "TMPLT_EFF_DT",

    "TMPLT_TERM_DT",

    "TMPLT_CRE_USR_ID",

    "TMPLT_CRE_TS",

    "TMPLT_UPDT_USR_ID",

    "TMPLT_UPDT_TS",

    "BYPASS_IN",

    "RAG_CMNT_CD",

    "RAG_UPLD_IN";

SQL SELECT FCT_TMPLT_ID, TMPLT_NM, TMPLT_STS_CD, TMPLT_EFF_DT, TMPLT_TERM_DT, TMPLT_CRE_USR_ID, TMPLT_CRE_TS, TMPLT_UPDT_USR_ID, TMPLT_UPDT_TS, BYPASS_IN, RAG_CMNT_CD, RAG_UPLD_IN

FROM "OMP_MASTER"."MVW_TMPLT_FCTSETUP_CCB"

;

NavinReddy
Creator II
Creator II
Author

Thanks for your response its working

when its connecting to the database its asking user namd password,

connection string it self already has user name and passowrd.

Please suggesterror1.png

sunny_talwar

If you don't create a variable, you don't see this behavior?