I'm having a DOH! moment here am can't seem to pull myself out of the nosedive. Converting my scripts using arcpy.CalculateField_management from VB to Python and ran into a small hiccup.
Using VB, this is what I did:
arcpy.CalculateField_management(combinedOutFC + '__ATTACH_vw', 'REL_GLOBALID', '[DBName."Domain\!UserSchema".FC_Publish.GlobalID]')
But in Python, that is not cool so I did this:
arcpy.CalculateField_management(combinedOutFC + '__ATTACH_vw', 'REL_GLOBALID', '!GlobalID!', 'PYTHON_9.3'
Here is the caveat:
Prior to this I performed a join:
arcpy.AddJoin_management(combinedOutFC + "__ATTACH_vw", "REL_GLOBALID", combinedOutFC, "GUIDCopy")
Where I am going wrong with:
arcpy.CalculateField_management(combinedOutFC + '__ATTACH_vw', 'REL_GLOBALID', '!GlobalID!', 'PYTHON_9.3'
Thanks ahead of time for what I know will be "oh yeah" moment of the day for me.
Thank you all for your help over the years.
Oh!!! Error is looking like this:
error encountered.ERROR 000539: Invalid field FeatureClass.GlobalID
Failed to execute (CalculateField).
PYTHON ERRORS:
Traceback info:
File "Publish.py", line 182, in <module>
arcpy.CalculateField_management(combinedOutFC + '__ATTACH_vw', 'REL_GLOBALID', '!' + combinedOutFC + '.GlobalID!', 'PYTHON_9.3')
Error Info:
ERROR 000539: Invalid field FeatureClass.GlobalID
Failed to execute (CalculateField).
Closing Log File and Exiting Process.