ERROR

"Invalid or missing input parameters" error after performing Project operation from REST on a Geometry Service

Last Published: April 8, 2024

Error Message

When performing a Project operation on a Geometry Service from REST:

ArcGIS REST Services Directory Home > services > Utilities > Geometry (GeometryServer) > project,

the following error may be encountered:

"Invalid or missing parameters."

Some examples are shown in the following images:

Example Project error

Example Project error

Cause

One cause of this may be the formatting of the Geometries parameter. This parameter should be completed with an array of the geometries to be projected. The structure of each geometry in the array is the same as the structure of the JSON geometry objects returned by the ArcGIS REST API. For reference, see, the ArcGIS REST APIs documentation: JSON geometry objects.

Solution or Workaround

Use the JSON Geometry objects and Geometries parameter documentation to make sure that the array is formatted correctly, based on the type of geometry.

    The following example shows the formatting for the 3D esriGeometryPoint type:

    {
      "x": -118.15,
      "y": 33.80,
      "z": 10.0,
      "spatialReference": {
        "wkid": 4326
      }
    }

    example of formatting the 3d point geometry type

    Article ID:000031959

    Software:
    • ArcGIS REST API

    Receive notifications and find solutions for new or common issues

    Get summarized answers and video solutions from our new AI chatbot.

    Download the Esri Support App

    Related Information

    Discover more on this topic

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options