<?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: Publishing survey causes error 500 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publishing-survey-causes-error-500/m-p/1606593#M11325</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/350353"&gt;@CarstenAndersson&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you clone your arcgispro-py3 environment and upgrade your arcgis package to the latest &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/announcement-arcgis-api-for-python-v2-4-1-has-been/m-p/1605758#M11317" target="_self"&gt;2.4.1 version&lt;/A&gt;. Are you able to successfully publish in 2.4.1?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 17:30:06 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2025-04-16T17:30:06Z</dc:date>
    <item>
      <title>Publishing survey causes error 500</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publishing-survey-causes-error-500/m-p/1604122#M11308</link>
      <description>&lt;P&gt;I'm getting an error when I call the following:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;survey_manager&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;SurveyManager&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;gis&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;survey&lt;/SPAN&gt; &lt;SPAN&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;survey_manager&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;create&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt;&lt;SPAN&gt;="Accommodation_inspection"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;survey&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;publish&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;excel_file&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;create_web_form&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;enable_sync&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;create_web_map&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;schema_changes&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The gis variable is an instance of GIS connected with user that has capability to create and publish surveys&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The Excel file used can be opened with Survey123 Connect application and validated&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've tried several things, eg. using a predefined info dictionary and setting the arguments for the publish arguments, but with same result.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The error is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;{'code': 500, 'message': "Spatial reference of layer 'Accommodation_inspection' must be the same as defined by the service.", 'details': []}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've debugged within the Python library and it looks like it's hardcoded using default wkid 102100. But this is deprecated, so I don't understand why this is used. See in file&amp;nbsp;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\apps\survey123\_publish_functions.py line 802&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help is greatly appreciated&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Apr 2025 10:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publishing-survey-causes-error-500/m-p/1604122#M11308</guid>
      <dc:creator>CarstenAndersson</dc:creator>
      <dc:date>2025-04-09T10:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing survey causes error 500</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publishing-survey-causes-error-500/m-p/1606593#M11325</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/350353"&gt;@CarstenAndersson&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you clone your arcgispro-py3 environment and upgrade your arcgis package to the latest &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/announcement-arcgis-api-for-python-v2-4-1-has-been/m-p/1605758#M11317" target="_self"&gt;2.4.1 version&lt;/A&gt;. Are you able to successfully publish in 2.4.1?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 17:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publishing-survey-causes-error-500/m-p/1606593#M11325</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2025-04-16T17:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing survey causes error 500</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publishing-survey-causes-error-500/m-p/1608375#M11337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/251557"&gt;@ZacharySutherby&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Thanks for the reply. I will try it out today and see if it fixes the problem.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Carsten&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 07:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publishing-survey-causes-error-500/m-p/1608375#M11337</guid>
      <dc:creator>CarstenAndersson</dc:creator>
      <dc:date>2025-04-23T07:15:06Z</dc:date>
    </item>
  </channel>
</rss>

