bridgji

Get 500 error with json format getting layers

Discussion created by bridgji on May 24, 2012
When I call http://fmtvmarcgis10/ArcGIS/rest/services/DemoMap2/MapServer/layers?f=json against a map we have containing a geoprocessign service I wrote.
I get {"currentVersion":10.03,"error":{"code":500,"message":"An unexpected error occurred processing the request.","details":[]}}],"tables":[]}
If I chagne it to html format I'm getting the information i expect, I've pasted a sample at the end of the email.

The map this is occuring with has a geoprocessing service I've published  based on the sample in help which seems to publish fine and run as I expect in map.

I'm not sure why formating it as json vs html would cause it to fail.

I don't seem to see anything in the logs.

Thanks,
Jim


Layers:


Layer: BuffClip (ID: 0)

Display Field:

Type: Group Layer

Geometry Type:

Description:

Definition Expression:

Copyright Text:

Min. Scale: 0

Max. Scale: 0

Default Visibility: True

Extent:

XMin: 1315909.87892286
YMin: 282406.861164436
XMax: 1315918.98717237
YMax: 282415.880175278
Spatial Reference: 2285

Has Attachments: False

HTML Popup Type: esriServerHTMLPopupTypeNone

Fields:
Type ID Field: N/A



Layer: Parcels (ID: 2)

Display Field: Name

Type: Feature Layer

Outcomes