<?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: Adding Features to layer error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/adding-features-to-layer-error/m-p/800671#M2041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the issue, The features layer had user attributes which were "&lt;EM style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;esriFieldTypeGUID" &lt;/EM&gt;and if you leave them null, but leave them in the&lt;EM style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt; "attributes" &lt;/EM&gt;while adding them , then it throws this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2019 12:07:35 GMT</pubDate>
    <dc:creator>OisinSlevin</dc:creator>
    <dc:date>2019-01-18T12:07:35Z</dc:date>
    <item>
      <title>Adding Features to layer error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/adding-features-to-layer-error/m-p/800670#M2040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;I keep running into this issue when trying to add polygons to my feature layer,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My code basically pulls down a feature from a layer,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;modifies some of the text fields&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;then attempts to upload the feature to a different feature layer&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The same code works fine for line and point geometry data&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I also strip out any fields that are auto populated ex GlobalID and OBJECTID so this unique identifier is not something I feed in.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an_object={&lt;BR /&gt; "geometry":object.SHAPE,&lt;BR /&gt; "attributes":attributes &lt;BR /&gt; }&lt;BR /&gt; add_result=some_layers[6].edit_features(adds=[&lt;SPAN&gt;an_object&lt;/SPAN&gt;])&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{'addResults': [{'objectId': None, 'uniqueId': None, 'globalId': '09846522-E815-405F-98C5-22991AA70D59', 'success': False, 'error': {'code': 1000, 'description': 'Conversion failed when converting from a character string to &lt;STRONG&gt;uniqueidentifier.&lt;/STRONG&gt;'}}], 'updateResults': [], 'deleteResults': []}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 14:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/adding-features-to-layer-error/m-p/800670#M2040</guid>
      <dc:creator>OisinSlevin</dc:creator>
      <dc:date>2019-01-17T14:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Features to layer error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/adding-features-to-layer-error/m-p/800671#M2041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the issue, The features layer had user attributes which were "&lt;EM style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;esriFieldTypeGUID" &lt;/EM&gt;and if you leave them null, but leave them in the&lt;EM style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt; "attributes" &lt;/EM&gt;while adding them , then it throws this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 12:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/adding-features-to-layer-error/m-p/800671#M2041</guid>
      <dc:creator>OisinSlevin</dc:creator>
      <dc:date>2019-01-18T12:07:35Z</dc:date>
    </item>
  </channel>
</rss>

