Select to view content in your preferred language

Trying to append data to existing layer it throwing error "There was an error.",

04-30-2024 10:04 AM
Labels (3)
New Contributor III

I added layer to existing feature layer using "addToDefination" API. 

Input layer data : even if giving name of field is "fid" still taking "fid0" after adding. 

API used : https://{{Domain}}/arcgis/rest/admin/services/Hosted/First_Upload/FeatureServer/addToDefinition?f=js...

With this layer get added to feature layer. but can't see layer on viewer because item data is missing. I am trying to add item data using shape file "Append content" option. It throwing error. I did mapping of field also. Not sure whats wrong. 


Screenshot 2024-04-30 at 10.30.16 PM.pngScreenshot 2024-04-30 at 10.31.54 PM.png is which I uploaded initial layer which become feature layer. In that using addTodefination API I added second layer with similar defination of After adding layer try to upload file using append to layer for second layer. 

0 Kudos
2 Replies
Regular Contributor

Hey @AvinashDalvi_ 

I was curious if you could provide a screenshot of the errors that you're experiencing? I'm currently not around a computer so my ability to download your files is limited.


0 Kudos
New Contributor III

"errorMessage": "Error reading features.",
"operationName": "append",
"status": "FAILED"

0 Kudos