Skip to main content

I have a 2023.2.1 workbench that reads in a JSON file using the TextLine reader, does some FME magic and the outputs the results for FME Server (Flow) to use.

2023.2.1 workbench to process JSON

The reader parameters are set to read the whole file at once

The workbench is published to FME Flow 2023.2.1 and is used in an Automation that gets an AWS SNS message with the JSON info in the message of the SNS.

 

The SNS is received as expected but the message appears to be reading each line as a separate source and as such it never processes the file as expected.

 

 

Any advice as to what I am doing wrong in the process?

Hi ​@deanhowell ,

It seems that the Log says the dataset parameter of a Text File reader recieved incorect file path strings - e.g. "{", "Type : Notification,", etc. Those strings are not file path strings, so naturally the workspace fails.


If you are attempting to pass a JSON document created in the first workspace to the second one through the output from FME Flow Automations writer, you can receive the document directly through a Text type user parameter, instead of using a Text File reader.


Thanks ​@takashi, I removed the file reader and add the parameter as suggested. It took a few iterations to get the right combination but all looks good now :)