<?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: Configuring Output for GIS Web Tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/configuring-output-for-gis-web-tool/m-p/442764#M34642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to find an answer for a similar question and think it might be here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/942333-re-geoprocessing-service-to-return-a-file"&gt;https://community.esri.com/message/942333-re-geoprocessing-service-to-return-a-file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:34:54 GMT</pubDate>
    <dc:creator>TobiSellekaerts</dc:creator>
    <dc:date>2020-09-28T15:34:54Z</dc:date>
    <item>
      <title>Configuring Output for GIS Web Tool</title>
      <link>https://community.esri.com/t5/python-questions/configuring-output-for-gis-web-tool/m-p/442763#M34641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I created a&amp;nbsp;python script tool that exports attachments (jpegs) using the following code:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;open(fileLocation + os.sep + str(rel_objectid) + "_" + Name, 'wb').write(binaryRep.tobytes())&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Originally, "fileLocation" was set as&amp;nbsp;arcpy.GetParameterAsText(0), routing to my temp folder. I then changed it to arcpy.env.scratchFolder and also tried ' r"C:\temp". The&amp;nbsp;script tool worked with no issues in ArcGIS Pro. When exporting to WebApp Builder widget, the output is locked and grayed out where I cannot make edits. While I did check the option to allow for export of these image attachments, held in a tableview or dbf, the tool executes but does not return output (the output tab in the widget is blank). Is there an issue with the code itself, as it's intended to write locally? How can I properly configure a user-defined output parameter that will run successfully in Pro so I can upload to my Portal?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Any insight is appreciated.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 15:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/configuring-output-for-gis-web-tool/m-p/442763#M34641</guid>
      <dc:creator>NeveenD</dc:creator>
      <dc:date>2020-09-08T15:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Output for GIS Web Tool</title>
      <link>https://community.esri.com/t5/python-questions/configuring-output-for-gis-web-tool/m-p/442764#M34642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to find an answer for a similar question and think it might be here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/942333-re-geoprocessing-service-to-return-a-file"&gt;https://community.esri.com/message/942333-re-geoprocessing-service-to-return-a-file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/configuring-output-for-gis-web-tool/m-p/442764#M34642</guid>
      <dc:creator>TobiSellekaerts</dc:creator>
      <dc:date>2020-09-28T15:34:54Z</dc:date>
    </item>
  </channel>
</rss>

