<?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 Extract Data Task and using inline variables in the output.zip in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/extract-data-task-and-using-inline-variables-in/m-p/630984#M16692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had success with using in-line variables with the Extract Data Task gp service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt;"&gt;We are using the screening widget from WABD v 2.12 which has an extract data task operating, producing a zip file output.&amp;nbsp; I've modified my extract data task gp service in modelbuilder to include some appends to databases and an incrementing ID field which&amp;nbsp;I have tried (in vain) to push as an in-line variable back to the zipfile as an output file name (%scratchFolder%\AppliedLUC_GIS&lt;STRONG&gt;%NewGISNum%&lt;/STRONG&gt;.zip). Whilst it works perfectly in the desktop environment&amp;nbsp;(eg AppliedLUC_GIS45.zip) , it produces HTTP 400 errors once published as a service through to Portal,&amp;nbsp;I think due to the % in the output URL? &lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;If I remove my variable from the filename (%scratchFolder%\AppliedLUC.zip) does work through to Portal with no errors.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;If anyone has any ideas on how to use an in-line&amp;nbsp;variable in the Extract Data gp service output, let me know! I am tempted to modify the&amp;nbsp;Extract Data task python script, but I am not sure how I'd call the variable... Any ideas on that would be appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;Camille.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2019 06:53:33 GMT</pubDate>
    <dc:creator>CamilleFraser</dc:creator>
    <dc:date>2019-07-12T06:53:33Z</dc:date>
    <item>
      <title>Extract Data Task and using inline variables in the output.zip</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/extract-data-task-and-using-inline-variables-in/m-p/630984#M16692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had success with using in-line variables with the Extract Data Task gp service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt;"&gt;We are using the screening widget from WABD v 2.12 which has an extract data task operating, producing a zip file output.&amp;nbsp; I've modified my extract data task gp service in modelbuilder to include some appends to databases and an incrementing ID field which&amp;nbsp;I have tried (in vain) to push as an in-line variable back to the zipfile as an output file name (%scratchFolder%\AppliedLUC_GIS&lt;STRONG&gt;%NewGISNum%&lt;/STRONG&gt;.zip). Whilst it works perfectly in the desktop environment&amp;nbsp;(eg AppliedLUC_GIS45.zip) , it produces HTTP 400 errors once published as a service through to Portal,&amp;nbsp;I think due to the % in the output URL? &lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;If I remove my variable from the filename (%scratchFolder%\AppliedLUC.zip) does work through to Portal with no errors.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;If anyone has any ideas on how to use an in-line&amp;nbsp;variable in the Extract Data gp service output, let me know! I am tempted to modify the&amp;nbsp;Extract Data task python script, but I am not sure how I'd call the variable... Any ideas on that would be appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; "&gt;Camille.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 06:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/extract-data-task-and-using-inline-variables-in/m-p/630984#M16692</guid>
      <dc:creator>CamilleFraser</dc:creator>
      <dc:date>2019-07-12T06:53:33Z</dc:date>
    </item>
  </channel>
</rss>

