Select to view content in your preferred language

WFS Field Type Mismatch

129
0
11-15-2024 07:09 AM
Labels (1)
TimScheiber
Occasional Contributor

Hi, I'm facing an issue with ArcGIS Runtime (tested in both version 100.15 and 200.5) while working with a WFS Layer hosted on a MapServer.

When attempting to use the WFS layer, I encounter this exception:

ArcGISRuntimeException: Geodatabase data type mismatch: my_field

Upon investigation, I found that the problematic field (my_field) has the following characteristics:

  1. Locally the FeatureTable-Field has FieldType=Int32.
  2. From the server's DescribeFeatureType response:

 

<complexType name="my_type">
  <complexContent>
    <extension base="gml:AbstractFeatureType">
      <sequence>
        {other Fields}
        <element name="my_field" minOccurs="0" type="string"/>
        {other Fields}
      </sequence>
    </extension>
  </complexContent>
</complexType>
​

 

The challenge is that the values in this field are mixed: sometimes just numeric, sometimes strings. The field should always be treated as a string to accommodate the varying data types.

Is there a way to configure or force the field to always be interpreted as a string in the Runtime SDK?

Any help or insights would be greatly appreciated. Thanks in advance!

0 Kudos
0 Replies