Select to view content in your preferred language

Reset feature attachment IDs?

182
2
06-07-2024 01:11 PM
GB_MattPanunto_GISS
Occasional Contributor II

I have a script that adds attachments to a feature layer. Occasionally, I need to delete the existing attachments and add new ones. When I do so, the attachment ID for the feature does not reset to 1, it continues the sequence even though there are no longer any attachments. Is there any way to force a reset?

0 Kudos
2 Replies
EarlMedina
Esri Regular Contributor

Since they're indexed, I don't think there's a way to do this without a significant amount of work that will result in your data going offline.

0 Kudos
GB_MattPanunto_GISS
Occasional Contributor II

I had to overwrite the service to restart the sequence at 1. Thankfully, in this particular case I was fine with deleting all the attachments, but it's unfortunate there isn't a less intrusive way to accomplish this.

0 Kudos