It is posible to add/update feature table (without geometry) hosted in ArcGIS Server with the iOS SDK?

892
1
Jump to solution
08-08-2016 02:40 PM
JuanRíos
New Contributor

I'm trying to edit a Feature Table hosted in my ArcGIS Server using the ArcGIS SDK for iOS and I'm having this error:

Error Domain=com.esri.arcgis.runtime.error Code=3 "Invalid argument" UserInfo={NSLocalizedDescription=Invalid argument, NSLocalizedFailureReason=JSON does not describe a feature layer.}

Here's my code:

self.featureServiceTable = AGSGDBFeatureServiceTable(serviceURL: self.url, credential: nil, spatialReference: nil)

        self.featureServiceTable.loadCompletion = {[weak self] (error:NSError!) -> Void in

            if error != nil {

                print(error)

            }

        }

This is the hosted service: Layer: Usuario (ID: 3)

0 Kudos
1 Solution

Accepted Solutions
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi Juan,

The error you get probably because the arguments is not correct. 

I would recommend to take a look about our sample on this github, on line 317 you will see a snippet using AGSGDBFeatureServiceTable class:

arcgis-runtime-samples-ios/ViewController.swift at bd03c9880f4bb2c79794478d3582be4d0905742a · Esri/a... 

We also have this documentation about how to edit features: Edit features—ArcGIS Runtime SDK for iOS | ArcGIS for Developers 

Eventually, this is our API reference about AGSGDBFeatureServiceTable Class Reference 

Hope this can help.

View solution in original post

0 Kudos
1 Reply
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi Juan,

The error you get probably because the arguments is not correct. 

I would recommend to take a look about our sample on this github, on line 317 you will see a snippet using AGSGDBFeatureServiceTable class:

arcgis-runtime-samples-ios/ViewController.swift at bd03c9880f4bb2c79794478d3582be4d0905742a · Esri/a... 

We also have this documentation about how to edit features: Edit features—ArcGIS Runtime SDK for iOS | ArcGIS for Developers 

Eventually, this is our API reference about AGSGDBFeatureServiceTable Class Reference 

Hope this can help.

0 Kudos