This question already has an answer here:

I am using the Field Calculator and keep receiving the following error: 'There was a failure during processing, check the geoprocessing results window for details'. I am not very tech-savvy but I have tried a few simple fixes and still have had no luck. It's only a simple division equation so i'm confused.

My equation is [Sum_NO_OF_] / [KM2AREA]

marked as duplicate by PolyGeo, Fezter, Devdatta Tengshe, whuber Apr 11 '14 at 14:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    could you be trying to divide by zero? Verify that KM2AREA is not zero for all records – Stephen Lead Apr 11 '14 at 2:51
  • Thanks Stephen. There is one field in which KM2AREA is 0 (row 1). Do you know how I can calculate without including this value? – Chelsea Apr 11 '14 at 5:02
  • blog.stackoverflow.com/2010/11/… – ianbroad Apr 11 '14 at 14:12

To ensure that you don't calculate an illegal division by zero, first ensure that all values of KM2AREA are not zero.

You can do this using the Select By Attributes functionality (presuming you're using ArcMap - other GIS's will have a similar function.

Then ensure that the Field Calculator is set to the default of only using the selected values.

Not the answer you're looking for? Browse other questions tagged or ask your own question.