<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to store special characters in Qliksense variables / How to get dynamic path for datafiles in Qlik cloud spaces in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497372#M2931</link>
    <description>&lt;P&gt;Could be different reasons, access right, Case Sensitivity.&lt;BR /&gt;However I would start debugging by adding Trace statements to the beginning of the script in order to see, what values the variables evaluate to in the different spaces.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let vSpaceName = Alt(GetSysAttr('spaceName'), 'UnknownSpace');
Let vSpaceType = Alt(GetSysAttr('spaceType'), 'UnknownType');

Trace Space Name: $(vSpaceName);
Trace Space Type: $(vSpaceType);

If '$(vSpaceName)' = '' and '$(vSpaceType)' = '' then
    Let vSource_Path = '';
    Trace Data sourced from Personal Datafiles';
    
ElseIf WildMatch(Lower('$(vSpaceName)'), '*uat*') then
    Let vSource_Path = 'RBSPK FACTS Analysis ETL UAT' &amp;amp; ':';
    Trace Data Sourced from $(vSource_Path) space;
    
ElseIf WildMatch(Lower('$(vSpaceName)'), '*dev*') then
    Let vSource_Path = 'RBSPK FACTS Analysis ETL DEV' &amp;amp; ':';
    Trace Data Sourced from $(vSource_Path) space;
    
Else
    Let vSource_Path = 'RBSPK FACTS Analysis ETL' &amp;amp; ':';
    Trace Data Sourced from $(vSource_Path) space;
EndIf

Trace Library Path: lib://$(vSource_Path)DataFiles/qvd/;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then test the script in the DEV and UAT space to see what's happening.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 13:00:48 GMT</pubDate>
    <dc:creator>NoahF</dc:creator>
    <dc:date>2024-12-11T13:00:48Z</dc:date>
    <item>
      <title>How to store special characters in Qliksense variables / How to get dynamic path for datafiles in Qlik cloud spaces</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497333#M2929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to create if else statement to set the QVD path dynamically if app moves from One space to another.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let vSpaceName=GetSysAttr('spaceName');
Let vSpaceType = GetSysAttr('spaceType');

If '$(vSpaceName)'='' and  '$(vSpaceType)' = '' then
	Let vSource_Path ='';
    Trace Data sourced from Personal Datafiles';
    
ElseIf WildMatch('$(vSpaceName)','*UAT*') then
	Let vSource_Path = 'RBSPK FACTS Analysis ETL UAT'&amp;amp;':';
	Trace Data Sourced from $(vSource_Path) space;
    
ElseIf WildMatch('$(vSpaceName)','*DEV*') then
	Let vSource_Path = 'RBSPK FACTS Analysis ETL DEV'&amp;amp;':';
    Trace Data Sourced from $(vSource_Path) space;
    
Else 
	Let vSource_Path = 'RBSPK FACTS Analysis ETL'&amp;amp;':';
    Trace Data Sourced from $(vSource_Path) space;
    
EndIf&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to get the dynamic path like this for each different space,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;lib://$(vSource_Path)DataFiles/qvd/&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above script works fine in Personal space but fails in other spaces like DEV and UAT. Any suggestions ?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 21:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497333#M2929</guid>
      <dc:creator>harshal_shreyesh</dc:creator>
      <dc:date>2025-03-19T21:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to store special characters in Qliksense variables / How to get dynamic path for datafiles in Qlik cloud spaces</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497372#M2931</link>
      <description>&lt;P&gt;Could be different reasons, access right, Case Sensitivity.&lt;BR /&gt;However I would start debugging by adding Trace statements to the beginning of the script in order to see, what values the variables evaluate to in the different spaces.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let vSpaceName = Alt(GetSysAttr('spaceName'), 'UnknownSpace');
Let vSpaceType = Alt(GetSysAttr('spaceType'), 'UnknownType');

Trace Space Name: $(vSpaceName);
Trace Space Type: $(vSpaceType);

If '$(vSpaceName)' = '' and '$(vSpaceType)' = '' then
    Let vSource_Path = '';
    Trace Data sourced from Personal Datafiles';
    
ElseIf WildMatch(Lower('$(vSpaceName)'), '*uat*') then
    Let vSource_Path = 'RBSPK FACTS Analysis ETL UAT' &amp;amp; ':';
    Trace Data Sourced from $(vSource_Path) space;
    
ElseIf WildMatch(Lower('$(vSpaceName)'), '*dev*') then
    Let vSource_Path = 'RBSPK FACTS Analysis ETL DEV' &amp;amp; ':';
    Trace Data Sourced from $(vSource_Path) space;
    
Else
    Let vSource_Path = 'RBSPK FACTS Analysis ETL' &amp;amp; ':';
    Trace Data Sourced from $(vSource_Path) space;
EndIf

Trace Library Path: lib://$(vSource_Path)DataFiles/qvd/;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then test the script in the DEV and UAT space to see what's happening.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 13:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497372#M2931</guid>
      <dc:creator>NoahF</dc:creator>
      <dc:date>2024-12-11T13:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to store special characters in Qliksense variables / How to get dynamic path for datafiles in Qlik cloud spaces</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497482#M2935</link>
      <description>&lt;P&gt;The part of: &lt;STRONG&gt;&amp;amp; ':'&lt;/STRONG&gt; seemed to be wrong. What about: &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; &lt;STRONG&gt;'/'&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 16:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497482#M2935</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-12-11T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to store special characters in Qliksense variables / How to get dynamic path for datafiles in Qlik cloud spaces</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497854#M2937</link>
      <description>&lt;P&gt;I was able to&amp;nbsp; fix it, the issue was just unwanted Single Quote in Trace statement below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; Trace Data sourced from Personal Datafiles';&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i remove it then the If clause works as expected.&lt;/P&gt;
&lt;P&gt;Thanks for you time everyone !!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 10:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-store-special-characters-in-Qliksense-variables-How-to/m-p/2497854#M2937</guid>
      <dc:creator>harshal_shreyesh</dc:creator>
      <dc:date>2024-12-13T10:07:22Z</dc:date>
    </item>
  </channel>
</rss>

