Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. def RemoveNULL(x):
  2. if x is None:
  3. return ''
  4. elif x == '':
  5. return '0'
  6. else: return x
  7.  
  8. RemoveNULL(str( !DEAD_VOL_PER_HA_SPP1_125!))
  9.  
  10. ERROR: 999999: Error executing function
  11. The value type is incompatible with the field type. [dead_pine]
  12. Failed to execute (calculate field)
  13.  
  14. def replaceNull(x):
  15. if x is None:
  16. return 0
  17. else:
  18. return x
  19.  
  20. replaceNull(!YourFieldName!)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement