Select to view content in your preferred language

Setting a GUID value - CalculateField doesn't work

2426
2
04-20-2010 03:16 PM
RandyKreuziger
Frequent Contributor
Even though you can now add a field of type GUID using AddField_management you can't calculate that value with CalculateField_management.  That functionality has been added to ArcGIS 10.0 but does not currently exist and is not considered a bug by ESRI support.  I'm suppost to upgrade as soon as possible to get around this even though 10 isn't out.

Anyway, we won't be upgrading to 10.0 until SP1 is released so that maybe 8 or more months from now.  I need a workaround for my 9.3.1 server.  Any ideas?
0 Kudos
2 Replies
BrianLeung
Occasional Contributor
I think the easiest option is to assign a globalid and then copy it into your guid field. (it has its drawbacks but this is a quick and dirty solution)

Brian Leung
0 Kudos
by Anonymous User
Not applicable
Another option (and what you might be looking for)
http://blogs.esri.com/dev/blogs/waterutilities/archive/2009/09/28/guid_2700_s-as-id_2700_s.aspx

Remember to replace the [myGUID] with your GUID field.  I know this is obvious to most, but for the frustrated brains out there, this is helpful.
0 Kudos