<?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 Python script tool works in Desktop but fails in Web, in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296620#M8765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Python script tool works in Desktop but fails in Web,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian Peebles has generously shared a python script tool that display xy coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For me it is worked fine on the ArcGIS desktop, and published successfully on the server, but as it is added to the one of the web applications builders like (.Net, Silverlight, Flex), it fails to work&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23481[/ATTACH], [ATTACH=CONFIG]23482[/ATTACH], [ATTACH=CONFIG]23483[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where might be my mistake?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The python script tool, instructions and screenshots can be downloaded from the link below&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.mediafire.com/?5ay8m6yu777606r" rel="nofollow" target="_blank"&gt;http://www.mediafire.com/?5ay8m6yu777606r&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Developed by "Ian Peebles"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/78352-Displaying-more-than-one-" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/78352-Displaying-more-than-one-&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;displaying (x,y) in Desktop and Web application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. outputworkspace (folder used for scratch)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Script (folder that contains the XY.py script)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Symbology (folder that contains the output symbology as layer files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Toolbox.tbx (contains the FindCoordinate script tool)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script contains a creation of an event layer that uses your coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steps to follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Copy these files into a folder to your local drive or server.&amp;nbsp; You might name it Coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set the scratch workspace in your .mxd.&amp;nbsp; In this case, I used: C:\Files\GIS\Coordinates\outputworkspace (Geoprocessing -- Environment -- Workspace -- Scratch Workspace)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Open the Toolbox and run the tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Enter in the coordinate and click OK.&amp;nbsp; Takes about 1 second to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. The results will appear in the table of contents, symbolized with the coordinates labeled based on the referenced layer file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. If the script successfully runs, in ArcMap go to: Geoprocessing -- Results -- Current Session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Right Click on the last geoprocessing results and choose Share as Geoprocessing Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Following the publishing of your geoprocessing service, you can add this into your silverlight application as a tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------------------------------&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Apr 2013 19:29:45 GMT</pubDate>
    <dc:creator>JamalNUMAN</dc:creator>
    <dc:date>2013-04-14T19:29:45Z</dc:date>
    <item>
      <title>Python script tool works in Desktop but fails in Web,</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296620#M8765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Python script tool works in Desktop but fails in Web,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian Peebles has generously shared a python script tool that display xy coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For me it is worked fine on the ArcGIS desktop, and published successfully on the server, but as it is added to the one of the web applications builders like (.Net, Silverlight, Flex), it fails to work&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23481[/ATTACH], [ATTACH=CONFIG]23482[/ATTACH], [ATTACH=CONFIG]23483[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where might be my mistake?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The python script tool, instructions and screenshots can be downloaded from the link below&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.mediafire.com/?5ay8m6yu777606r" rel="nofollow" target="_blank"&gt;http://www.mediafire.com/?5ay8m6yu777606r&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Developed by "Ian Peebles"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/78352-Displaying-more-than-one-" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/78352-Displaying-more-than-one-&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;displaying (x,y) in Desktop and Web application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. outputworkspace (folder used for scratch)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Script (folder that contains the XY.py script)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Symbology (folder that contains the output symbology as layer files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Toolbox.tbx (contains the FindCoordinate script tool)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script contains a creation of an event layer that uses your coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steps to follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Copy these files into a folder to your local drive or server.&amp;nbsp; You might name it Coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set the scratch workspace in your .mxd.&amp;nbsp; In this case, I used: C:\Files\GIS\Coordinates\outputworkspace (Geoprocessing -- Environment -- Workspace -- Scratch Workspace)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Open the Toolbox and run the tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Enter in the coordinate and click OK.&amp;nbsp; Takes about 1 second to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. The results will appear in the table of contents, symbolized with the coordinates labeled based on the referenced layer file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. If the script successfully runs, in ArcMap go to: Geoprocessing -- Results -- Current Session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Right Click on the last geoprocessing results and choose Share as Geoprocessing Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Following the publishing of your geoprocessing service, you can add this into your silverlight application as a tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------------------------------&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 19:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296620#M8765</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-04-14T19:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool works in Desktop but fails in Web,</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296621#M8766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps try to run the tool from the GP service's REST endpoint: if it fails here, examine the GP service. If it succeeds, the problem is in your client app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might also want to look at client logs (I believe this is available in the latest Flex release) and ArcGIS Server logs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 13:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296621#M8766</guid>
      <dc:creator>RobertJones2</dc:creator>
      <dc:date>2013-04-15T13:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool works in Desktop but fails in Web,</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296622#M8767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Original User: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Jamal432@gmail.com"&gt;Jamal432@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Perhaps try to run the tool from the GP service's REST endpoint: if it fails here, examine the GP service. If it succeeds, the problem is in your client app.&lt;BR /&gt;&lt;BR /&gt;You might also want to look at client logs (I believe this is available in the latest Flex release) and ArcGIS Server logs.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Robert for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It fails to work from GP service! I got the log details below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23515[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how does it work on the desktop but not as service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23516[/ATTACH], [ATTACH=CONFIG]23518[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How might this issue be overcome?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was really struggling since long time ago with this issue and couldn�??t find any solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I�??m not a developer to play with the code of the tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggestions are highly appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296622#M8767</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-15T17:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool works in Desktop but fails in Web,</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296623#M8768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This really isn't a developer-y problem at all:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23548[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23549[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That tool requires an advanced license, which you have on desktop but not server..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 13:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296623#M8768</guid>
      <dc:creator>RobertJones2</dc:creator>
      <dc:date>2013-04-16T13:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool works in Desktop but fails in Web,</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296624#M8769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Original User: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Jamal432@gmail.com"&gt;Jamal432@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This really isn't a developer-y problem at all:&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]23548[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]23549[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;That tool requires an advanced license, which you have on desktop but not server..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Robert for the answer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct, in the python script, the �??feature to point�?� tool requires advanced license level&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23577[/ATTACH], [ATTACH=CONFIG]23578[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 18:29:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296624#M8769</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-17T18:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool works in Desktop but fails in Web,</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296625#M8770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This really isn't a developer-y problem at all:&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]23548[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]23549[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;That tool requires an advanced license, which you have on desktop but not server..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to get an evaluation copy for the ArcGIS Server Advanced and the tool worked like a charm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/78352-Displaying-more-than-one-%28x-y%29-point?p=295355#post295355"&gt;http://forums.arcgis.com/threads/78352-Displaying-more-than-one-%28x-y%29-point?p=295355#post295355&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 May 2013 13:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/python-script-tool-works-in-desktop-but-fails-in/m-p/296625#M8770</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-05-04T13:00:39Z</dc:date>
    </item>
  </channel>
</rss>

