<?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: Calling ArcGIS Pro Python  from ArcGIS Server 10.6.1 fails with --  ImportError: DLL load failed: The specified procedure coul in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/calling-arcgis-pro-python-from-arcgis-server-10-6/m-p/1103651#M527</link>
    <description>&lt;P&gt;Hi - I'm trying to do something similar and wondering if you were ever able to find a solutions for this. Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 18:05:54 GMT</pubDate>
    <dc:creator>PatSmyth</dc:creator>
    <dc:date>2021-09-30T18:05:54Z</dc:date>
    <item>
      <title>Calling ArcGIS Pro Python  from ArcGIS Server 10.6.1 fails with --  ImportError: DLL load failed: The specified procedure coul</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/calling-arcgis-pro-python-from-arcgis-server-10-6/m-p/1014184#M286</link>
      <description>&lt;P&gt;We are calling ArcGIS Pro 2.6 python from ArcGIS Server 10.6.1 GP Service through pythons subprocess library and batch file. It resulted in following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packag&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;es\arcgisscripting\__init__.py", line 128, in &amp;lt;module&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from ._arcgisscripting import *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ImportError: DLL load failed: The specified procedure could not be found&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Basically, the steps are&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;GP Initiated through REST service call&lt;/LI&gt;&lt;LI&gt;GP calls a batch file through python SubProcess (import subprocess and popen method)&lt;/LI&gt;&lt;LI&gt;The batch file triggers another python file using ArcGIS Pro Python like ""C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python" &amp;lt;python file path&amp;gt;/intersect.py (while running the python script, it&amp;nbsp; fails at import arcpy statement&amp;nbsp;ImportError: DLL load failed: The specified procedure could not be found). Detailed error is&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;import arcpy&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 74,&lt;BR /&gt;in &amp;lt;module&amp;gt;&lt;BR /&gt;from arcpy.geoprocessing import gp&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__&lt;BR /&gt;.py", line 14, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._base import *&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py&lt;BR /&gt;", line 14, in &amp;lt;module&amp;gt;&lt;BR /&gt;import arcgisscripting&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packa&lt;BR /&gt;ges\arcgisscripting\__init__.py", line 128, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._arcgisscripting import *&lt;BR /&gt;ImportError:&amp;nbsp;&lt;STRONG&gt;DLL load failed: The specified procedure could not be found.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Earlier the same above steps were working with ArcGIS Pro 2.1 and ArcGIS Server 10.3.1.&amp;nbsp; The same not working after upgrading to ArcGIS Pro 2.6 and ArcGIS Server 10.6.1&lt;/U&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Server machine has following softwares now:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;ArcGIS Desktop 10.6.1&lt;/LI&gt;&lt;LI&gt;ArcGIS Server 10.6.1&lt;/LI&gt;&lt;LI&gt;ArcGIS Pro 2.6&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Kindly help to resolve this issue.&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 06:25:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/calling-arcgis-pro-python-from-arcgis-server-10-6/m-p/1014184#M286</guid>
      <dc:creator>Nandha_KumarMahadevan</dc:creator>
      <dc:date>2021-01-06T06:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ArcGIS Pro Python  from ArcGIS Server 10.6.1 fails with --  ImportError: DLL load failed: The specified procedure coul</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/calling-arcgis-pro-python-from-arcgis-server-10-6/m-p/1103651#M527</link>
      <description>&lt;P&gt;Hi - I'm trying to do something similar and wondering if you were ever able to find a solutions for this. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 18:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/calling-arcgis-pro-python-from-arcgis-server-10-6/m-p/1103651#M527</guid>
      <dc:creator>PatSmyth</dc:creator>
      <dc:date>2021-09-30T18:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ArcGIS Pro Python  from ArcGIS Server 10.6.1 fails with --  ImportError: DLL load failed: The specified procedure coul</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/calling-arcgis-pro-python-from-arcgis-server-10-6/m-p/1164285#M683</link>
      <description>&lt;P&gt;Not sure if this is relevant, but a similar error occurs if FME Server uses a python 2.7 interpreter to import arcpy when ArcGIS Server is installed on the same server. A python 3.x interpreter needs to be used. Check your python environment and system variables to make sure Python 3.x is being used. (and in the case of FME Server, double check to make sure any FME Workbenches that are being executed are configured to use Python 3.x).&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 07:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/calling-arcgis-pro-python-from-arcgis-server-10-6/m-p/1164285#M683</guid>
      <dc:creator>JohnAnderson1</dc:creator>
      <dc:date>2022-04-14T07:22:24Z</dc:date>
    </item>
  </channel>
</rss>

