I am attempting to append one hosted feature layer into another. Both are points. Receiving the following error
Exception: Object reference not set to an instance of an object.
(Error Code: 400)
Code snippet below.
target_item = gis.content.get('***')
t_flayer = target_item.layers[0]
append_item = gis.content.get('***')
a_flayer = append_item.layers[0]
feat_collection = arcgis.features.FeatureCollection.fromitem(append_item)
t_flayer.append(feat_collection, upload_format='featureCollection', field_mappings=[])
Obvious question, but do both feature layers schema match?
yes