Qlik Sense - QVC Script line error:

201 views
Skip to first unread message

psever...@gmail.com

unread,
Aug 13, 2015, 6:44:43 PM8/13/15
to Qlikview Components Users
I'm trying to resolve the following error when using QVC 10 with Qlik Sense Server 2.0.1.

Does anyone have any idea of what might be causing my Qlik Sense script error with version QVC ver 10?

Script Example:

$(Include=lib://QVCSource (tst_tstsvc)/Qvc.qvs);

Call Qvc.CalendarFromField('Date', 'Time');
Call Qvc.Cleanup;
Exit Script;
]


Error Results:
The following error occurred:
Script line error:
---
The error occurred here:
Call Qvc.CalendarFromField('Date', 'Time')

Rob Wunderlich

unread,
Aug 13, 2015, 6:46:00 PM8/13/15
to Qlikview Components Users
My guess is that your include is not working. Change it to a Must_Include so it will fail the script if the qvc.qvs is not found. 

Because of the () in your file path, I think  you need [] around the path like 
$(Must_Include=[lib://QVCSource (rtp_cc-qsetstsvc)/Qvc.qvs]);

-Rob
Message has been deleted

Paul Severini

unread,
Aug 13, 2015, 8:16:48 PM8/13/15
to Qlikview Components Users
Thanks Rob. Problem resolved.

Rob Wunderlich

unread,
Aug 13, 2015, 8:19:46 PM8/13/15
to Qlikview Components Users
For the record Paul, I looked at one of my working Sense scripts and here is how I did coded it:

SET QvcLib='lib://QVC';
$(Must_Include=$(QvcLib)\Qvc_Runtime\Qvc.qvs);

Can you post your solution to help others?

-Rob

On Thursday, August 13, 2015 at 3:44:43 PM UTC-7, Paul Severini wrote:

Paul Severini

unread,
Aug 14, 2015, 5:50:19 PM8/14/15
to Qlikview Components Users
Answer to Problem:

I coded the QVC component like the following in my main Qlik Sense script. Please also make sure the 'Must_Include' statement
is executed before you issue any 'Call' statements on the Qvc object.

//Main Script

$(Must_Include=[lib://QVCSource (tst_tstsvc)/Qvc.qvs]);
.....
..... load scripts
.....

UNQUALIFY *;
Call Qvc.CalendarFromField('PK_Date','Time');
Call Qvc.Cleanup;
Reply all
Reply to author
Forward
0 new messages