<?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: Script Error in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Script-Error/m-p/1553919#M39887</link>
    <description>&lt;P&gt;Do you may be want to do SELECT, instead of LOAD&lt;/P&gt;&lt;PRE&gt;TBL_USERPROFILES_1:
&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt;LOAD&lt;/FONT&gt;&lt;/STRIKE&gt; SELECT Distinct UserID
FROM "abc-smith".ro."vw_Data_User_Profiles";&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Mar 2019 02:10:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-03-08T02:10:25Z</dc:date>
    <item>
      <title>Script Error</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Error/m-p/1553820#M39875</link>
      <description>&lt;P&gt;I am getting the following script error when attempting to load my data:&lt;/P&gt;&lt;DIV class="headline edc_error"&gt;The following error occurred:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;No qualified path for file: ***&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;The error occurred here:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;TBL_USERPROFILES_1: LOAD Distinct UserID FROM "abc-smith".ro."vw_Data_User_Profiles"&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Below is my load script:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;P&gt;LIB CONNECT TO 'NAME_SQL_Database_abc-smith-db-01.database.windows.net (team_john.doe)';&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;UserID,&lt;BR /&gt;PropertyName,&lt;BR /&gt;PropertyValue;&lt;/P&gt;&lt;P&gt;TBL_USERPROFILES:&lt;BR /&gt;SELECT&lt;BR /&gt;UserID,&lt;BR /&gt;PropertyName,&lt;BR /&gt;PropertyValue&lt;BR /&gt;FROM "abc-smith".ro."vw_Data_User_Profiles";&lt;/P&gt;&lt;P&gt;//----- MERGE MULTIPLE TABLES TO ONE CLEAN OUTPUT --------------------------------------------------//&lt;/P&gt;&lt;P&gt;SET vListOfTables = ;&lt;BR /&gt;FOR vTableNo = 0 to NoOfTables()&lt;BR /&gt;LET vTableName = TableName($(vTableNo)) ;&lt;BR /&gt;If Subfield(vTableName,'.',1)='TBL_USERPROFILES' Then&lt;BR /&gt;LET vListOfTables = vListOfTables &amp;amp; If(Len(vListOfTables)&amp;gt;0,',') &amp;amp; Chr(39) &amp;amp; vTableName &amp;amp; Chr(39) ;&lt;BR /&gt;End If&lt;BR /&gt;Next vTableNo&lt;/P&gt;&lt;P&gt;TBL_USERPROFILES_1:&lt;BR /&gt;LOAD Distinct UserID&lt;BR /&gt;FROM "abc-smith".ro."vw_Data_User_Profiles";&lt;/P&gt;&lt;P&gt;FOR Each vTableName in $(vListOfTables)&lt;BR /&gt;Left Join (TBL_USERPROFILES_1) Load * Resident [$(vTableName)];&lt;BR /&gt;Drop Table [$(vTableName)];&lt;BR /&gt;Next vTableName&lt;/P&gt;&lt;P&gt;//----- CLEANSE REGION FIELDS IN USER PROFILES 1 ---------------------------------------------------//&lt;/P&gt;&lt;P&gt;TBL_USERPROFILES_2:&lt;BR /&gt;LOAD&lt;BR /&gt;UserID,&lt;BR /&gt;// FirstName,&lt;BR /&gt;// LastName,&lt;BR /&gt;FacebookID,&lt;BR /&gt;// FacebookToken,&lt;BR /&gt;// Photo,&lt;BR /&gt;Date(PurgeChar(Birthdate, '00:00')) as Birthdate,&lt;BR /&gt;// Year(Birthdate) as BirthYear,&lt;BR /&gt;// Street,&lt;BR /&gt;Capitalize(City) as City,&lt;BR /&gt;Upper(Region) as Region1,&lt;BR /&gt;PostalCode,&lt;BR /&gt;// Telephone,&lt;BR /&gt;Gender,&lt;BR /&gt;// Unit,&lt;BR /&gt;TwitterID&lt;BR /&gt;// TwitterToken,&lt;BR /&gt;// TwitterTokenSecret,&lt;BR /&gt;// TMAccountIDCollection,&lt;BR /&gt;// TicketAccountID,&lt;BR /&gt;// PreferredTimeZone,&lt;BR /&gt;// TDCAccountIDCollection,&lt;BR /&gt;// IsFirstTime,&lt;BR /&gt;// TMSyncedAccountIDCollection&lt;BR /&gt;Resident TBL_USERPROFILES_1;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE TBL_USERPROFILES_1;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//----- Add Age To UserProfile ---------------------------------------------------//&lt;/P&gt;&lt;P&gt;TBL_USERPROFILES_3:&lt;BR /&gt;LOAD&lt;BR /&gt;UserID,&lt;BR /&gt;FacebookID,&lt;BR /&gt;Birthdate,&lt;BR /&gt;Year(Birthdate) as BirthYear,&lt;BR /&gt;age(today(),Birthdate) as Age,&lt;BR /&gt;City,&lt;BR /&gt;Region1,&lt;BR /&gt;PostalCode,&lt;BR /&gt;Gender,&lt;BR /&gt;TwitterID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident TBL_USERPROFILES_2;&lt;BR /&gt;DROP TABLE TBL_USERPROFILES_2;&lt;BR /&gt;&lt;BR /&gt;//----- Add Age Groups to UserProfiles ---------------------------------------------------//&lt;BR /&gt;&lt;BR /&gt;TBL_USERPROFILES_4:&lt;BR /&gt;lOAD&lt;BR /&gt;UserID,&lt;BR /&gt;FacebookID,&lt;BR /&gt;Birthdate,&lt;BR /&gt;BirthYear,&lt;BR /&gt;Age,&lt;BR /&gt;City,&lt;BR /&gt;Region1,&lt;BR /&gt;PostalCode,&lt;BR /&gt;Gender,&lt;BR /&gt;TwitterID,&lt;BR /&gt;if(Age &amp;lt; 20, ' Under 20',&lt;BR /&gt;if(Age &amp;lt; 25, '20-24',&lt;BR /&gt;if(Age &amp;lt; 30, '25-29',&lt;BR /&gt;if(Age &amp;lt; 35, '30-34',&lt;BR /&gt;if(Age &amp;lt; 40, '35-39',&lt;BR /&gt;if(Age &amp;lt; 45, '40-44',&lt;BR /&gt;if(Age &amp;lt; 50, '45-49',&lt;BR /&gt;if(Age &amp;lt; 55, '50-54',&lt;BR /&gt;if(Age &amp;lt; 60, '55-59',&lt;BR /&gt;if(Age &amp;lt; 65, '60-64',&lt;BR /&gt;if(Age &amp;lt; 70, '65-69',&lt;BR /&gt;if(Age &amp;lt; 100, 'Older than 70')))))))))))) as AgeGroup&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident TBL_USERPROFILES_3;&lt;BR /&gt;DROP TABLE TBL_USERPROFILES_3;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Mar 2019 18:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Error/m-p/1553820#M39875</guid>
      <dc:creator>EvanBarrick</dc:creator>
      <dc:date>2019-03-07T18:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Error/m-p/1553919#M39887</link>
      <description>&lt;P&gt;Do you may be want to do SELECT, instead of LOAD&lt;/P&gt;&lt;PRE&gt;TBL_USERPROFILES_1:
&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt;LOAD&lt;/FONT&gt;&lt;/STRIKE&gt; SELECT Distinct UserID
FROM "abc-smith".ro."vw_Data_User_Profiles";&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 02:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Error/m-p/1553919#M39887</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-08T02:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Error/m-p/1554398#M39929</link>
      <description>Try this,&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;UserID,&lt;BR /&gt;PropertyName,&lt;BR /&gt;PropertyValue;&lt;BR /&gt;SELECT&lt;BR /&gt;UserID,&lt;BR /&gt;PropertyName,&lt;BR /&gt;PropertyValue&lt;BR /&gt;FROM "abc-smith".ro."vw_Data_User_Profiles";</description>
      <pubDate>Fri, 08 Mar 2019 18:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Error/m-p/1554398#M39929</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2019-03-08T18:21:21Z</dc:date>
    </item>
  </channel>
</rss>

