<?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 Add Features at REST in Chunks in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1372705#M9556</link>
    <description>&lt;P&gt;I am trying to add Features to a Feature Service via REST... previous to this I was trying to delete them and have this post... Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/97885"&gt;@JRhodes&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/grab-sections-of-service-to-process/m-p/1372556#M9552" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/grab-sections-of-service-to-process/m-p/1372556#M9552&lt;/A&gt;&lt;BR /&gt;NOTE:&amp;nbsp; I am writing&lt;U&gt; from&lt;/U&gt; my &lt;U&gt;AGOL&lt;/U&gt; Enterprise Hosted Feature Layer &lt;U&gt;to an SDE Oracle Feature Clas&lt;/U&gt;s via the Rest Endpoint Feature Service...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why Im erroring out?&lt;/P&gt;&lt;P&gt;Note im reading a dictionary for the AGOL address and then the second key is the REST feature service I want to write to....(sourceFC and targetFC)&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;layers_to_append2 = {
"https://services.arcgis.com/p5x3l7/arcgis/rest/services/Inventory/FeatureServer/8/query?sublayer=8" : "https://xxx.gov/env/rest/services/DEV/DEV/FeatureServer/8"
}

def appendLayers2():
    for layer in layers_to_append2.keys():
        sourceFC = layer
        targetFC = layers_to_append2[layer]
        where_clause = "1=1" 
        batch_size = 2000
        arcpy.env.preserveGlobalIds = True

        query_url = f"{sourceFC}&amp;amp;where={where_clause}&amp;amp;returnIdsOnly=true&amp;amp;f=json&amp;amp;token={agoltoken}"
        query_result = requests.get(query_url).json()

        object_ids = query_result.get("objectIds", [])
        print(object_ids)

        if not object_ids:
            break  # No more features to delete
        for i in range(0, len(object_ids), batch_size):
            batch_ids = object_ids[i:i + batch_size]
            where_clause_with_ids = f"{where_clause} AND OBJECTID &amp;gt;= {min(batch_ids)} AND OBJECTID &amp;lt;= {max(batch_ids)}"
            print(where_clause_with_ids)
                
            add_params = {
                'where': where_clause_with_ids,
                'f': 'json',
                'rollbackOnFailure': True,
                'token': portaltoken
            }
            print(add_params)
            print("")

            response = requests.post(f"{targetFC}/addFeatures", data=add_params)

            add_result = response.json()
            if 'addResults' in add_result:
                added_features = add_result['addResults']
                for feature in added_features:
                    if 'success' in feature and feature['success']:
                        print(f"Add feature with objectId {feature['objectId']}")
                    else:
                        print(f"Failed to add feature with objectId {feature['objectId']}")
            else:
                print(f"Error adding features. Response: {add_result}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason it wont write... Do I need to add a "Features" json string to the 'add_params' data load...Looks like the query of the AGOL Feature Layer works as there are only 5 records..BUT the post to add them to the Rest Endpoint errors????&lt;/P&gt;&lt;P&gt;ERROR:&lt;/P&gt;&lt;P&gt;Starting to append: &lt;A href="https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8" target="_blank"&gt;https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8/query?where=1=1&amp;amp;sublayer=0&amp;amp;returnIdsOnly=true&amp;amp;f=json&amp;amp;token=wErLJwbDhStxHwstlxyDjKkRSgze-g91Yh9R9PPgzv9GrZfuWuxxxZlKCedGYufGzHZEkl6CAJ5X9Q" target="_blank"&gt;https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8/query?where=1=1&amp;amp;sublayer=0&amp;amp;returnIdsOnly=true&amp;amp;f=json&amp;amp;token=wErLJwbDhStxHwstlxyDjKkRSgze-g91Yh9R9PPgzv9GrZfuWuxxxZlKCedGYufGzHZEkl6CAJ5X9Q&lt;/A&gt;..&lt;BR /&gt;[1, 2, 3, 4, 5]&lt;BR /&gt;1=1 AND OBJECTID &amp;gt;= 1 AND OBJECTID &amp;lt;= 5&lt;BR /&gt;{'where': '1=1 AND OBJECTID &amp;gt;= 1 AND OBJECTID &amp;lt;= 5', 'f': 'json', 'rollbackOnFailure': True, 'token': 'K0rj4angx4nn3xF0-W0ppQVWdj2rHb27FfPzMKOr5lYCMhslxQ'}&lt;/P&gt;&lt;P&gt;Error adding features. Response: {'error': {'code': 500, 'message': 'Unable to complete operation.', 'details': ['Parser error: Some parameters could not be recognized.']}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jan 2024 00:50:37 GMT</pubDate>
    <dc:creator>kapalczynski</dc:creator>
    <dc:date>2024-01-21T00:50:37Z</dc:date>
    <item>
      <title>Add Features at REST in Chunks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1372705#M9556</link>
      <description>&lt;P&gt;I am trying to add Features to a Feature Service via REST... previous to this I was trying to delete them and have this post... Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/97885"&gt;@JRhodes&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/grab-sections-of-service-to-process/m-p/1372556#M9552" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/grab-sections-of-service-to-process/m-p/1372556#M9552&lt;/A&gt;&lt;BR /&gt;NOTE:&amp;nbsp; I am writing&lt;U&gt; from&lt;/U&gt; my &lt;U&gt;AGOL&lt;/U&gt; Enterprise Hosted Feature Layer &lt;U&gt;to an SDE Oracle Feature Clas&lt;/U&gt;s via the Rest Endpoint Feature Service...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why Im erroring out?&lt;/P&gt;&lt;P&gt;Note im reading a dictionary for the AGOL address and then the second key is the REST feature service I want to write to....(sourceFC and targetFC)&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;layers_to_append2 = {
"https://services.arcgis.com/p5x3l7/arcgis/rest/services/Inventory/FeatureServer/8/query?sublayer=8" : "https://xxx.gov/env/rest/services/DEV/DEV/FeatureServer/8"
}

def appendLayers2():
    for layer in layers_to_append2.keys():
        sourceFC = layer
        targetFC = layers_to_append2[layer]
        where_clause = "1=1" 
        batch_size = 2000
        arcpy.env.preserveGlobalIds = True

        query_url = f"{sourceFC}&amp;amp;where={where_clause}&amp;amp;returnIdsOnly=true&amp;amp;f=json&amp;amp;token={agoltoken}"
        query_result = requests.get(query_url).json()

        object_ids = query_result.get("objectIds", [])
        print(object_ids)

        if not object_ids:
            break  # No more features to delete
        for i in range(0, len(object_ids), batch_size):
            batch_ids = object_ids[i:i + batch_size]
            where_clause_with_ids = f"{where_clause} AND OBJECTID &amp;gt;= {min(batch_ids)} AND OBJECTID &amp;lt;= {max(batch_ids)}"
            print(where_clause_with_ids)
                
            add_params = {
                'where': where_clause_with_ids,
                'f': 'json',
                'rollbackOnFailure': True,
                'token': portaltoken
            }
            print(add_params)
            print("")

            response = requests.post(f"{targetFC}/addFeatures", data=add_params)

            add_result = response.json()
            if 'addResults' in add_result:
                added_features = add_result['addResults']
                for feature in added_features:
                    if 'success' in feature and feature['success']:
                        print(f"Add feature with objectId {feature['objectId']}")
                    else:
                        print(f"Failed to add feature with objectId {feature['objectId']}")
            else:
                print(f"Error adding features. Response: {add_result}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason it wont write... Do I need to add a "Features" json string to the 'add_params' data load...Looks like the query of the AGOL Feature Layer works as there are only 5 records..BUT the post to add them to the Rest Endpoint errors????&lt;/P&gt;&lt;P&gt;ERROR:&lt;/P&gt;&lt;P&gt;Starting to append: &lt;A href="https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8" target="_blank"&gt;https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8/query?where=1=1&amp;amp;sublayer=0&amp;amp;returnIdsOnly=true&amp;amp;f=json&amp;amp;token=wErLJwbDhStxHwstlxyDjKkRSgze-g91Yh9R9PPgzv9GrZfuWuxxxZlKCedGYufGzHZEkl6CAJ5X9Q" target="_blank"&gt;https://services.arcgis.com/xxx/arcgis/rest/services/Inventory/FeatureServer/8/query?where=1=1&amp;amp;sublayer=0&amp;amp;returnIdsOnly=true&amp;amp;f=json&amp;amp;token=wErLJwbDhStxHwstlxyDjKkRSgze-g91Yh9R9PPgzv9GrZfuWuxxxZlKCedGYufGzHZEkl6CAJ5X9Q&lt;/A&gt;..&lt;BR /&gt;[1, 2, 3, 4, 5]&lt;BR /&gt;1=1 AND OBJECTID &amp;gt;= 1 AND OBJECTID &amp;lt;= 5&lt;BR /&gt;{'where': '1=1 AND OBJECTID &amp;gt;= 1 AND OBJECTID &amp;lt;= 5', 'f': 'json', 'rollbackOnFailure': True, 'token': 'K0rj4angx4nn3xF0-W0ppQVWdj2rHb27FfPzMKOr5lYCMhslxQ'}&lt;/P&gt;&lt;P&gt;Error adding features. Response: {'error': {'code': 500, 'message': 'Unable to complete operation.', 'details': ['Parser error: Some parameters could not be recognized.']}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 00:50:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1372705#M9556</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-01-21T00:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add Features at REST in Chunks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1372759#M9565</link>
      <description>&lt;P&gt;Hi, I see two issues right away:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;There are no features in the addFeatures payload. You must pass an array of features to be added.&lt;/LI&gt;&lt;LI&gt;addFeatures does not accept a 'where' parameter.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You need to query your hosted (ArcGIS Online) feature layer, then pass those features to the 'features' parameter of the addFeatures payload. If you're wanting to do this in chunks, the chunks would be best handled on the query; in other words, query 2000 records and add them, then query the next 2000 and add those, etc.&lt;/P&gt;&lt;P&gt;If you have attachments, those will need to be handled separately. But this should move your features over in 2000-feature chunks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests
import json

source_service_url = ""
destination_service_url = ""

batch_size = 2000

offset = 0
while True:
    query_url = f"{source_service_url}/query"
    query_params = {
        "f": "json",
        "where": "1=1",  # Change if you want to specify which features to query from source
        "outFields": "*",
        "resultOffset": offset,
        "resultRecordCount": batch_size,
        "token": agoltoken
    }
    query_response = requests.get(query_url, params=query_params)
    features = query_response.json().get("features")

    if not features:
        break  # no more features to process

    add_url = f"{destination_service_url}/addFeatures"
    add_params = {
        "f": "json",
        "features": json.dumps(features),
        "token": portaltoken
    }
    add_response = requests.post(add_url, data=add_params)
    offset += batch_size&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 22:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1372759#M9565</guid>
      <dc:creator>JRhodes</dc:creator>
      <dc:date>2024-01-21T22:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add Features at REST in Chunks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373422#M9574</link>
      <description>&lt;P&gt;OK great thanks... Yea I have attachments ... I think that is what is making this all so difficult and a slow process... I assume is a queryAttachents on the URL and then something similar to the above addFeatures?&amp;nbsp; or addAttachements?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 14:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373422#M9574</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-01-23T14:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add Features at REST in Chunks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373504#M9576</link>
      <description>&lt;P&gt;OK I ran this with some mods to fit my code and data... Basically just changing the original dataset and then target dataset...I put a print on the resulting features from the initial query of the in data... I got something weird...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There are only like 5 records in the original data... not sure why it is looping two times...thought it was supposed to get the first 2000 records.&lt;BR /&gt;&lt;BR /&gt;And the second one has&amp;nbsp;{'f': 'json', 'features': '[{"attributes": at the begining.. and the token at the end...&amp;nbsp;&lt;/P&gt;&lt;P&gt;As such nothing was added to the FC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;[{'attributes': {'OBJECTID': 1, 'rel_globalid': '7fc73b9d-b347-4464-92a4-dfa8217c30f5', 'globalid': '517988eb-06b9-4c80-b3d6-771d1aa096a7', 'created_user': 'emial', 'created_date': 1635644468483, 'last_edited_user': 'emial', 'last_edited_date': 1635644468483, 'SWMID': '800311', 'DISTRICT': 'Salem', 'GENBMP': 'Infiltration', 'SPECBMP': 'Permeable Pavement 1 CH - IIB', 'INSPNAME': 'Patrick.Wood@VDOT.Virginia.gov', 'INSPTYPE': 'Annual Inspection', 'INSPDATE': 1582045200000, 'NEXTINSPDATE': 1613586948000, 'ACGA_LQ_BMPAC': 'Yes', 'ACGA_EASENEED': None, 'ACGA_EASEEXIST': None, 'ACGA_MINOREROS': None, 'ACGA_ACCESBLKVEG': None, 'ACGA_ACCESDMGBLK': None, 'ACGA_RMVNEVRCONSTR': None, 'ACGC_NOTES': None, 'ACSN_LQ_BMPIDSNCON': 'No', 'ACSN_BMPIDSNREP': 'Yes', 'ACSN_NOTES': 'No ID SIGN. ', 'ACMCIA_LQ_MCIGCON': 'N/A', 'ACMCIA_MCIGMNDMG': None, 'ACMCIA_MCIGNOTSEAT': None, 'ACMCIA_MCIGBRKMS': None, 'ACMCIA_NOTES': None, 'ACGF_LQ_GFABST': 'Yes', 'ACGF_GFOBSACPT': None, 'ACGF_GFOBSNACPT': None, 'ACGF_NOTES': None, 'CDASCTD_LQ_CDAACPT': 'Yes', 'CDASCTD_CDAVGCVLES75': None, 'CDASCTD_MNDB': None, 'CDASCTD_EXDB': None, 'CDASCTD_NOTES': None, 'CDAIDDE_LQ_NOBSIDDE': 'Yes', 'CDAIDDE_OBSFLWON2PRPT': None, 'CDAIDDE_OBSFLWFRMOTH': None, 'CDAIDDE_NOTES': None, 'CDA_LQ_OUTFLPODPRSNT': None, 'IAICESTD_LQ_BMPCON': 'Yes', 'IAICESTD_BMPSFMNER': None, 'IAICESTD_BMPEXER': None, 'IAICESTD_CHNLMNER': None, 'IAICESTD_CHNLSIGER': None, 'IAICESTD_CHNLEXER': None, 'IAICESTD_CHDMEXSED': None, 'IAICESTD_NOTES': None, 'IAICIASC_LQ_VEGCVGR75': 'Yes', 'IAICIASC_VEGCVREQLES10SY': None, 'IAICIASC_VEGCVREQMOR10SY': None, 'IAICIASC_LQ_LADPLAGR75': 'Yes', 'IAICIASC_LADPLAGR50': None, 'IAICIASC_LADPLALES50': None, 'IAICIASC_NOTES': None, 'IAICIBU_LQ_BMPSFCHNLCON': 'Yes', 'IAICIBU_CHNLMNDMG': None, 'IAICIBU_CHNLEXDMG': None, 'IAICIBU_LQ_PIPECON': 'Yes', 'IAICIBU_PIPEJTMNSEP': None, 'IAICIBU_PIPEJTEXSEP': None, 'IAICIBU_PIPEJTSIGSEP': None, 'IAICIBU_PIPEMJDMG': None, 'IAICIBU_EWMNDMG': None, 'IAICIBU_EWERLES25': None, 'IAICIBU_EWERGR25': None, 'IAICIBU_SIDEMNSCERLES1': None, 'IAICIBU_SIDESIGSCERGR1': None, 'IAICIBU_INFLWSCERLES1': None, 'IAICIBU_INFLWSIGSCERGR1': None, 'IAICIBU_NOTES': None, 'FPPTPL_LQ_PTDVPRES': 'N/A', 'FPPTPL_NOTPRES': None, 'FPPTPL_NOTES': None, 'FPESTD_LQ_DVNOESTD': 'Yes', 'FPESTD_MNESTD': None, 'FPESTD_EXESDT': None, 'FPESTD_STNDISPLC': None, 'FPESTD_LQ_AREANOER': 'Yes', 'FPESTD_AREAMNER': None, 'FPESTD_AREAEXER': None, 'FPESTD_NOTES': None, 'IPTAPPMS_LQ_PVMSFNOMS': 'Yes', 'IPTAPPMS_PVMSFMSOBS': None, 'IPTAPPMS_NOTES': None, 'IPTAPPSS_LQ_PVMSFNOSED': 'Yes', 'IPTAPPSS_PVMSFMNSED': None, 'IPTAPPSS_PVMSFSIGSED': None, 'IPTAPPSS_PVMSFSINK': None, 'IPTAPPSS_NOTES': None, 'IPTAPPDVR_LQ_PVMNOVGRTDMG': 'Yes', 'IPTAPPDVR_UNSPECVG': None, 'IPTAPPDVR_PVMDEADVG': None, 'IPTAPPDVR_PVMDMGRT': None, 'IPTAPPDVR_PVMEXPOSOIL': None, 'IPTAPPDVR_NOTES': None, 'IPTAPPSC_LQ_PMPVMNOCRAK': 'Yes', 'IPTAPPSC_PVMSFMNCRAK': None, 'IPTAPPSC_PVMSFEXCRAK': None, 'IPTAPPSC_PVMSFSEAL': None, 'IPTAPPSC_NOTES': None, 'IPTAFTES_LQ_CLOWCON': 'Yes', 'IPTAFTES_CLOWCAPMSDMG': None, 'IPTAFTES_CLOWPIPEDMG': None, 'IPTAFTES_CLOWOBSTR': None, 'IPTAPPSW_LQ_PMPVMSFNOSW': 'Yes', 'IPTAPPSW_PVMSFSWOBS': None, 'IPTAPPSW_NOTES': 'Monthly cleaning and testing scheduled for night of February 18th. ', 'IPTAPPDS_LQ_DRNGSYSCON': 'Yes', 'IPTAPPDS_OBSWELLDMG': None, 'IPTAPPDS_WELLWATROBS': None, 'IPTAPPDS_DRNGNOTFUNC': None, 'IPTAPPDS_DRNGSEDOBS': None, 'IPTAPPDS_DRNGCORSN': None, 'IPTAPPDS_DRNGDMG': None, 'IPTAPPDS_NOTES': None, 'OSDCRC_LQ_RECVCHNLCON': 'Yes', 'OSDCRC_RECVCHNLERNODMG': None, 'OSDCRC_RECVCHNLERDMG': None, 'OSDCRC_RECVSEWERER': None, 'OSDCRC_RECVSEWERBLK': None, 'OSDCRC_NOTES': None, 'INSP_OVERALL_RATING': 2, 'EE_ER': 'N/A', 'MAINT_COMPLETION_DATE': None, 'FPPTPL_DVCONFMPLAN': None, 'SPEC_BMP_NOTES': None, 'FPPTPL_COLLAPSED': None, 'UNAUTH_DISCH': None}}, {'attributes': {'OBJECTID': 2, 'rel_globalid': '7fc73b9d-b347-4464-92a4-dfa8217c30f5', 'globalid': 'da644253-ca67-4269-8164-3ace092ce9be', 'created_user': 'emial', 'created_date': 1635644468483, 'last_edited_user': 

SNIP ========================================

 'IPTAPPDS_NOTES': None, 'OSDCRC_LQ_RECVCHNLCON': 'Yes', 'OSDCRC_RECVCHNLERNODMG': None, 'OSDCRC_RECVCHNLERDMG': None, 'OSDCRC_RECVSEWERER': None, 'OSDCRC_RECVSEWERBLK': None, 'OSDCRC_NOTES': 'Storm sewer system. ', 'INSP_OVERALL_RATING': 1, 'EE_ER': None, 'MAINT_COMPLETION_DATE': None, 'FPPTPL_DVCONFMPLAN': None, 'SPEC_BMP_NOTES': None, 'FPPTPL_COLLAPSED': None, 'UNAUTH_DISCH': None}}]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the second pass&amp;nbsp; I got this for the features JSON:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{'f': 'json', 'features': '[{"attributes": {"OBJECTID": 1, "rel_globalid": "7fc73b9d-b347-4464-92a4-dfa8217c30f5", "globalid": "517988eb-06b9-4c80-b3d6-771d1aa096a7", "created_user": "email", "created_date": 1635644468483, "last_edited_user": "emial", "last_edited_date": 1635644468483, "SWMID": "800311", "DISTRICT": "Salem", "GENBMP": "Infiltration", "SPECBMP": "Permeable Pavement 1 CH - IIB", "INSPNAME": "Patrick.Wood@VDOT.Virginia.gov", "INSPTYPE": "Annual Inspection", "INSPDATE": 1582045200000, "NEXTINSPDATE": 1613586948000, "ACGA_LQ_BMPAC": "Yes", "ACGA_EASENEED": null, "ACGA_EASEEXIST": null, "ACGA_MINOREROS": null, "ACGA_ACCESBLKVEG": null, "ACGA_ACCESDMGBLK": null, "ACGA_RMVNEVRCONSTR": null, "ACGC_NOTES": null, "ACSN_LQ_BMPIDSNCON": "No", "ACSN_BMPIDSNREP": "Yes", "ACSN_NOTES": "No ID SIGN. ", "ACMCIA_LQ_MCIGCON": "N/A", "ACMCIA_MCIGMNDMG": null, "ACMCIA_MCIGNOTSEAT": null, "ACMCIA_MCIGBRKMS": null, "ACMCIA_NOTES": null, "ACGF_LQ_GFABST": "Yes", "ACGF_GFOBSACPT": null, "ACGF_GFOBSNACPT": null, "ACGF_NOTES": null, "CDASCTD_LQ_CDAACPT": "Yes", "CDASCTD_CDAVGCVLES75": null, "CDASCTD_MNDB": null, "CDASCTD_EXDB": null, "CDASCTD_NOTES": null, "CDAIDDE_LQ_NOBSIDDE": "Yes", "CDAIDDE_OBSFLWON2PRPT": null, "CDAIDDE_OBSFLWFRMOTH": null, "CDAIDDE_NOTES": null, "CDA_LQ_OUTFLPODPRSNT": null, "IAICESTD_LQ_BMPCON": "Yes", "IAICESTD_BMPSFMNER": null, "IAICESTD_BMPEXER": null, "IAICESTD_CHNLMNER": null, "IAICESTD_CHNLSIGER": null, "IAICESTD_CHNLEXER": null, "IAICESTD_CHDMEXSED": null, "IAICESTD_NOTES": null, "IAICIASC_LQ_VEGCVGR75": "Yes", "IAICIASC_VEGCVREQLES10SY": null, "IAICIASC_VEGCVREQMOR10SY": null, "IAICIASC_LQ_LADPLAGR75": "Yes", "IAICIASC_LADPLAGR50": null, "IAICIASC_LADPLALES50": null, "IAICIASC_NOTES": null, "IAICIBU_LQ_BMPSFCHNLCON": "Yes", "IAICIBU_CHNLMNDMG": null, "IAICIBU_CHNLEXDMG": null, "IAICIBU_LQ_PIPECON": "Yes", "IAICIBU_PIPEJTMNSEP": null, "IAICIBU_PIPEJTEXSEP": null, "IAICIBU_PIPEJTSIGSEP": null, "IAICIBU_PIPEMJDMG": null, "IAICIBU_EWMNDMG": null, "IAICIBU_EWERLES25": null, "IAICIBU_EWERGR25": null, "IAICIBU_SIDEMNSCERLES1": null, "IAICIBU_SIDESIGSCERGR1": null, "IAICIBU_INFLWSCERLES1": null, "IAICIBU_INFLWSIGSCERGR1": null, "IAICIBU_NOTES": null, "FPPTPL_LQ_PTDVPRES": "N/A", "FPPTPL_NOTPRES": null, "FPPTPL_NOTES": null, "FPESTD_LQ_DVNOESTD": "Yes", "FPESTD_MNESTD": null, "FPESTD_EXESDT": null, "FPESTD_STNDISPLC": null, "FPESTD_LQ_AREANOER": "Yes", "FPESTD_AREAMNER": null, "FPESTD_AREAEXER": null, "FPESTD_NOTES": null, "IPTAPPMS_LQ_PVMSFNOMS": "Yes", "IPTAPPMS_PVMSFMSOBS": null, "IPTAPPMS_NOTES": null, "IPTAPPSS_LQ_PVMSFNOSED": "Yes", "IPTAPPSS_PVMSFMNSED": null, "IPTAPPSS_PVMSFSIGSED": null, "IPTAPPSS_PVMSFSINK": null, "IPTAPPSS_NOTES": null, "IPTAPPDVR_LQ_PVMNOVGRTDMG": "Yes", "IPTAPPDVR_UNSPECVG": null, "IPTAPPDVR_PVMDEADVG": null, "IPTAPPDVR_PVMDMGRT": null, "IPTAPPDVR_PVMEXPOSOIL": null, "IPTAPPDVR_NOTES": null, "IPTAPPSC_LQ_PMPVMNOCRAK": "Yes", "IPTAPPSC_PVMSFMNCRAK": null, "IPTAPPSC_PVMSFEXCRAK": null, "IPTAPPSC_PVMSFSEAL": null, "IPTAPPSC_NOTES": null, "IPTAFTES_LQ_CLOWCON": "Yes", "IPTAFTES_CLOWCAPMSDMG": null, "IPTAFTES_CLOWPIPEDMG": null, "IPTAFTES_CLOWOBSTR": null, "IPTAPPSW_LQ_PMPVMSFNOSW": "Yes", "IPTAPPSW_PVMSFSWOBS": null, "IPTAPPSW_NOTES": "Monthly cleaning and testing scheduled for night of February 18th. ", "IPTAPPDS_LQ_DRNGSYSCON": "Yes", "IPTAPPDS_OBSWELLDMG": null, "IPTAPPDS_WELLWATROBS": null, "IPTAPPDS_DRNGNOTFUNC": null, "IPTAPPDS_DRNGSEDOBS": null, "IPTAPPDS_DRNGCORSN": null, "IPTAPPDS_DRNGDMG": null, "IPTAPPDS_NOTES": null, "OSDCRC_LQ_RECVCHNLCON": "Yes", "OSDCRC_RECVCHNLERNODMG": null, "OSDCRC_RECVCHNLERDMG": null, "OSDCRC_RECVSEWERER": null, "OSDCRC_RECVSEWERBLK": null, "OSDCRC_NOTES": null, "INSP_OVERALL_RATING": 2, "EE_ER": "N/A", "MAINT_COMPLETION_DATE": null, "FPPTPL_DVCONFMPLAN": null, "SPEC_BMP_NOTES": null, "FPPTPL_COLLAPSED": null, "UNAUTH_DISCH": null}}, {"attributes": {"OBJECTID": 2, "rel_globalid": "7fc73b9d-b347-4464-92a4-dfa8217c30f5", "globalid": "da644253-ca67-4269-8164-3ace092ce9be", 

SNIP ============================================

"IPTAPPSW_NOTES": null, "IPTAPPDS_LQ_DRNGSYSCON": "Yes", "IPTAPPDS_OBSWELLDMG": null, "IPTAPPDS_WELLWATROBS": null, "IPTAPPDS_DRNGNOTFUNC": null, "IPTAPPDS_DRNGSEDOBS": null, "IPTAPPDS_DRNGCORSN": null, "IPTAPPDS_DRNGDMG": null, "IPTAPPDS_NOTES": null, "OSDCRC_LQ_RECVCHNLCON": "Yes", "OSDCRC_RECVCHNLERNODMG": null, "OSDCRC_RECVCHNLERDMG": null, "OSDCRC_RECVSEWERER": null, "OSDCRC_RECVSEWERBLK": null, "OSDCRC_NOTES": "Storm sewer system. ", "INSP_OVERALL_RATING": 1, "EE_ER": null, "MAINT_COMPLETION_DATE": null, "FPPTPL_DVCONFMPLAN": null, "SPEC_BMP_NOTES": null, "FPPTPL_COLLAPSED": null, "UNAUTH_DISCH": null}}]', 'token': 'KaFO048yLUbKB8E064Pl27vREp7l4IJ5NhAv22wGJ6nGs-dPE-tXcoiukW53SllE74sUioDhyZn4zGcrSSyIEIoYvQsaqEcnKFoLgWm0qwANKfl9Q8P63Q5Ckl0QeFTm'}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 16:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373504#M9576</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-01-23T16:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add Features at REST in Chunks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373525#M9578</link>
      <description>&lt;P&gt;I tried to grab that Features JSON return from the query and do the ADDFeature right at REST....&amp;nbsp;&lt;BR /&gt;Any idea what this error could be about?&lt;/P&gt;&lt;P&gt;Both GUID fields just difference in Case for the field name&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kapalczynski_0-1706029125430.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92521i293937B4E99BF79B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kapalczynski_0-1706029125430.png" alt="kapalczynski_0-1706029125430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the Portal Feature Service for REL_GLOBALID&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kapalczynski_4-1706029352252.png" style="width: 662px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92525i764A7BF3C855FA6C/image-dimensions/662x101?v=v2" width="662" height="101" role="button" title="kapalczynski_4-1706029352252.png" alt="kapalczynski_4-1706029352252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the AGOL Feature Layer for REL_GLOBALID&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kapalczynski_3-1706029346850.png" style="width: 671px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92524i3B0B6CDBB71FCEED/image-dimensions/671x104?v=v2" width="671" height="104" role="button" title="kapalczynski_3-1706029346850.png" alt="kapalczynski_3-1706029346850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 17:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373525#M9578</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-01-23T17:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add Features at REST in Chunks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373537#M9579</link>
      <description>&lt;P&gt;OK so I hardcoded these in there because its a GUID field { }&amp;nbsp;&lt;/P&gt;&lt;P&gt;It ran through now I get this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kapalczynski_5-1706030554966.png" style="width: 715px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92530i80D95C20603A50D1/image-dimensions/715x177?v=v2" width="715" height="177" role="button" title="kapalczynski_5-1706030554966.png" alt="kapalczynski_5-1706030554966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 17:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373537#M9579</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-01-23T17:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add Features at REST in Chunks</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373538#M9580</link>
      <description>&lt;P&gt;Think I might have found it... there are a bunch of fields that have a Domain of Yes and No... I am trying to pass in NONE... its breaking...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 17:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-features-at-rest-in-chunks/m-p/1373538#M9580</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-01-23T17:30:01Z</dc:date>
    </item>
  </channel>
</rss>

