<?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 Extracting data from multiple sheets of the same Excel workbook in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Extracting-data-from-multiple-sheets-of-the-same-Excel-workbook/m-p/563072#M6199</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a workflow that takes in an Excel file and performs different extractions on each sheet, then outputs each clean sheet to a single consolidated output file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first step works as expected in designer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input.PNG" style="width: 282px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/110410i35BDA221EAD24658/image-size/large?v=v2&amp;amp;px=999" role="button" title="Input.PNG" alt="Input.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The user selects a file with the File Browse tool. Then the action updates a Text Input with the file path (sans sheet name).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file path goes to multiple Python tools with Alteryx.read and the code extracts the data needed from the relevant sheet (the code looks for a specific sheet name) and outputs a dataframe. There are 15 of these extractions, with checkboxes to enable or disable them:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extraction.PNG" style="width: 863px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/110412i3A5E945349182874/image-size/large?v=v2&amp;amp;px=999" role="button" title="extraction.PNG" alt="extraction.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Finally, the dataframes go to an output file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I said, this all works as expected in Designer. The issue is when I save to the Gallery and try to run the app, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;The job&lt;/SPAN&gt;&lt;SPAN class="job-name"&gt;Python Extraction v19&lt;/SPAN&gt;&lt;SPAN&gt;did not complete successfully and resulted in the following errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;&lt;BLOCKQUOTE&gt;--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) &amp;lt;ipython-input-2-90ab1f6b3a77&amp;gt; in &amp;lt;module&amp;gt; 66 67 # Create consolidated PS dataframe ---&amp;gt; 68 df_cons_PS = extract_proj_summary(pack) 69 # Send dataframe to output anchor number 1 70 Alteryx.write(df_cons_PS,1) &amp;lt;ipython-input-2-90ab1f6b3a77&amp;gt; in extract_proj_summary(pack) 4 5 # open workbook as specified in parameters as wb element ----&amp;gt; 6 wb = xlrd.open_workbook(pack) 7 8 # extract the names of all worksheets e:\program files\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\xlrd\__init__.py in open_workbook(filename, logfile, verbosity, use_mmap, file_contents, encoding_override, formatting_info, on_demand, ragged_rows) 109 else: 110 filename = os.path.expanduser(filename) --&amp;gt; 111 with open(filename, "rb") as f: 112 peek = f.read(peeksz) 113 if peek == b"PK\x03\x04": # a ZIP file FileNotFoundError: [Errno 2] No such file or directory: 'P:\\PUBLIC\\Accounts\\FP&amp;amp;A\\Projects\\BI Tool\\Power BI\\New F packs\\PBI files\\F-Pack EVO\\EVO Data\\Python Data\\F Packs Input\\F1 2020\\F1 2020 - BLD - Post.xlsm' (Tool Id: 1)&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter what file I select, I always get this FileNotFound error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm concerned that Alteryx Server doesn't allow a Text Input to handle the file path and instead requires a Data Input. If this is the case, it will demand a sheet name from the user, making the entire workflow pointless as the extraction will only work for that 1 sheet and the other 14 won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody on here have experience with workflows that operate on multi-sheet workbooks in this way? If so please can I ask for some assistance or advice with the above error? It would be extremely appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A copy of the workflow is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 15:49:31 GMT</pubDate>
    <dc:creator>simonmay</dc:creator>
    <dc:date>2020-04-29T15:49:31Z</dc:date>
    <item>
      <title>Extracting data from multiple sheets of the same Excel workbook</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Extracting-data-from-multiple-sheets-of-the-same-Excel-workbook/m-p/563072#M6199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a workflow that takes in an Excel file and performs different extractions on each sheet, then outputs each clean sheet to a single consolidated output file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first step works as expected in designer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input.PNG" style="width: 282px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/110410i35BDA221EAD24658/image-size/large?v=v2&amp;amp;px=999" role="button" title="Input.PNG" alt="Input.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The user selects a file with the File Browse tool. Then the action updates a Text Input with the file path (sans sheet name).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file path goes to multiple Python tools with Alteryx.read and the code extracts the data needed from the relevant sheet (the code looks for a specific sheet name) and outputs a dataframe. There are 15 of these extractions, with checkboxes to enable or disable them:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extraction.PNG" style="width: 863px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/110412i3A5E945349182874/image-size/large?v=v2&amp;amp;px=999" role="button" title="extraction.PNG" alt="extraction.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Finally, the dataframes go to an output file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I said, this all works as expected in Designer. The issue is when I save to the Gallery and try to run the app, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;The job&lt;/SPAN&gt;&lt;SPAN class="job-name"&gt;Python Extraction v19&lt;/SPAN&gt;&lt;SPAN&gt;did not complete successfully and resulted in the following errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;&lt;BLOCKQUOTE&gt;--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) &amp;lt;ipython-input-2-90ab1f6b3a77&amp;gt; in &amp;lt;module&amp;gt; 66 67 # Create consolidated PS dataframe ---&amp;gt; 68 df_cons_PS = extract_proj_summary(pack) 69 # Send dataframe to output anchor number 1 70 Alteryx.write(df_cons_PS,1) &amp;lt;ipython-input-2-90ab1f6b3a77&amp;gt; in extract_proj_summary(pack) 4 5 # open workbook as specified in parameters as wb element ----&amp;gt; 6 wb = xlrd.open_workbook(pack) 7 8 # extract the names of all worksheets e:\program files\alteryx\bin\miniconda3\envs\jupytertool_venv\lib\site-packages\xlrd\__init__.py in open_workbook(filename, logfile, verbosity, use_mmap, file_contents, encoding_override, formatting_info, on_demand, ragged_rows) 109 else: 110 filename = os.path.expanduser(filename) --&amp;gt; 111 with open(filename, "rb") as f: 112 peek = f.read(peeksz) 113 if peek == b"PK\x03\x04": # a ZIP file FileNotFoundError: [Errno 2] No such file or directory: 'P:\\PUBLIC\\Accounts\\FP&amp;amp;A\\Projects\\BI Tool\\Power BI\\New F packs\\PBI files\\F-Pack EVO\\EVO Data\\Python Data\\F Packs Input\\F1 2020\\F1 2020 - BLD - Post.xlsm' (Tool Id: 1)&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter what file I select, I always get this FileNotFound error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm concerned that Alteryx Server doesn't allow a Text Input to handle the file path and instead requires a Data Input. If this is the case, it will demand a sheet name from the user, making the entire workflow pointless as the extraction will only work for that 1 sheet and the other 14 won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody on here have experience with workflows that operate on multi-sheet workbooks in this way? If so please can I ask for some assistance or advice with the above error? It would be extremely appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A copy of the workflow is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 15:49:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Extracting-data-from-multiple-sheets-of-the-same-Excel-workbook/m-p/563072#M6199</guid>
      <dc:creator>simonmay</dc:creator>
      <dc:date>2020-04-29T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from multiple sheets of the same Excel workbook</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Extracting-data-from-multiple-sheets-of-the-same-Excel-workbook/m-p/564731#M6241</link>
      <description>&lt;P&gt;The way you would normally do this is to take the filename or fullpath name you got from the file browse tool and add list of sheet names with a forumal tool like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then use a dynamic input tool to load the list of sheet names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidP_0-1588491426293.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/110946i43BE10B1621CFDDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidP_0-1588491426293.png" alt="DavidP_0-1588491426293.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, use the wildcard XLSX macro from the CreW Macros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidP_1-1588491556526.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/110947iD14B6929B61FDA2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidP_1-1588491556526.png" alt="DavidP_1-1588491556526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 07:39:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Extracting-data-from-multiple-sheets-of-the-same-Excel-workbook/m-p/564731#M6241</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2020-05-03T07:39:35Z</dc:date>
    </item>
  </channel>
</rss>

