Skip to main content
Question

Truncate or drop and create?

  • February 14, 2025
  • 2 replies
  • 91 views

smclaugh1
Contributor
Forum|alt.badge.img+5

If I’m going to truncating and overwriting a hosted feature service every day in ArcGIS Enterprise is it better to truncate, or drop and create?

2 replies

crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • 281 replies
  • February 15, 2025

I have used both. Truncate will preserve the ESRI ItemID and as a result any applications that reference your Hosted Feature Layer will keep functioning fine. I believe if you were to drop and create you would end up with a new ItemID and then break whatever references the service (maps, apps, views etc). Hope that helps! 


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1632 replies
  • February 16, 2025

In your case, i’d leave it as a truncate. A drop and create will also go through and recreate schema.