Setting a value to 'Nothing' not working in 10.1
Folks,
I've upgraded a feature edit service from 10.0 to 10.1, and using the same code to assign a field to 'Nothing' is no longer working. I assume it's not the GE version? (3.14), but it's a strange one.
essentially the assign activity is
selectedFS.First.Attributes("DSE_ID") = Nothing where DSE_ID is an integer field. Nothing has changed on this service in the transition to 10.1
I've set it to 9999 - it accepts it, and now to 0 as a workaround for now and it works fine, so it accepts values, but not 'Nothing'
any ideas anyone?
cheers
Gareth
-
It seems weird but, when I've encountered this issue, changing case from 'Nothing' to 'nothing' (or vice-versa) for the value in the Assign activity works. No guarantee it's the same issue but won't hurt to try.
0 -
Thanks Nick, but no cigar unfortunately!
any other suggestions apprecitated ; )
cheers
Gareth
0 -
selectedFS.First.Attributes("DSE_ID") = "Null" will work
0 -
Hi,
I am experiencing this problem with a date field.
"Nothing" or "nothing" does not give an error, but does not set to Null, but to the minimum database date 01/01/1970
"Null" or "null" crashes for me with "Unable to complete operation"
Any suggestions?
Thanks!
0 -
This is an ESRI bug for 10.1: #NIM092824
Supposed to be fixed in 10.2, but I have not tested.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer