<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGISRuntimeException: Geodatabase field exists while using FeatureLayer with ServiceFeatureTable in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/arcgisruntimeexception-geodatabase-field-exists/m-p/1282368#M30</link>
    <description>&lt;P&gt;Can you inspect the fields of the feature service layer and see if it contains duplicate objectid fields. This sometimes happens if the service was published containing joins between datasets.&amp;nbsp;&lt;BR /&gt;if so, you can rename the duplicate field and republish the service to resolve this issue&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 15:23:25 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2023-04-25T15:23:25Z</dc:date>
    <item>
      <title>ArcGISRuntimeException: Geodatabase field exists while using FeatureLayer with ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/arcgisruntimeexception-geodatabase-field-exists/m-p/1282297#M29</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am encountering an error while using the &lt;STRONG&gt;FeatureLayer&lt;/STRONG&gt; with &lt;STRONG&gt;ServiceFeatureTable&lt;/STRONG&gt; in my ArcGIS Runtime SDK for Android application. The error message is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"com.esri.arcgisruntime.ArcGISRuntimeException: Geodatabase field exists.: objectid"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am not sure what this error means or how to fix it. Here is the Kotlin code that I am using:&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;       // create and load the service geo database
        val serviceUrl =
            "my_feature_service_url"
        val serviceFeatureTable = ServiceFeatureTable(serviceUrl)

        // create a feature layer from table
        val featureLayer = FeatureLayer(serviceFeatureTable)
        // add the layer to the map
        mapView?.map?.operationalLayers?.add(featureLayer)
        featureLayer.loadAsync()

        // zoom to the layer when it's done loading
        featureLayer.addDoneLoadingListener {
            if (featureLayer.loadStatus == LoadStatus.LOADED) {
                // set viewpoint to feature layer extent
                mapView?.setViewpointAsync(Viewpoint(featureLayer.fullExtent))
            } else {
                featureLayer.loadError.printStackTrace()
                val error = "Error loading feature layer :" + featureLayer.loadError.message
                Toast.makeText(context, error, Toast.LENGTH_LONG).show()
                Log.e("FeatureError", error)
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any guidance or suggestions on how to resolve this error.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 14:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/arcgisruntimeexception-geodatabase-field-exists/m-p/1282297#M29</guid>
      <dc:creator>VipulPurohit</dc:creator>
      <dc:date>2023-04-25T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISRuntimeException: Geodatabase field exists while using FeatureLayer with ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/arcgisruntimeexception-geodatabase-field-exists/m-p/1282368#M30</link>
      <description>&lt;P&gt;Can you inspect the fields of the feature service layer and see if it contains duplicate objectid fields. This sometimes happens if the service was published containing joins between datasets.&amp;nbsp;&lt;BR /&gt;if so, you can rename the duplicate field and republish the service to resolve this issue&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 15:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/arcgisruntimeexception-geodatabase-field-exists/m-p/1282368#M30</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2023-04-25T15:23:25Z</dc:date>
    </item>
  </channel>
</rss>

