<?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 geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder' in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1048734#M29979</link>
    <description>&lt;P&gt;I have a geoprocessing tool that at the end exports points to a DWG-file, it's based on my own python script. It worked with ArcGIS Server 10.6.1, but when trying it with ArcGIS Enterprise 10.8.1 it doesn't work. I can run the tool in ArcMap and publish it succesfully to my server, but when running my geoprocessing service it fails and give me the error:&lt;/P&gt;&lt;P&gt;Error executing tool. Hojddata_till_DWG Job ID: jfcd1dee1b2364e73a10d9d90f4e5ef9b : Traceback (most recent call last): File "E:\arcgisserver\directories\arcgissystem\arcgisinput\Verktyg\Hojddata2dwg2.GPServer\extracted\v101\my_toolboxes\Export_Hojddata_to_DWG.py", line 24, in &amp;lt;module&amp;gt; arcpy.env.workspace = arcpy.arcpy.env.packageWorkspace.scratchFolder AttributeError: 'unicode' object has no attribute 'scratchFolder' Failed to execute (Hojddata2dwg). Failed to execute (Hojddata_till_DWG).&lt;/P&gt;&lt;P&gt;So I guess it has something with the scratchfolder to do, any ideas how to solve this?&lt;/P&gt;&lt;P&gt;The part of my python script that makes the dwg-export looks like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;filename = "Hojdpunkter.dwg"
arcpy.ExportCAD_conversion(GridpointsZ, "DWG_R2010", filename)
outputFile = os.path.join(arcpy.env.scratchFolder, filename)  
arcpy.SetParameterAsText(2, outputFile)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Has anything changed&amp;nbsp; between 10.6.1. and 10.8.1 of ArcGIS Server when it comes to scratchFolders or geoprocessing outputs?&lt;/P&gt;&lt;P&gt;Or is it me that has forgot how to properly publish a geoprocessing tool? I have set the parameters and the third one to be 'output' and 'data file'.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 14:47:59 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2021-04-19T14:47:59Z</dc:date>
    <item>
      <title>geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1048734#M29979</link>
      <description>&lt;P&gt;I have a geoprocessing tool that at the end exports points to a DWG-file, it's based on my own python script. It worked with ArcGIS Server 10.6.1, but when trying it with ArcGIS Enterprise 10.8.1 it doesn't work. I can run the tool in ArcMap and publish it succesfully to my server, but when running my geoprocessing service it fails and give me the error:&lt;/P&gt;&lt;P&gt;Error executing tool. Hojddata_till_DWG Job ID: jfcd1dee1b2364e73a10d9d90f4e5ef9b : Traceback (most recent call last): File "E:\arcgisserver\directories\arcgissystem\arcgisinput\Verktyg\Hojddata2dwg2.GPServer\extracted\v101\my_toolboxes\Export_Hojddata_to_DWG.py", line 24, in &amp;lt;module&amp;gt; arcpy.env.workspace = arcpy.arcpy.env.packageWorkspace.scratchFolder AttributeError: 'unicode' object has no attribute 'scratchFolder' Failed to execute (Hojddata2dwg). Failed to execute (Hojddata_till_DWG).&lt;/P&gt;&lt;P&gt;So I guess it has something with the scratchfolder to do, any ideas how to solve this?&lt;/P&gt;&lt;P&gt;The part of my python script that makes the dwg-export looks like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;filename = "Hojdpunkter.dwg"
arcpy.ExportCAD_conversion(GridpointsZ, "DWG_R2010", filename)
outputFile = os.path.join(arcpy.env.scratchFolder, filename)  
arcpy.SetParameterAsText(2, outputFile)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Has anything changed&amp;nbsp; between 10.6.1. and 10.8.1 of ArcGIS Server when it comes to scratchFolders or geoprocessing outputs?&lt;/P&gt;&lt;P&gt;Or is it me that has forgot how to properly publish a geoprocessing tool? I have set the parameters and the third one to be 'output' and 'data file'.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 14:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1048734#M29979</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-04-19T14:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1048774#M29980</link>
      <description>&lt;P&gt;Have you set a scratchWorkspace? Where is the scratchFolder pointing at the moment (print)?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 16:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1048774#M29980</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-04-19T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1048811#M29983</link>
      <description>&lt;P&gt;&lt;SPAN&gt;arcpy.env.workspace = arcpy.arcpy.env.packageWorkspace.scratchFolder AttributeError: 'unicode' object has no attribute 'scratchFolder'&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The error message means that&amp;nbsp;arcpy.arcpy.env.packageWorkspace returns a string since the property is read only.&amp;nbsp; And it also means that the string has no attribute called scratchFolder, which a different arcpy.env environment parameter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/environments/package-workspace.htm" target="_blank"&gt;Package Workspace (Environment setting)—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this will get you in the general vicinity of all the various "folders" in the help table of contents.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 17:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1048811#M29983</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-19T17:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1049023#M29985</link>
      <description>&lt;P&gt;No I havn't set a scratchWorkspace, I want to use a deafult scratchWorkspace since I don't know what it is supposed to be on the server when running the geoprocessing task. This worked on my old server. When running the tool on my server from ArcMap (or as a standa alone script) It works fine and the scratchFolder is (C:\Users\...\AppData\Local\Temp\scratch).&lt;/P&gt;&lt;P&gt;Any tip on how I should print out the&amp;nbsp;scratchFolder when running the geoprocessing task on the server?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 09:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1049023#M29985</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-04-20T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1049047#M29986</link>
      <description>&lt;P&gt;I had the line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace = arcpy.env.scratchFolder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the beginning of my code, which caused the error. I don't have to set the workspace since every output is specified to in_memory except the last export to dwg which is supposed to write the file to a default scratchFolder. I removed that line of code and don't get any errors. How ever there is still something wrong with my output, there is no dwg-file created.&lt;/P&gt;&lt;P&gt;I looked at my old working geoprocessing task in the rest service director and can see that I have one required input parameter with DataType: GPString (called Extent because it takes a string with an extent).&lt;BR /&gt;And one output parameter with DataType: GPDatafile.&lt;/P&gt;&lt;P&gt;But in my new task on the new server I have the same input parameter but the output parameter also has DataType:&amp;nbsp;GPString&amp;nbsp; and I guess that's the problem. I've med a few tries and sometimes I don't get an output parameter at all.&lt;/P&gt;&lt;P&gt;How should I configure my output parameter when I add the script in ArcMap? And when I publish the tool as a Geoprocessing service? I've attached a coulpe of screenshots of what I thought would be the correct cofiguration (there is no option to choose GPDataFile, only DataFile).&lt;/P&gt;&lt;P&gt;But with this configuration I don't get an output parameter at all in my task when looking at it in teh rest service directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Task: export_dwg
Display Name: export_dwg
Description: Exports elevationdata to DWG
Execution Type: esriExecutionTypeSynchronous
Parameters:
    Parameter: Extent
        Data Type: GPString
        Display Name Extent
        Description: Extent to export
        Direction: esriGPParameterDirectionInput
        Dependency:
        Default Value: 146541 6350597 146641 6350665
        Parameter Type: esriGPParameterTypeRequired
        Category:

Supported Operations:   Execute Task &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 12:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1049047#M29986</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-04-20T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1049549#M29988</link>
      <description>&lt;P&gt;Turned out I had med output parameter configured wrong, it should be File and not DataFile that I used.&lt;/P&gt;&lt;P&gt;Now my geoprocessing task kind of work. But it gives a path to disk instead of a valid URL, which makes it useless.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1049549#M29988</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-04-21T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1057878#M30177</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6134"&gt;@MattiasEkström&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;- Man, I was really hopeful when I read Matthias' line&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;It worked with ArcGIS Server 10.6.1, but when trying it with ArcGIS Enterprise 10.8.1 it doesn't work.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Having the same issue with GP Process not working after upgrading to Server 10.8.1 and applying all patches. But it still fails. I've narrowed it down to the line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;layout.exportToPDF(...)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;When we get there, GP service bombs without any Python error in&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;arcgisjobs/../...gpserver/...some jobid .../scratch/messages.xml&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I'm not used to seeing that. Usually the errors here help you fix your logic. Instead of a Python error, I get a Windows error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Faulting application name: ArcSOC.exe, version: 12.6.0.24234, time stamp: 0x5ee81bca
Faulting module name: MappingCore.dll, version: 12.6.0.24241, time stamp: 0x5f8883dd
Exception code: 0xc0000005
Fault offset: 0x000000000049cfa4
&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;My first&amp;nbsp; guess was it'd be a Python 2.x/3.x thing. I know there are some new features in 10.8.1. But all my imports are working fine. I can create an APRX from JSON using arcpy.mp with no issues.&lt;/P&gt;&lt;P&gt;This was published first from Pro 2.6.3, then at the suggestion of ESRI, after upgrading, from Pro 2.7.3. Still the same error.&lt;/P&gt;&lt;P&gt;Dan, adding you in here because you've been a life savor before. Ever seen that kind of DLL thing before. Is it Python? Is it AGS? I've checked all my AGS account permissions. No scratch folder issues. Paths all my sense. Looks something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;E:\arcgisserver\directories\arcgisjobs\..\.._gpserver\jf86961dfcf734510b848834890dc0e55\scratch\mylousyfilethatwontprint.pdf&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Any pointers or thoughts appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 22:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1057878#M30177</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-05-13T22:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1057888#M30178</link>
      <description>&lt;P&gt;ArcSoc.exe and MappingCore.dll certainly aren't windows things and sorry&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237415"&gt;@Arne_Gelfert&lt;/a&gt;&amp;nbsp;I am fortunate to only have to deal with local in my work &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 22:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1057888#M30178</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-05-13T22:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1058040#M30179</link>
      <description>&lt;P&gt;Not sure what you mean by "not windows things"... but thanks for the reply. If you're retired, gee, you will be missed! Have a good weekend!&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 14:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1058040#M30179</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-05-14T14:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1058060#M30181</link>
      <description>&lt;P&gt;C:...Your-install-folder\bin\MappingCore.dll .... didn't check for the other but it has "Arc..." in it&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1058060#M30181</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-05-14T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1058116#M30182</link>
      <description>&lt;P&gt;Ahh... I see what you mean. What I intended to say was that I see those lines in the Windows application log via Event Viewer on server.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 17:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1058116#M30182</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-05-14T17:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1059954#M30225</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237415"&gt;@Arne_Gelfert&lt;/a&gt;&amp;nbsp;Hard to tell if we have the same problem or not. I our case we didn't uppgrade from 10.6 to 10.8.1 since we have a new server with a new installation of ArcGIS Enterprise. I'm not entirely sure I'm publishing my script exact the same way I did when it worked at 10.6, but I've tried so many ways that one of them should have been the same, my inital problem was a line in my python-script that I could remove. Now my problem is that no file is exported from the script, or in some cases it does but the GP-service doesn't return an url to it.&lt;/P&gt;&lt;P&gt;Now I'm trying with a new model created in Pro, but have the same issues.&lt;/P&gt;&lt;P&gt;I have a ticket with the support at Esri Sweden, if we find something that can be helpful for you I'll let you know.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 14:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1059954#M30225</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-05-20T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1060140#M30237</link>
      <description>&lt;P&gt;Appreciate it, Mattias. Yes, it sounds like our situations are somewhat different.&lt;/P&gt;&lt;P&gt;By now, I have a ticket open as well. I have picked my setup apart, and everything is working except the line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;layout.exportToPDF( ... )&lt;/LI-CODE&gt;&lt;P&gt;Layout is fine, so is the path I'm exporting to. But things still bomb. I've ruled all kinds of variations on the publishing and scratchFolder/scratchWorkspace theme. I've seen so many fixes in the Pro/Server release note related to "PDF,export, layout", I'm starting to think there is another one lurking in there ! Stay tuned...&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 19:13:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1060140#M30237</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-05-20T19:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocessing tool fails at 10.8.1, object has no attribute 'scratchFolder'</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1063234#M30364</link>
      <description>&lt;P&gt;I marked Dans answer as the solution because it helpt me fix the first issue, that teh first error message was about.&lt;/P&gt;&lt;P&gt;Then I got help from ESRI Sweden support to finally get my GP-task working,&amp;nbsp;we tested lots of different variants on setting output variable in my python script until we figured out it should be&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#filename = "Hojdpunkter.dwg"
outputFile = os.path.join(arcpy.env.scratchWorkspace, "Hojdpunkter.dwg")
arcpy.ExportCAD_conversion(GridpointsZ, "DWG_R2010", outputFile)
arcpy.SetParameterAsText(2, outputFile)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead of my original code (that worked in our old 10.6, but not in our new 10.8.1)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;filename = "Hojdpunkter.dwg"
arcpy.ExportCAD_conversion(GridpointsZ, "DWG_R2010", filename)
outputFile = os.path.join(arcpy.env.scratchFolder, filename)  
arcpy.SetParameterAsText(2, outputFile)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;problably won't help you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237415"&gt;@Arne_Gelfert&lt;/a&gt;&amp;nbsp; with your problem, but maybe someone else that find this thread later on.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 06:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-fails-at-10-8-1-object-has-no/m-p/1063234#M30364</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-05-31T06:56:21Z</dc:date>
    </item>
  </channel>
</rss>

