<?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: tFileExcelWorkbookSave - workbook cannot be null! error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323253#M93124</link>
    <description>Dear jlolling, can u keep an option in the tfileExcelWorkbooksave component, like a small check box - close workbook, which will actually save and close workbook. If the check box is not selected, the workbook should only get saved not closed and should be usable in the later point of job. 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Abhi</description>
    <pubDate>Mon, 09 May 2016 22:59:59 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-05-09T22:59:59Z</dc:date>
    <item>
      <title>tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323243#M93114</link>
      <description>Is it not possible to load items from a file to a context variable and pass the variable to custom component &lt;B&gt;tFileExcelWorkbookSave&lt;/B&gt;?&lt;BR /&gt;It works for the first pass, but then on the second row of the file I get:&lt;BR /&gt;&lt;B&gt;java.lang.IllegalArgumentException: workbook cannot be null!&lt;BR /&gt;	at de.cimt.talendcomp.tfileexcelpoi.SpreadsheetFile.setWorkbook(SpreadsheetFile.java:278)&lt;/B&gt;</description>
      <pubDate>Thu, 17 Apr 2014 19:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323243#M93114</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-04-17T19:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323244#M93115</link>
      <description>jlolling,
&lt;BR /&gt;Is it a requirement that a tFileExcelWorkbookOpen must be right before the tFileExcelWorkbookSave? 
&lt;BR /&gt;I have a tFileExcelWorkbookOpen at the start of my job and do a bunch of stuff before the tFileExcelWorkbookSave, but it always fails the SECOND pass if I don't have the tFileExcelWorkbookOpen must be right before the tFileExcelWorkbookSave.</description>
      <pubDate>Thu, 17 Apr 2014 22:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323244#M93115</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-04-17T22:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323245#M93116</link>
      <description>Can you show me your job design?
&lt;BR /&gt;After saving the workbook you cannot use it anymore. I can change the design in a way the workbook is usable after saving. Could you describe your use case to give me an idea why do you need that.</description>
      <pubDate>Fri, 18 Apr 2014 23:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323245#M93116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-18T23:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323246#M93117</link>
      <description>jlolling, 
&lt;BR /&gt;I get a daily Excel workbook with 70 worksheets, I need to remove about half of them from the file. I would like to be able to process multiple days' files to catch up if I don't run the job for a few days. 
&lt;BR /&gt;To improve the speed of the job, can the connection to the Excel file in 
&lt;B&gt;tFileExcelWorkbookOpen&lt;/B&gt; and 
&lt;B&gt;tFileExcelWorkbookSave&lt;/B&gt; stay open for the entire length of the job? 
&lt;BR /&gt;I would like to be able to get a list of workbook names from 
&lt;B&gt;tFileList&lt;/B&gt; to iterate through the list. 
&lt;BR /&gt;Use the 
&lt;B&gt;tFileExcelWorkbookOpen&lt;/B&gt; to open the current workbook 
&lt;BR /&gt;Use the 
&lt;B&gt;tFileExcelSheetList&lt;/B&gt; to get the list of worksheets in each workbook, pass to 
&lt;B&gt;tMap&lt;/B&gt; and 
&lt;B&gt;tFilterRow&lt;/B&gt; to get only the worksheets I want to remove. 
&lt;BR /&gt;Pass the name of the worksheet to remove to 
&lt;B&gt;tContextLoad&lt;/B&gt; then 
&lt;B&gt;tFlowToIterate&lt;/B&gt; 
&lt;BR /&gt;Use 
&lt;B&gt;tFileExcelWorkbookSave&lt;/B&gt; to delete the current worksheet. 
&lt;BR /&gt;Desired Job design: 
&lt;BR /&gt; 
&lt;B&gt;tFileList&lt;/B&gt; iterate 
&lt;B&gt;tFileExcelWorkbookOpen&lt;/B&gt; iterate 
&lt;B&gt;tFileExcelSheetList&lt;/B&gt; &amp;gt; 
&lt;B&gt;tMap&lt;/B&gt; &amp;gt; 
&lt;B&gt;tFilterRow&lt;/B&gt; filter 
&lt;B&gt;tContextLoad&lt;/B&gt; &amp;gt; 
&lt;B&gt;tFlowToIterate&lt;/B&gt; iterate 
&lt;B&gt;tFileExcelWorkbookSave&lt;/B&gt;</description>
      <pubDate>Tue, 22 Apr 2014 18:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323246#M93117</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-04-22T18:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323247#M93118</link>
      <description>OK I got it.
&lt;BR /&gt;We need a component to manage sheet: delete, rename.
&lt;BR /&gt;We need a workbook which can stay useable even when the file is saved. This way you could manipulate the file, save it, manipulate, save and so on...
&lt;BR /&gt;I will fill theses gaps in the next 2 week (I hope ;-)
&lt;BR /&gt;Here an idea with a tJavaRow component (assuming you have your sheet name to delete in the schema column sheet_name_to_delete. Probably change the component index for the tFileExcelWorkbookOpen.
&lt;BR /&gt;
&lt;PRE&gt;org.apache.poi.ss.usermodel.Workbook workbook = (org.apache.poi.ss.usermodel.Workbook) globalMap.get("workbook_tFileExcelWorkbookOpen_1");&lt;BR /&gt;int sheetIndex = workbook.getSheetIndex(input_row.sheet_name_to_delete);&lt;BR /&gt;if (sheetIndex &amp;gt;= 0) {&lt;BR /&gt;    workbook.removeSheetAt(sheetIndex);&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Apr 2014 23:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323247#M93118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-22T23:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323248#M93119</link>
      <description>I have been trying all sorts of ways using the code in tJavaRow but I get Exception in component tJavaRow_1 java.lang.NullPointerException or index out of range when I have tFileExcelWorkbookOpen and tFileExcelWorkbookSave after the tJavaRow. &lt;BR /&gt;Do I need to save the workbook in the tJavaRow?&lt;BR /&gt;Is there a way to delete multiple sheets at a single time like sheet index 0 .. 34?</description>
      <pubDate>Wed, 30 Apr 2014 22:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323248#M93119</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-04-30T22:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323249#M93120</link>
      <description>Hi jlolling, 
&lt;BR /&gt;Do you think an updated version of 
&lt;B&gt;tFileExcelWorkbookSave&lt;/B&gt; will be available soon? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 12 May 2014 18:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323249#M93120</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-05-12T18:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323250#M93121</link>
      <description>Hi jlolling, 
&lt;BR /&gt;I downloaded and installed the May 2014 version of tFileExcelWorkbookSave, but I am still getting the "workbook cannot be null!" error, has the updates been made?</description>
      <pubDate>Tue, 03 Jun 2014 20:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323250#M93121</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2014-06-03T20:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323251#M93122</link>
      <description>talendster, 
&lt;BR /&gt;I came here after having the exact same issue, I had a workaround where I moved all the subjobs to another and then run those as child jobs, it is working fine so far for me, 
&lt;BR /&gt;Very handy component by the way jlolling</description>
      <pubDate>Wed, 11 Jun 2014 17:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323251#M93122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-11T17:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323252#M93123</link>
      <description>Then reason because I have decided to make the workbook unusable after saving are caused by some problems within the POI API it self. At this time I experienced some strange problems with corrupted documents after changing an already saved document. I will test if the issue is now solved and will enable the change of the workbook after it is written.
&lt;BR /&gt;To be absolute sure nobody change the workbook after write it I remove it from memory -&amp;gt; this causes your NullPointerException. I should catch this state and create a better understandable error message.
&lt;BR /&gt;@talendtester could you provide a screenshot of your job?</description>
      <pubDate>Wed, 11 Jun 2014 21:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323252#M93123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-11T21:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323253#M93124</link>
      <description>Dear jlolling, can u keep an option in the tfileExcelWorkbooksave component, like a small check box - close workbook, which will actually save and close workbook. If the check box is not selected, the workbook should only get saved not closed and should be usable in the later point of job. 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Abhi</description>
      <pubDate>Mon, 09 May 2016 22:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323253#M93124</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-05-09T22:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323254#M93125</link>
      <description>Abhi, I like your idea!</description>
      <pubDate>Mon, 09 May 2016 23:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323254#M93125</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2016-05-09T23:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323255#M93126</link>
      <description>Hi, yes it would be great. I will check that. My problem was in the past the write method from the POI API disrupts the in memory structure of the workbook and so I decided to make it unusable after saving. I will check if this problem is gone in the latest API release. To be honest I have not done this test for a year. 
&lt;BR /&gt;I will come back here next days. 
&lt;BR /&gt;Cheers &amp;nbsp;</description>
      <pubDate>Wed, 11 May 2016 06:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323255#M93126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-11T06:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExcelWorkbookSave - workbook cannot be null! error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323256#M93127</link>
      <description>&lt;P&gt;Hi! I am currently experiencing this error, do you have any advice on how to fix?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 21:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExcelWorkbookSave-workbook-cannot-be-null-error/m-p/2323256#M93127</guid>
      <dc:creator>hgromek</dc:creator>
      <dc:date>2019-06-19T21:21:24Z</dc:date>
    </item>
  </channel>
</rss>

