Calculate field tool in model builder

Discussion created by ivanxu on Mar 21, 2013
Latest reply on Apr 18, 2013 by MSummers-esristaff

When I used Calculate Field tool in model builder, the experssion type (VB or Python) and the code block are not changed to align with the setting in "Field Calculator" window (click the little calculator icon). It will generate an error if the types are not the same.

When using the tool manually, the expression type and code block will be automatically changed.

Could someone help me about this? Thanks.