<?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: GP Service Publishing Issue in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27118#M976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes just gp services. Pretty basic error messages.&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="text-align: left; color: #505051; text-indent: 0px; background-color: #cee6fa;"&gt;FieldMappings: Error in adding table to field mappings Failed to execute (ImportWildfirePerim). Failed to execute (ImportWildfirePerim)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned before, it is all about the sde location variable created when publishing the service. If i hard code a correct location the service will run without issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Dec 2014 16:56:07 GMT</pubDate>
    <dc:creator>BrianLeroux</dc:creator>
    <dc:date>2014-12-31T16:56:07Z</dc:date>
    <item>
      <title>GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27114#M972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When publishing a gp service to AGS server 10.22 my service is failing. It works fine in desktop though. It seems to be a problem with the sde connection file during the service creation. Taking a look at the script uploaded to the v101 folder, the esri added variable looks like g_ESRI_variable_1 = u'..\\..\\..\\..\\..\\GP_Tools\\Database Connections\\GISDB_ArcSDE(PROD Server).sde'. This path is modified from my original path to the sde connection file on my computer Shakemap_Table_Target = os.path.join("D:\\agsResources\\GP_Tools\\GISDB_ArcSDE(PROD Server).sde", "ArcSDE.dbo.EQ_SHAKEMAPS").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When debugging, AGS Server can't seem to locate that location. Is this a known bug or something I may be doing incorrectly? I am able to fix the problems by modifying the script to point that variable at a server location where i store the sde files but I am wondering if there is a better solution. I have to jump through hoops to get access to the uploaded scripts on my production server and would rather this just work when publishing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i appreciate any and all feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 14:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27114#M972</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2014-12-31T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27115#M973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you publish map services successfully, or do they fail also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 15:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27115#M973</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-31T15:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27116#M974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no issues publishing map services that reference my sde DB. The sde DB is registered properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 16:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27116#M974</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2014-12-31T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27117#M975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the issue is exclusively with gp services.&amp;nbsp; What does the AGS Server log say?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 16:42:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27117#M975</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-31T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27118#M976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes just gp services. Pretty basic error messages.&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="text-align: left; color: #505051; text-indent: 0px; background-color: #cee6fa;"&gt;FieldMappings: Error in adding table to field mappings Failed to execute (ImportWildfirePerim). Failed to execute (ImportWildfirePerim)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned before, it is all about the sde location variable created when publishing the service. If i hard code a correct location the service will run without issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 16:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27118#M976</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2014-12-31T16:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27119#M977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;I'm sure you are already doing something similar, I always use sde connection files that are located in my data-store directory and never have issues publishing any type of services.&amp;nbsp; In our distributed 3-machine 2-cluster architecture, our server directories are located on a file share server, where our domain arcgisserver account has read write access to all directories and all directories are shared. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under the data-store folder, we use a DataConnections folder to house sde connection files and file geodatabases, and a GpServices folder to store toolboxes and python scripts.&amp;nbsp; This way I am always sure everything is in a shared location.&amp;nbsp; I also use UNC paths and although server complains about that at analzye, I never then have any issues with a resource not being read or otherwise not being available to Server.....hope this helps&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 17:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27119#M977</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2014-12-31T17:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27120#M978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;We only have 1 live gis server and the directories are all local on that server. I am not allowed to access anything on that server but the server domain account has R/W access to eveything. So that means I have to publish using a local sde connection file. With map services this is fine as the DB is registered with the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to talk to the server team to see if we can look at a similar apprach to yours where we would move the directories to a shared location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question I have for you is, when you publish a GP service with your UNC path to an sde file, does esri add variables that point to the location of these files? I am curious is they are recognizingnetwork paths and not changing those but if it sees a local path it makes modifications. Looking at the variables created it seems like the sde file should be copied with the service but that is not happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 14:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27120#M978</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2015-01-02T14:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27121#M979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does esri add variables?&amp;nbsp; I'm not sure what you mean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 16:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27121#M979</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2015-01-05T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27122#M980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They do. If i look at the python scripts after publishing I notice new variables g_ESRI_variable_1, g_ESRI_variable_2, etc... You would notice them at the top of the python script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I wrote in my initial post describing my issue.&lt;/P&gt;&lt;P&gt;"Taking a look at the script uploaded to the v101 folder, the esri added variable looks like g_ESRI_variable_1 = u'..\\..\\..\\..\\..\\GP_Tools\\Database Connections\\GISDB_ArcSDE(PROD Server).sde'. This path is modified from my original path to the sde connection file on my computer Shakemap_Table_Target = os.path.join("D:\\agsResources\\GP_Tools\\GISDB_ArcSDE(PROD Server).sde", "ArcSDE.dbo.EQ_SHAKEMAPS")."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 16:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27122#M980</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2015-01-05T16:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27123#M981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I understand.&amp;nbsp; I'll check and reply back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 17:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27123#M981</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2015-01-05T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27124#M982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, arcgis is adding variables to the python scripts created in the v101 folder of the arcgisinput system directory, as well as copying over sde connection file(s) as is the case with the data extract tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to me it makes sense that arcgis would have to add a string variable to handle the change in location of the source connection.&amp;nbsp;&amp;nbsp; To me, if you are still having issues, then look to a share or security issue with your domain account and associated directories. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 18:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27124#M982</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2015-01-05T18:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27125#M983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David - Thank you for the information. Knowing that the connection files are being copied over for you gives me some direction for troubleshooting. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 20:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27125#M983</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2015-01-05T20:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: GP Service Publishing Issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27126#M984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brian.&lt;/P&gt;&lt;P&gt;Now I am sitting in the same situation as you did two&amp;nbsp;years ago. I would like to know if you found a better solution than changing the path in the published script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Søren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 12:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/gp-service-publishing-issue/m-p/27126#M984</guid>
      <dc:creator>SørenNielsen</dc:creator>
      <dc:date>2017-01-16T12:06:49Z</dc:date>
    </item>
  </channel>
</rss>

