Select to view content in your preferred language

Invalid value for parameter

1702
5
07-05-2010 09:20 AM
AriRaimundo
Emerging Contributor
Hi guys,

I'm trying to consume a geoprocessing service that I've published in ArcGIS Server 9.3.1 (SP1) that contains an input parameter of type GPFeatureRecordSetLayer. This parameter was created in ArcCatalog using a schema-less FeatureSet.

My client application uses Geoprocessor class of ArcGIS API for Microsoft Silverlight/WPF just like the sample "Clip_Features". I first tried to consume using Silverlight without success and then I tried with REST web interface but I got the same error (Invalid value for parameter X).

Is there any known issues of using schema-less parameters?

See below parameter that I'm trying to pass through web interface.

{ 
    "geometryType" : "esriGeometryPolygon",
    "spatialReference" : {"wkid" : 31984},
    "features" : 
    { 
        "geometry" : 
 {
     "rings" : 
            [
                [
                  [739374.29,8853590.48],
                  [742721.27,8853590.48],
                  [742721.27,8857347.57],
                  [739374.29,8857347.57],
                  [739374.29,8853590.48]
                ]
            ]
 }
    }  
}

Thanks in advance.

Ari C. Raimundo
Application Developer
Curitiba-PR-Brazil
0 Kudos
5 Replies
RaviNarayanan
Esri Contributor
Ari,

This is a known bug fixed in 10.0
NIM045046: For geoprocessing services, Execute Task or Submit Job fails with error "invalid value for input" if the input features do not have a defined schema.

Thanks
0 Kudos
AriRaimundo
Emerging Contributor
Ravi,

There's no workaround or some patch that I can install in 9.3.1 SP1 version?
Thanks a lot.

Ari C. Raimundo
Application Developer
Curitiba-PR-Brazil
0 Kudos
RaviNarayanan
Esri Contributor
Ari,

I am not aware of any workaround solutions to this issue. There is also no patch available for 9.3.1 at this time. As mentioned earlier this is resolved in 10.0.

Thanks
Ravi
0 Kudos
AgatinoLa_Rosa
Emerging Contributor
I am not sure why using a geoprocessing service published in ArcGIS Server 9.3.1 (SP1) with no input parameters (all values of the tool Manage Map Server Cache Tiles are coded in the python script) runs fine in ArcCatalog and when consumed in a REST page with SubmitJob returns the following:

    * esriJobMessageTypeInformative: Submitted.
    * esriJobMessageTypeInformative: Executing...
    * esriJobMessageTypeInformative: Executing (FullCache): FullCache
    * esriJobMessageTypeInformative: Start Time: Sat Oct 23 08:33:06 2010
    * esriJobMessageTypeInformative: Running script FullCache...
    * esriJobMessageTypeInformative: Failed to execute. Parameters are not valid. ERROR 000562:   Admin privileges not available. Failed to execute (ManageMapServerCacheTiles).
    * esriJobMessageTypeInformative: Completed script FullCache...
    * esriJobMessageTypeInformative: Executed (FullCache) successfully.
    * esriJobMessageTypeInformative: End Time: Sat Oct 23 08:33:07 2010 (Elapsed Time: 1,00  seconds)
    * esriJobMessageTypeInformative: Succeeded.


Start Time: Sat Oct 23 10:26:56 2010
Submitted (FullCache to TryCache on myserver) successfully.
End Time: Sat Oct 23 10:26:56 2010 (Elapsed Time: 0.00 seconds)
0 Kudos
AgatinoLa_Rosa
Emerging Contributor
I have been able to make it at work after installation of SP2 on both Server and Desktop (9.3.1).
0 Kudos