I have a feature class and a table that I need to join. The table and feature class share a common field, The table will have duplicate Acc (ID's), and the Feature class will have just one Acc (ID's). Both are in the same file geodatabase, both have objectIds. The following doesn't crate the one to many join, what am I missing?
arcpy.env.workspace = "C:/Temp/test.gdb"
fc = "C:/Temp/test.gdb/TaxPs"
sourceTB = "C:/Temp/test.gdb/table"
arcpy.MakeFeatureLayer_management(fc, "TaxPs")
arcpy.AddJoin_management("TaxPs", "Acc", sourceTB, "Acc", "KEEP_COMMON")
arcpy.management.CopyFeatures(fc, os.path.join(arcpy.env.workspace, "Taxps_Joined"))