Skip to main content

I have a application that is calling FME server by sending ESRI JSON as a parameter and returning a zipped shapefile download url. This is working fine as a job submitter but failing as a data download.

 

The succeeding json cmd line arguements in the job log are structured like : 

`--JSON_Text' `<opencurly><quote>displayFieldName<quote>:

The failing json like:

`--JSON_Text' `{"displayFieldName":

The error is:

The clause '@EvaluateExpression(FDIV,STRING_ENCODED,{displayFieldName:agn_name...,JSONFlattener) READ_FROM_FILE NO FILEPATH_OR_URL <Unused> EXPLODE_QUERY json RECURSIVE_FLATTEN NO ERROR_LIST_ATTR _json_error OUTPUT EXPLODED FEATURE_TYPE JSONFlattener_OUTPUT OUTPUT REJECTED FEATURE_TYPE JSONFlattener_<REJECTED>' is incorrect. The parameter to JSON_DOCUMENT must be a constant value, a value-of (&) attribute, or an FME function call

 

Is it possible to handle this problem on the FME end?

 

More info here https://github.com/geocortex/workflow-activities-fme/issues/15

 

 

There have been some recent cases where the permission level of the token have changed the response structure of JOSN when using the REST API. (https://community.safe.com/s/question/0D74Q0000082QgY/detail). I see in the github issue that there was an automation involved are there (extra) permissions that need to be set to get this to run? Perhaps this is somehow related.

Either way it's very strange behaviour.

 

Is there anyway that the json content can be sent as a body directly to a reader rather than as a user parameter? When publishing to FME Server you can specify a reader to receive the body of the request.


Reply