<?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 append: Object reference not set to an instance of an object (code 400) in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-object-reference-not-set-to-an-instance-of/m-p/1205138#M4248</link>
    <description>&lt;P&gt;I'm trying to append a file gdb to a feature layer on arcgis online (&lt;A href="https://community.esri.com/t5/arcgis-rest-api-questions/copy-attachments-from-one-feature-layer-to-another/m-p/1202511" target="_self"&gt;because I want to merge them and keep the attachments and I think this is the only way&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;The gdb to append is a copy of a feature layer already on agol (exported as a fgdb). The destination feature layer is also a copy of a feature layer (exported as a fgdb and then republished).&lt;/P&gt;&lt;P&gt;I can append the gdb through the interface successfully, however I wish to do this automatically via the REST API.&amp;nbsp;I keep getting a&amp;nbsp;code 400 with the message "Object reference not set to an instance of an object.".&lt;/P&gt;&lt;P&gt;I have read here and there that this may be a problem with null values. I also thought the problem may be that some fields have a list of required values (domain), so I deleted those and&amp;nbsp;I have trimmed down the fields and rows of both tables (source and destination) to troubleshoot and I have now basically 2 small tables (of 25 and 18 rows) with only the basic rows: FID, GlobalID, CreationDate, Creator, EditDate, Editor, t_id (another ID field that references another table) and attachments.&lt;BR /&gt;&lt;BR /&gt;I have tried specifying the upsert parameter to false, selecting only 1 field with fieldMappings and appendFields, but always getting the same error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What else can I check?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 20:02:32 GMT</pubDate>
    <dc:creator>mikaël</dc:creator>
    <dc:date>2022-08-22T20:02:32Z</dc:date>
    <item>
      <title>append: Object reference not set to an instance of an object (code 400)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-object-reference-not-set-to-an-instance-of/m-p/1205138#M4248</link>
      <description>&lt;P&gt;I'm trying to append a file gdb to a feature layer on arcgis online (&lt;A href="https://community.esri.com/t5/arcgis-rest-api-questions/copy-attachments-from-one-feature-layer-to-another/m-p/1202511" target="_self"&gt;because I want to merge them and keep the attachments and I think this is the only way&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;The gdb to append is a copy of a feature layer already on agol (exported as a fgdb). The destination feature layer is also a copy of a feature layer (exported as a fgdb and then republished).&lt;/P&gt;&lt;P&gt;I can append the gdb through the interface successfully, however I wish to do this automatically via the REST API.&amp;nbsp;I keep getting a&amp;nbsp;code 400 with the message "Object reference not set to an instance of an object.".&lt;/P&gt;&lt;P&gt;I have read here and there that this may be a problem with null values. I also thought the problem may be that some fields have a list of required values (domain), so I deleted those and&amp;nbsp;I have trimmed down the fields and rows of both tables (source and destination) to troubleshoot and I have now basically 2 small tables (of 25 and 18 rows) with only the basic rows: FID, GlobalID, CreationDate, Creator, EditDate, Editor, t_id (another ID field that references another table) and attachments.&lt;BR /&gt;&lt;BR /&gt;I have tried specifying the upsert parameter to false, selecting only 1 field with fieldMappings and appendFields, but always getting the same error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What else can I check?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 20:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-object-reference-not-set-to-an-instance-of/m-p/1205138#M4248</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2022-08-22T20:02:32Z</dc:date>
    </item>
  </channel>
</rss>

