Geofencing unit ‘Mile’ with id: ” cannot be removed – Dynamics 365 Field Service


When trying to delete Unit records related to the "Distance Units of Measure for Resource and Asset Location Management" unit group, an error occurs stating that the geofencing unit 'Mile' cannot be removed. There is an out-of-the-box plugin that restricts the deletion of the unit. The article provides the code for the plugin and the GUIDs for the unit. It also mentions that more information about geofencing can be found on the Microsoft Dynamics 365 Field Service website.


Article 13m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time