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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

TRACE Command

Hello I've used the Trace command to trace some statement like this:

trace "YOUTUBE_Media: " & $(vQVSourceBaseUrl)/QVSource/YouTubeConnectorV3/?table=VideoSearch&appID=$(vQVSourceAppId)&query=$(site);

On the log is reported this:

"YOUTUBE_Media: " & http://localhost:5555/QVSource/YouTubeConnectorV3/?table=VideoSearch&appID=$(vQVSourceAppId)&query=$...)

Why some variables aren't evaluated?

Thanks

Marco

7 Replies
swuehl
MVP
MVP

Is this only a logging issue, i.e. have you checked the actual value of the variables?

Which version are you running?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I can't recreate the problem of variables not being substituted. Is that the exact trace command you are using?

Note that trace argument is not evaluated an expression, so the quotes and & are not doing anything.

-Rob

Clever_Anjos
Employee
Employee

Same issue here

SET vQVSourceBaseUrl=http://localhost:5555;

SET vQVSourceAppId=1234567;

SET site=one site ;

trace YOUTUBE_Media: $(vQVSourceBaseUrl)/QVSource/YouTubeConnectorV3/?table=VideoSearch&appID=$(vQVSourceAppId) &quey $(site);

swuehl
MVP
MVP

I am also able to reproduce this issue on two different machines.

Looks like the double slash breaks the dollar sign expansion. Interestingly, if you enclose the URL in single quotes, it's working again.

And it looks like not a TRACE issue, trying to assign the string to a variable also fails.

Clever_Anjos
Employee
Employee

SET vQVSourceBaseUrl=http://localhost:5555;

SET vQVSourceAppId=1234567;

SET site=one site ;

LET str = 'YOUTUBE_Media: $(vQVSourceBaseUrl)/QVSource/YouTubeConnectorV3/?table=VideoSearch&appID=$(vQVSourceAppId) &query= $(site)';

trace OOPS : YOUTUBE_Media: $(vQVSourceBaseUrl)/QVSource/YouTubeConnectorV3/?table=VideoSearch&appID=$(vQVSourceAppId)&query= $(site);

trace 'Fine:YOUTUBE_Media: $(vQVSourceBaseUrl)/QVSource/YouTubeConnectorV3/?table=VideoSearch&appID=$(vQVSourceAppId)&query= $(site)';

trace Fine Too:$(str);

SLEEP 5000;

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It appears "//" is seen as commenting out the rest of the statement when not enclosed in quotes?

Forget what I said about leaving the quotes off TRACE

-Rob

marco_puccetti
Partner - Creator
Partner - Creator
Author

With single quote it should works.


Thanks to all

Marco