<?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 Error: ')' expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-expected/m-p/1730670#M722612</link>
    <description>&lt;P&gt;I have a script that has been running fine for years. today it failed several times and this is the part where there was an error. The script looks good to me but the variables disappeared in the error message and it says I need a ')'. Could anyone show me what is wrong here?&lt;/P&gt;&lt;P&gt;I have checked these variables (vlocalExchangeRateEUR..) and they all return correct values.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;PrimaryKey,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='USD', Cost,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='EUR',Cost/$(vLocalExchangeRateEUR),&lt;BR /&gt;If((Org='3000') and CurrencyIsoCode='CNY',Cost/$(vLocalExchangeRateCNY),&lt;BR /&gt;If((Org='3300') and CurrencyIsoCode='JPY',Cost/$(vLocalExchangeRateJPY)&lt;/P&gt;&lt;P&gt;)))) as CostLC&lt;BR /&gt;Resident Quote;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error in expression:&lt;BR /&gt;')' expected&lt;BR /&gt;Left Join(Quote)&lt;BR /&gt;LOAD&lt;BR /&gt;PrimaryKey,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='USD', Cost,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='EUR',Cost/,&lt;BR /&gt;If((Org='3000') and CurrencyIsoCode='CNY',Cost/,&lt;BR /&gt;If((Org='3300') and CurrencyIsoCode='JPY',Cost/&lt;/P&gt;&lt;P&gt;)))) as CostLC&lt;BR /&gt;Resident Quote&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:15:51 GMT</pubDate>
    <dc:creator>Linh_Nguyen</dc:creator>
    <dc:date>2024-11-16T00:15:51Z</dc:date>
    <item>
      <title>Error: ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-expected/m-p/1730670#M722612</link>
      <description>&lt;P&gt;I have a script that has been running fine for years. today it failed several times and this is the part where there was an error. The script looks good to me but the variables disappeared in the error message and it says I need a ')'. Could anyone show me what is wrong here?&lt;/P&gt;&lt;P&gt;I have checked these variables (vlocalExchangeRateEUR..) and they all return correct values.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;PrimaryKey,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='USD', Cost,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='EUR',Cost/$(vLocalExchangeRateEUR),&lt;BR /&gt;If((Org='3000') and CurrencyIsoCode='CNY',Cost/$(vLocalExchangeRateCNY),&lt;BR /&gt;If((Org='3300') and CurrencyIsoCode='JPY',Cost/$(vLocalExchangeRateJPY)&lt;/P&gt;&lt;P&gt;)))) as CostLC&lt;BR /&gt;Resident Quote;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error in expression:&lt;BR /&gt;')' expected&lt;BR /&gt;Left Join(Quote)&lt;BR /&gt;LOAD&lt;BR /&gt;PrimaryKey,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='USD', Cost,&lt;BR /&gt;If((Org='1000' or Org='1600' or Org='1500') and CurrencyIsoCode='EUR',Cost/,&lt;BR /&gt;If((Org='3000') and CurrencyIsoCode='CNY',Cost/,&lt;BR /&gt;If((Org='3300') and CurrencyIsoCode='JPY',Cost/&lt;/P&gt;&lt;P&gt;)))) as CostLC&lt;BR /&gt;Resident Quote&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-expected/m-p/1730670#M722612</guid>
      <dc:creator>Linh_Nguyen</dc:creator>
      <dc:date>2024-11-16T00:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error: ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-expected/m-p/1730705#M722613</link>
      <description>&lt;P&gt;the&amp;nbsp; variables looks to be empty&amp;nbsp;&lt;SPAN&gt;vLocalExchangeRateCNY , vLocalExchangeRateEUR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;its likely because of that.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;beause script is looking for column&amp;nbsp;Cost/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 16:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-expected/m-p/1730705#M722613</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-07-24T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error: ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-expected/m-p/1730795#M722614</link>
      <description>&lt;P&gt;Hi, as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49412"&gt;@dplr-rn&lt;/a&gt;&amp;nbsp;says and you probably guess the error is in those variables, how have you checked that the variables has any values at that point in script?&lt;/P&gt;&lt;P&gt;You can use 'exit script;' to stop the script at any point and check the loaded values for the variables, and also you can use the 'trace' sentence.&lt;/P&gt;&lt;P&gt;Also note that in script a point is used as decimal separator, maybe your expression to calculate rates are returning comma as decimal separator and causing the rates to go null() at some point before that script.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 09:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-expected/m-p/1730795#M722614</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-07-25T09:04:11Z</dc:date>
    </item>
  </channel>
</rss>

