Select to view content in your preferred language

in C# File Geodatabase API, GUID field is set to all zeroes

1825
2
12-16-2011 01:18 PM
MarkAlmquist
Deactivated User
I added a GUID field type to a feature class. Prior to doing an insert into the feature table, I set up for the new GUID:

Row newRow = table.CreateRowObject();
Guid guid = Guid.NewGuid();
newRow.SetGUID("GUID", guid);


I confirmed in the debugger that a "real" GUID is generated each time with the NewGuid call. After the insert, however, the GUID in the table shows up as all zeroes--all the other data elements for the insert made it into the table correctly. Any ideas?
0 Kudos
2 Replies
LanceShipman
Esri Regular Contributor
I'm able to reproduce this and have entered a bug. The C++ API sets the guid values as expected. This has been entered as NIM076353 and will be fixed in the next release sometime early next year.
0 Kudos
MarkAlmquist
Deactivated User
I'm able to reproduce this and have entered a bug. The C++ API sets the guid values as expected. This has been entered as NIM076353 and will be fixed in the next release sometime early next year.


Okay--thanks for confirming that.
0 Kudos