<?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: java.lang.Exception - Could not service request error obtained on using arcpy.mp.LayerFile in geoprocessing Tool on ArcGIS Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/java-lang-exception-could-not-service-request/m-p/1291088#M67685</link>
    <description>&lt;P&gt;I've same issue with :&lt;/P&gt;&lt;P&gt;# Apply the symbology from the symbology layer to the input layer&lt;BR /&gt;arcpy.ApplySymbologyFromLayer_management (output, os.path.join(path,mylyr))&lt;/P&gt;&lt;P&gt;I received java.lang.Exception error only in geoprocessing service execution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DamianoMontrasio_0-1684509473322.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71166iDB85E1FBEE4C7A49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DamianoMontrasio_0-1684509473322.png" alt="DamianoMontrasio_0-1684509473322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Work fine in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 15:18:52 GMT</pubDate>
    <dc:creator>DamianoMontrasio</dc:creator>
    <dc:date>2023-05-19T15:18:52Z</dc:date>
    <item>
      <title>java.lang.Exception - Could not service request error obtained on using arcpy.mp.LayerFile in geoprocessing Tool on ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/java-lang-exception-could-not-service-request/m-p/1077616#M61700</link>
      <description>&lt;P&gt;I'm using arcpy.mp.LayerFile() to read a .lyrx file to further obtain the symbology object of an active layer in the template lyrx file. This symbology is then used to generate a new lyrx for another file.&lt;/P&gt;&lt;P&gt;Now this script works perfectly fine when used as a geoprocessing Tool in ArcGIS Pro or as a stand-alone script working on Windows Task scheduler but it fails to work as a hosted geoprocessing tool on ArcGIS Server 10.7.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 20:55:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/java-lang-exception-could-not-service-request/m-p/1077616#M61700</guid>
      <dc:creator>SarthakBhatia1</dc:creator>
      <dc:date>2021-07-11T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.Exception - Could not service request error obtained on using arcpy.mp.LayerFile in geoprocessing Tool on ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/java-lang-exception-could-not-service-request/m-p/1291088#M67685</link>
      <description>&lt;P&gt;I've same issue with :&lt;/P&gt;&lt;P&gt;# Apply the symbology from the symbology layer to the input layer&lt;BR /&gt;arcpy.ApplySymbologyFromLayer_management (output, os.path.join(path,mylyr))&lt;/P&gt;&lt;P&gt;I received java.lang.Exception error only in geoprocessing service execution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DamianoMontrasio_0-1684509473322.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71166iDB85E1FBEE4C7A49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DamianoMontrasio_0-1684509473322.png" alt="DamianoMontrasio_0-1684509473322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Work fine in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 15:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/java-lang-exception-could-not-service-request/m-p/1291088#M67685</guid>
      <dc:creator>DamianoMontrasio</dc:creator>
      <dc:date>2023-05-19T15:18:52Z</dc:date>
    </item>
  </channel>
</rss>

