<?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: Error in tSampleRow (&amp;quot;The method split(String) is invalid...&amp;quot;) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304003#M75820</link>
    <description>Hello,&lt;BR /&gt;I am not sure but the error talks about a type "Object", so maybe when you call your globalMap you have to "prefix" it with the return type of the get like that :&lt;BR /&gt;&lt;PRE&gt;(String) globalMap.get("HFScount")&lt;/PRE&gt;&lt;BR /&gt;I hope this answer can help you.</description>
    <pubDate>Fri, 23 Oct 2015 08:48:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-23T08:48:13Z</dc:date>
    <item>
      <title>Error in tSampleRow ("The method split(String) is invalid...")</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304002#M75819</link>
      <description>&lt;P&gt;In my job, I'm pulling files from a database, and wanting to divide full number of rows by four. I output each quarter of rows to a separate file. Here's my job:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGi6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153856i7CB240266688CA23/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGi6.png" alt="0683p000009MGi6.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In order to do this, I'm using a tJavaFlex component, which increments a variable by 1 for every value in ColumnA that isn't null, and then places that value in a global variable using globalMap.put(). Here's the code:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGp2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141360iBE6C7199A03E02F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGp2.png" alt="0683p000009MGp2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I'm trying to do is call this variable in a tSampleRow component, with the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGly.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131159i097F00CE763C06C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGly.png" alt="0683p000009MGly.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I try to run the job, I get the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGq9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157717iA34C56A3710CDEEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGq9.png" alt="0683p000009MGq9.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Am I attempting to do something impossible? If not, what is my mistake? I'm not sure what value in my job has a type of Object.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 22:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304002#M75819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-22T22:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tSampleRow ("The method split(String) is invalid...")</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304003#M75820</link>
      <description>Hello,&lt;BR /&gt;I am not sure but the error talks about a type "Object", so maybe when you call your globalMap you have to "prefix" it with the return type of the get like that :&lt;BR /&gt;&lt;PRE&gt;(String) globalMap.get("HFScount")&lt;/PRE&gt;&lt;BR /&gt;I hope this answer can help you.</description>
      <pubDate>Fri, 23 Oct 2015 08:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304003#M75820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-23T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tSampleRow ("The method split(String) is invalid...")</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304004#M75821</link>
      <description>tdz,
&lt;BR /&gt;Thank you for the suggestion. When I make the change you advised, I get the following error message: "Type mismatch: cannot convert from String to String[]".</description>
      <pubDate>Fri, 23 Oct 2015 19:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304004#M75821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-23T19:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tSampleRow ("The method split(String) is invalid...")</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304005#M75822</link>
      <description>Oups, sorry for the mistake, I think you have to cast the result of the globalMap in Integer (and not in String) like that :&lt;BR /&gt;&lt;PRE&gt;(Integer) globalMap.get("HFScount")&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Oct 2015 08:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304005#M75822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-26T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tSampleRow ("The method split(String) is invalid...")</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304006#M75823</link>
      <description>tdz,&lt;BR /&gt;This results in the following error message: "The method split(String) is undefined for the type Integer".</description>
      <pubDate>Tue, 27 Oct 2015 18:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304006#M75823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-27T18:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tSampleRow ("The method split(String) is invalid...")</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304007#M75824</link>
      <description>&lt;BLOCKQUOTE&gt;
 sdvorak wrote:
 &lt;BR /&gt;tdz,
 &lt;BR /&gt;Thank you for the suggestion. When I make the change you advised, I get the following error message: "Type mismatch: cannot convert from String to String[]".
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hello sdvorak,
&lt;BR /&gt;
&lt;BR /&gt;Could you please show us how and where you use the split method which is mentioned in your first post ?
&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 30 Oct 2015 10:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tSampleRow-quot-The-method-split-String-is-invalid-quot/m-p/2304007#M75824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-30T10:43:15Z</dc:date>
    </item>
  </channel>
</rss>

