<?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: Check two entries (excel Sheet) with different types for certain conditions in TMap - ERROR: cannot convert String to double in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209648#M1144</link>
    <description>&lt;P&gt;Hi rhall, thanks for you input. I checked the column types and thought they were correct..&lt;/P&gt;&lt;P&gt;This is the input table and then the wished for result table&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Wvrw5AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157422iD85BD4ACF2D93B64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Wvrw5AAB.png" alt="0695b00000Wvrw5AAB.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvrD5AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151577i53DB0A46C10A656A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvrD5AAJ.png" alt="0695b00000WvrD5AAJ.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (Copy_of_fillingout_Transpot_TEST)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because "row2.C" is null&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 12:00:06 GMT</pubDate>
    <dc:creator>Moro</dc:creator>
    <dc:date>2022-10-07T12:00:06Z</dc:date>
    <item>
      <title>Check two entries (excel Sheet) with different types for certain conditions in TMap - ERROR: cannot convert String to double</title>
      <link>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209646#M1142</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am trying to check 2 entries in an excel file to determine what to calculate.&lt;/P&gt;&lt;P&gt;Like the following: If B is TRUE and A is empty then calculation 1, or else condition 2 &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvqTHAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143695i775EA110B63860A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvqTHAAZ.png" alt="0695b00000WvqTHAAZ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried in TMap: &lt;/P&gt;&lt;P&gt;row2.B !=null &amp;amp;&amp;amp;&amp;nbsp;row2.A=="TRUE"? "Blue": "green"&lt;/P&gt;&lt;P&gt;row2.B !=null &amp;amp;&amp;amp;&amp;nbsp;row2.A==true? "Blue": "green"&lt;/P&gt;&lt;P&gt;row2.B==true || (row2.A== null || "".equals(row2.A)&amp;nbsp;|| row2.A.isEmpty()) ? "Blue": "green"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an alert/Error saying&lt;I&gt; "cant convert .. to string". &lt;/I&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;I&gt;Exception in component tMap_1 (filename&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because "row2.A" is null&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following works, when both rows are strings. &lt;/P&gt;&lt;P&gt;row2.Name == null ?"sfd":"sf"&lt;/P&gt;&lt;P&gt;I would like to put a value from another row or calculation with other double type. But then I keep getting errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; Do you have any advice for me how to get to the needed result?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209646#M1142</guid>
      <dc:creator>Moro</dc:creator>
      <dc:date>2024-11-15T22:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Check two entries (excel Sheet) with different types for certain conditions in TMap - ERROR: cannot convert String to double</title>
      <link>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209647#M1143</link>
      <description>&lt;P&gt;Can you show your tMap_1 configuration? It looks like you are mixing your column data types.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 11:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209647#M1143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-07T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Check two entries (excel Sheet) with different types for certain conditions in TMap - ERROR: cannot convert String to double</title>
      <link>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209648#M1144</link>
      <description>&lt;P&gt;Hi rhall, thanks for you input. I checked the column types and thought they were correct..&lt;/P&gt;&lt;P&gt;This is the input table and then the wished for result table&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Wvrw5AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157422iD85BD4ACF2D93B64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Wvrw5AAB.png" alt="0695b00000Wvrw5AAB.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvrD5AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151577i53DB0A46C10A656A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvrD5AAJ.png" alt="0695b00000WvrD5AAJ.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (Copy_of_fillingout_Transpot_TEST)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because "row2.C" is null&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 12:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209648#M1144</guid>
      <dc:creator>Moro</dc:creator>
      <dc:date>2022-10-07T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Check two entries (excel Sheet) with different types for certain conditions in TMap - ERROR: cannot convert String to double</title>
      <link>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209649#M1145</link>
      <description>&lt;P&gt;OK, I think I know why this is happening. Your tMap looks fine apart from one thing. Your expression....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row2.A==&lt;B&gt;null&lt;/B&gt; &amp;amp;&amp;amp; row2.C==&lt;B&gt;true&lt;/B&gt; ? "FTL" : "LCL"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....is comparing a null Boolean (class) to a literal boolean. Literal booleans cannot be null, Boolean classes can be. The comparison here is causing the issue. You can correct this with either.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row2.A==&lt;B&gt;null&lt;/B&gt; &amp;amp;&amp;amp; row2.C != &lt;B&gt;null&lt;/B&gt; &amp;amp;&amp;amp; row2.C==&lt;B&gt;true&lt;/B&gt; ? "FTL" : "LCL"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....or .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.A==&lt;B&gt;null&lt;/B&gt; &amp;amp;&amp;amp; row1.C != &lt;B&gt;null&lt;/B&gt; &amp;amp;&amp;amp; row1.C.equals(&lt;B&gt;new&lt;/B&gt; Boolean(&lt;B&gt;true&lt;/B&gt;)) ? "FTL" : "LCL"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are also suffering from a problem which is highlighting this flaw in the code. You show 3 rows in your example above. I suspect that you have used the row below and deleted in the Excel file. This will cause the Excel file to believe it is populated. This will cause it to be read by your job. It will return nulls for all columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are largely guesses based on what I have seen. I am sure that the tMap issue needs fixing, but I may be wrong about your Excel file. You may have a row where C is null.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 13:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209649#M1145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-07T13:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Check two entries (excel Sheet) with different types for certain conditions in TMap - ERROR: cannot convert String to double</title>
      <link>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209650#M1146</link>
      <description>&lt;P&gt;It works - thank you very much (for the explanation also!) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 13:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Check-two-entries-excel-Sheet-with-different-types-for-certain/m-p/2209650#M1146</guid>
      <dc:creator>Moro</dc:creator>
      <dc:date>2022-10-10T13:15:27Z</dc:date>
    </item>
  </channel>
</rss>

