FieldInfo - FieldType.Guid - ArgumentOutOfRangeException

3184
0
04-20-2015 12:04 PM
meme2
by
New Contributor II

I'm trying to issue a QueryRelatedAsync using the .NET runtime SDK and running into an ArgumentOutOfRangeException.

The query seems to execute and run just fine, but the JSON that is returned doesn't seem to be able to be parsed.  The JSON that is returned looks something like this:

{

"fields" : [

   {

     "name" : "Foo",

     "alias" : "Foo",

     "type" : "esriFieldTypeGUID",

     "length" : 38

   },

   <more JSON...>

}

This field of Foo seems to be the cause of the exception, because when I try to create it manually, the FieldInfo constructor throws an ArgumentOutOfRangeException:

var foo = new FieldInfo("Foo", "Foo", FieldType.Guid, 38);

Anyone else seeing a similar issue and have any ideas on how to get around this?

0 Kudos
0 Replies