Skip to main content
Question

esri json encoded vs unencoded FME server job

  • August 6, 2021
  • 1 reply
  • 18 views

Forum|alt.badge.img

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

 

 

1 reply

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings