Skip to main content
Question

Truncate or drop and create?

  • February 14, 2025
  • 2 replies
  • 26 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
Enthusiast
Forum|alt.badge.img+29
  • Enthusiast
  • 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+51
  • Celebrity
  • February 16, 2025

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings