How to update short vb code to python

Discussion created by RachelB on May 30, 2016
Latest reply on May 31, 2016 by RachelB


I created a short model to update one field based on another in a SQl geodatabase using modelbuilder, exported it to python, however it only works in pyscripter not in python.

It seems Calculate field cannot use VB expressions in 64-bit ArcGIS products. I'm not sure of python so can anyone tell me how to change this vb code into python in the Code Block of Calculate Field


If IsNull ([ColumnA]) then

[ColumnA] = [ColumnB]

End If


ColumnA is a date field so if it is Null then update it with ColumnB (text field).


Many thanks