PROBLEM
Data from a feature class created in ArcGIS Pro can be appended to an ArcGIS Online hosted feature layer using scripts and geoprocessing tools. In some instances, attempting to append the data to a hosted feature layer fails, and returns the error message:
Error: Object reference not set to an instance of an object.
Depending on the cause, use one of the methods provided to resolve the issue.
Identify and isolate the duplicates values in the input dataset
To find and isolate the duplicate field values in the dataset used to append to the hosted feature layer, refer to How To: Identify duplicate or unique values in ArcGIS Pro.
Increase the field length of the input dataset
Increase the number of allowable characters for the target field before appending data. Use the Alter Field tool to set the new maximum number of allowable characters for each field.
Note: This option is only applicable to the TEXT or BLOB field type. If the table is empty, the field length can be increased or decreased. If the table is not empty, the length can only be increased from the current value.
Use the correct file extension for the file geodatabase
Get help from ArcGIS experts
Download the Esri Support App