<?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: Upload FeatureSet to Server in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9902#M278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you create a widget to Export the Graphis as a FeatureClass? If so, could you share it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to upload a graphics layer to a gdb on our local server through a geoproc service..&lt;BR /&gt;&lt;BR /&gt;1.In flex, i make a new feature set from the graphics layer. I then build my parameters and execute the geoprocessing task.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myGL:GraphicsLayer = resultsList[resultLayerDataGrid.selectedIndex].graphicLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var fs:FeatureSet = new FeatureSet(ArrayCollection(myGL.graphicProvider).toArray())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object =
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "aFeatureSet": fs
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.execute(params); &lt;/PRE&gt;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. My service runs from the following script:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env

userName = "mgiles"

env.workspace = "C:\\Users\\Administrator.GIS\\AppData\\Roaming\\ESRI\\Desktop10.0\\ArcCatalog\\" + userName + '.sde'
env.overwriteOutput = True

aFeatureSet = arcpy.GetParameter(0)

anOutput="output"

arcpy.CopyFeatures_management(aFeatureSet, anOutput)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I have attached an image of the service from the rest services directory. The script works from desktop. When i run it from Flex it returns the error: [RPC Fault faultString="Error Executing Task. Error processing message" faultCode="500" faultDetail=""].&lt;BR /&gt;&lt;BR /&gt;Could someone point me in the right direction as to what im doing wrong? Thanks.&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]16340[/ATTACH]&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:24:57 GMT</pubDate>
    <dc:creator>JORGELAGOS2</dc:creator>
    <dc:date>2021-12-10T20:24:57Z</dc:date>
    <item>
      <title>Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9895#M271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to upload a graphics layer to a gdb on our local server through a geoproc service..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.In flex, i make a new feature set from the graphics layer. I then build my parameters and execute the geoprocessing task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var myGL:GraphicsLayer = resultsList[resultLayerDataGrid.selectedIndex].graphicLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var fs:FeatureSet = new FeatureSet(ArrayCollection(myGL.graphicProvider).toArray())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object =
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "aFeatureSet": fs
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.execute(params); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. My service runs from the following script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy
from arcpy import env

userName = "mgiles"

env.workspace = "C:\\Users\\Administrator.GIS\\AppData\\Roaming\\ESRI\\Desktop10.0\\ArcCatalog\\" + userName + '.sde'
env.overwriteOutput = True

aFeatureSet = arcpy.GetParameter(0)

anOutput="output"

arcpy.CopyFeatures_management(aFeatureSet, anOutput)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached an image of the service from the rest services directory. The script works from desktop. When i run it from Flex it returns the error: [RPC Fault faultString="Error Executing Task. Error processing message" faultCode="500" faultDetail=""].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone point me in the right direction as to what im doing wrong? Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16340[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 18:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9895#M271</guid>
      <dc:creator>MattGiles</dc:creator>
      <dc:date>2012-07-23T18:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9896#M272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;M Giles,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a quick point without delving to far, the problem could be the path on your env.workspace it must be accessible by your server. Try using a UNC path or a %scratchworkspace%&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 18:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9896#M272</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-07-23T18:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9897#M273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Anthony for the quick reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately same result using both UNC and scratch workspace..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 18:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9897#M273</guid>
      <dc:creator>MattGiles</dc:creator>
      <dc:date>2012-07-23T18:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9898#M274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried turning on Verbose logging in Server manager, this may give you more detail on what is causing the error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 18:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9898#M274</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-07-23T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9899#M275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All the logs tell me is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Msg time='2012-07-24T10:23:14' type='ERROR' code='1017' target='SERVICES/MoveLayerToGroup.GPServerSync' thread='4424'&amp;gt;Container&amp;nbsp; process 12436 has crashed on machine geoserver.&amp;lt;/Msg&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9899#M275</guid>
      <dc:creator>MattGiles</dc:creator>
      <dc:date>2012-07-24T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9900#M276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you have verbose logging on as you would normally expect a lot more details on the error&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 18:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9900#M276</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-07-24T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9901#M277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've wasted many hours trying to pass feature sets to geoprocessing services through the REST API - it often gives me that error message, and there are no logs showing what goes wrong. But apparently it's the process of converting the json to something that can be processed by the python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One workaround I've found that always works is to create a model in model builder that just wraps my python script. In model builder you can specify a schema for your feature set, and this seems to make things ok. So instead of consuming the script tool from REST I consume the model tool, and the model handles the communication with the script tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 12:28:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9901#M277</guid>
      <dc:creator>OttarViken_Valvåg</dc:creator>
      <dc:date>2012-09-12T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Upload FeatureSet to Server</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9902#M278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you create a widget to Export the Graphis as a FeatureClass? If so, could you share it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to upload a graphics layer to a gdb on our local server through a geoproc service..&lt;BR /&gt;&lt;BR /&gt;1.In flex, i make a new feature set from the graphics layer. I then build my parameters and execute the geoprocessing task.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myGL:GraphicsLayer = resultsList[resultLayerDataGrid.selectedIndex].graphicLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var fs:FeatureSet = new FeatureSet(ArrayCollection(myGL.graphicProvider).toArray())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object =
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "aFeatureSet": fs
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.execute(params); &lt;/PRE&gt;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. My service runs from the following script:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env

userName = "mgiles"

env.workspace = "C:\\Users\\Administrator.GIS\\AppData\\Roaming\\ESRI\\Desktop10.0\\ArcCatalog\\" + userName + '.sde'
env.overwriteOutput = True

aFeatureSet = arcpy.GetParameter(0)

anOutput="output"

arcpy.CopyFeatures_management(aFeatureSet, anOutput)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I have attached an image of the service from the rest services directory. The script works from desktop. When i run it from Flex it returns the error: [RPC Fault faultString="Error Executing Task. Error processing message" faultCode="500" faultDetail=""].&lt;BR /&gt;&lt;BR /&gt;Could someone point me in the right direction as to what im doing wrong? Thanks.&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]16340[/ATTACH]&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/upload-featureset-to-server/m-p/9902#M278</guid>
      <dc:creator>JORGELAGOS2</dc:creator>
      <dc:date>2021-12-10T20:24:57Z</dc:date>
    </item>
  </channel>
</rss>

