AnsweredAssumed Answered

FieldInfo - FieldType.Guid - ArgumentOutOfRangeException

Question asked by oneleggedredcow on Apr 20, 2015

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?

Outcomes