Select to view content in your preferred language

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

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

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

Input layer data : http://jsonblob.com/1234911840365830144. 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

 

First_upload.zip is which I uploaded initial layer which become feature layer. In that using addTodefination API I added second layer with similar defination of second_upload.zip. After adding layer try to upload second_uploadz.zip file using append to layer for second layer. 

0 Kudos
2 Replies
CodyPatterson
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.

Cody

0 Kudos
AvinashDalvi_
New Contributor III

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

0 Kudos