This has certainly got to be a bug that needs to be addressed.
#Process: Populates the O_RB_DIST, O_RB_OID, and O_RB_WTY fields oesfRipBuffFC = root + "\\layer_prep\\oesf_rip_buff.gdb\\oesf_rip_buff" arcpy.MakeFeatureLayer_management(indxTileFC, indxTileFL, "FID_oesf_rip_buff > -1") if int(arcpy.GetCount_management(indxTileFL).getOutput(0)) > 0: arcpy.AddJoin_management(indxTileFL, "FID_oesf_rip_buff", oesfRipBuffFC, "OBJECTID", "KEEP_COMMON") arcpy.CalculateField_management(indxTileFL, "O_RB_OID", "[oesf_rip_buff.LDO_OID]", "VB") arcpy.CalculateField_management(indxTileFL, "O_RB_DIST", "[oesf_rip_buff.DISTANCE]", "VB") arcpy.CalculateField_management(indxTileFL, "O_RB_WTY", "[oesf_rip_buff.SL_WTRTY_CD]", "VB") arcpy.RemoveJoin_management(indxTileFL, "oesf_rip_buff")
fc = r"C:\temp.gdb\my_mc" lut = r"C:\temp.gdb\my_lut" arcpy.MakeFeatureLayer_managment(fc, "mickeymouse") arcpy.AddJoin_mangement("mickeymouse", "ID", lut, "ID") arcpy.RemoveJoin_management("mickeymouse", "my_lut")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.