Feature Service error when uploading

2661
6
02-05-2013 11:24 AM
EvanKarmazin
New Contributor
I am working on adding a feature service to a javascript mapping application. I have determined that it has to do with the feature service, as the javascript seems to be doing what it should.

The error i get in the javasscript console in chrome is below. When attempting to use the apply edit form in the feature service age the same error occurs:"Unable to complete operation."
Error {code: 400, message: "Unable to complete operation.", details: Array[0], log: undefined}
_ssl: undefined
arguments: undefined
code: 400
details: Array[0]
get stack: function () { [native code] }
log: undefined
message: "Unable to complete operation."
set stack: function () { [native code] }
type: undefined
__proto__: d
 serverapi.arcgisonline.com:15
_48f serverapi.arcgisonline.com:15
(anonymous function) serverapi.arcgisonline.com:15
_1e1 serverapi.arcgisonline.com:15
_1df serverapi.arcgisonline.com:15
resolve.callback serverapi.arcgisonline.com:15
_1e1 serverapi.arcgisonline.com:15
_1df serverapi.arcgisonline.com:15
resolve.callback serverapi.arcgisonline.com:15
_1e1 serverapi.arcgisonline.com:15
_1df serverapi.arcgisonline.com:15
resolve.callback serverapi.arcgisonline.com:15
_1e1 serverapi.arcgisonline.com:15
_1df serverapi.arcgisonline.com:15
resolve.callback serverapi.arcgisonline.com:15
rDfd.then.otherwise._49d.error serverapi.arcgisonline.com:15
_4b9 serverapi.arcgisonline.com:15
_4b3 serverapi.arcgisonline.com:15
resolve serverapi.arcgisonline.com:15
_4c0 serverapi.arcgisonline.com:15
_4b9 serverapi.arcgisonline.com:15
_4b3 serverapi.arcgisonline.com:15
resolve serverapi.arcgisonline.com:15
_4c0 serverapi.arcgisonline.com:15
_4b9 serverapi.arcgisonline.com:15
_4b3 serverapi.arcgisonline.com:15
resolve serverapi.arcgisonline.com:15
_4c0 serverapi.arcgisonline.com:15
_4b9 serverapi.arcgisonline.com:15
_4b3 serverapi.arcgisonline.com:15
resolve serverapi.arcgisonline.com:15
_3dd serverapi.arcgisonline.com:15
_3e9 serverapi.arcgisonline.com:15



When I go to upload the service I noticed some warnings:
SEVERITY STATUS CODE DESCRIPTION NAME TYPE DATA FRAME
Medium Unresolved 10030 Layer's data source is ArcSDE not accessed via a direct connection (4 items)   
Medium Unresolved 10030 Layer's data source is ArcSDE not accessed via a direct connection line features Layer Layers
Medium Unresolved 10030 Layer's data source is ArcSDE not accessed via a direct connection point_features Layer Layers
Medium Unresolved 10030 Layer's data source is ArcSDE not accessed via a direct connection polygon features Layer Layers
Medium Unresolved 10030 Layer's data source is ArcSDE not accessed via a direct connection problem area labels Layer Layers
Medium Resolved In Map Service Definition 10009 Enabling the option to convert layer transparency to color transparency may improve performance polygon features Layer Layers
Low Unresolved 24059 Missing Tags in Item Description Layers Data Frame Layers
Low Unresolved 24058 Missing Summary in Item Description Layers Data Frame Layers


My question would be: could these be related?
Tags (2)
0 Kudos
6 Replies
nicogis
MVP Frequent Contributor
Are you able from rest page do same operation?

your messages 10030 are warnings http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00sq0000002p000000.htm
0 Kudos
EvanKarmazin
New Contributor
When going through the forums I found this thread:
[HTML]http://forums.arcgis.com/threads/69846-Publishing-a-feature-service-using-a-versioned-feature-class?...

It seems to roughly apply to my situation, at least on post number 2.

I just wanted to clarify if using oracle instead of sql would change the advice in the second post?
0 Kudos
EvanKarmazin
New Contributor
/FeatureServer/2/applyEdits
what is sent is this:
[{"geometry":{"rings":[[[-9082863.762060093,4625288.645127872],[-9081289.637008803,4624875.407443694],[-9082553.236632675,4624271.077188798],[-9082863.762060093,4625288.645127872]]],"spatialReference":{"wkid":102100}},"attributes":{"PROBKEY":"SP","COMMENTS":null,"PADNUMBER":null,"PADNAME":null,"AREA_":null,"DEPTH":null,"VOLUME":null,"STATUS":null,"UPDATEDBY":null,"DATEUPDATED":null}}]

When trying to do an add through a page like that. the html error is Unable to complete operation.
while the json is
{
 "error": {
  "code": 400,
  "message": "Unable to complete operation.",
  "details": [
   
  ]
 }
}


It currently uses either a three tier arcsde solution or a direct sde connection. Do I need to connect directly to the geodatabase?
0 Kudos
EvanKarmazin
New Contributor
"id": "MO",
   "name": "Mine Openings",
   "domains": {
    "PROBKEY": {"type": "inherited"}
   },
   "templates": [
    {
     "name": "Mine Openings",
     "description": "",
     "prototype": {
      "attributes": {
       "PROBKEY": "MO",
       "COMMENTS": null,
       "PADNUMBER": null,
       "PADNAME": null,
       "X": null,
       "Y": null,
       "ROTATION": null,
       "STATUS": null,
       "UPDATEDBY": null,
       "DATEUPDATED": null
      }
     },
     "drawingTool": "esriFeatureEditToolPoint"
    }


Is the
domains": {
    "PROBKEY": {"type": "inherited"}
a good thing?
0 Kudos
soniadickerson1
Occasional Contributor
Evan,

Did you try using a direct connect to the geodatabase?  If so,  did it make any difference?

We have the same problem with a silverlight app using a 10.1 feature service writing to a 10.0 SDE Oracle database.

Thanks greatly.
0 Kudos
EvanKarmazin
New Contributor
The database was apparently just upgraded from 9.3 to 10.1. This is probably the issue, I had moved on to trying the local feature editing, so Ill post whether redoing the direct connection in a specific way ends up fixing the issue after that update
0 Kudos