Select to view content in your preferred language

Append Error

772
2
08-19-2021 12:20 PM
wparra_ripco
Occasional Contributor

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=[])

 

 

 

Tags (1)
0 Kudos
2 Replies
PeterMilenkovic
Frequent Contributor

Obvious question, but do both feature layers schema match?

0 Kudos
wparra_ripco
Occasional Contributor

yes

0 Kudos