AnsweredAssumed Answered

Calculate value in a joined table

Question asked by Alberto on Nov 27, 2013
Latest reply on Nov 28, 2013 by Alberto
I've to calculate a field based on another field in a joined table, but an error occurs:

"Parameters are not valid.
ERROR 000728: Field !Table_A.field_A! does not exist within table"

import arcpy from arcpy import env env.workspace = "C:/TMP/BASELINE.gdb" Table_A = "dist" Table_B= "matrix" arcpy.AddJoin_management(Table_A, "id_grid", Table_B, "id_matrix") arcpy.CalculateField_management(Table_A, "!" + Table_A + ".field_A!", "!" + Table_B + ".field_B!","PYTHON")

Both tables are in the BASELINE.gdb. The Join occurs without any problem.

Please, any help appreciated.
Thanks in advance