<?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 Updated example with test workflow in Dev Space</title>
    <link>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340541#M718</link>
    <description>&lt;P&gt;Hi William,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the "UpdateOnly" mode, but it still fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I move the code into a demo module including configuration. (see attachment)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 20:21:46 GMT</pubDate>
    <dc:creator>jischebeck</dc:creator>
    <dc:date>2018-12-10T20:21:46Z</dc:date>
    <item>
      <title>Python tool fails with "InboundNamedPipe::ReadFile" when output is connected</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340055#M715</link>
      <description>&lt;P&gt;I've build a python &lt;SPAN&gt;tool&amp;nbsp;&lt;/SPAN&gt;with one input and one output, staying close to the "Python - Multiple InputsEngine"&amp;nbsp;example in &lt;A href="https://github.com/alteryx/python-sdk-samples" target="_blank"&gt;https://github.com/alteryx/python-sdk-samples&lt;/A&gt;. (the&amp;nbsp;tool has to read in all the data before processing can start)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the tool with no output anchor connected to a following tool, everything works fine.&lt;/P&gt;&lt;P&gt;But as soon as I connect another tool (e.g. browsing) I get the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;"Error: Designer x64: The Designer x64 reported: InboundNamedPipe::ReadFile: Not enough bytes read. The Pipe has been closed"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I connect a filter instead, I get the following error for different tools even for tools not connected to the workflow (like a text input tool):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;"Error: Text Input (6): Internal Error: BrowseEverywhereIIFactory::Reserve() - Tool: 6 - Reserve called again after GetII has been called once"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached a strip down version of the tools core python script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 12:34:12 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340055#M715</guid>
      <dc:creator>jischebeck</dc:creator>
      <dc:date>2018-12-10T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool fails with "InboundNamedPipe::ReadFile" when output is connected</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340425#M716</link>
      <description>&lt;P&gt;This looks like an issue with how the tool is configured, but to fully try and put this together, I need a copy of the Config.xml file for this tool.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:06:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340425#M716</guid>
      <dc:creator>wthompson</dc:creator>
      <dc:date>2018-12-10T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool fails with "InboundNamedPipe::ReadFile" when output is connected</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340464#M717</link>
      <description>&lt;P&gt;In addition, just looking at your sample code, I do have one suggestion.&amp;nbsp; Alteryx actually will end up calling the code in your tool in update only mode, during config, where it only processes the metadata and does not actually push any records.&amp;nbsp; Does the error you are seeing occur only during 'Run' or does it show up even during just configuring the tools on the workflow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it shows up during configuring the tool in a workflow, you probably need to block calls that may try and output empty records.&amp;nbsp; To do this, all you should need to do is add the following if block to your code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if self.alteryx_engine.get_init_var(self.n_tool_id, 'UpdateOnly') == 'True':&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;return False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would add that to the top your ii_push_record and ii_close methods, so they do not try and push any&amp;nbsp;invalid records to output, during 'UpdateOnly' mode.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:52:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340464#M717</guid>
      <dc:creator>wthompson</dc:creator>
      <dc:date>2018-12-10T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Updated example with test workflow</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340541#M718</link>
      <description>&lt;P&gt;Hi William,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the "UpdateOnly" mode, but it still fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I move the code into a demo module including configuration. (see attachment)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 20:21:46 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340541#M718</guid>
      <dc:creator>jischebeck</dc:creator>
      <dc:date>2018-12-10T20:21:46Z</dc:date>
    </item>
    <item>
      <title>Error found</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340556#M719</link>
      <description>&lt;P&gt;Hi William,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I remove the build_record_info step from pi_init and move it directly in front of the part sending the records, all errors go away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;def pi_init(self, str_xml: str):
   self.output_anchor = self.output_anchor_mgr.get_output_anchor('Output')
&lt;FONT color="#FF0000"&gt;   self.build_record_info()&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Dec 2018 20:59:27 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Python-tool-fails-with-quot-InboundNamedPipe-ReadFile-quot-when/m-p/340556#M719</guid>
      <dc:creator>jischebeck</dc:creator>
      <dc:date>2018-12-10T20:59:27Z</dc:date>
    </item>
  </channel>
</rss>

