I have a workspace (2018.1) that read a ArcSDE feature class into a Geojson file and then read the Geojson into MongoDB. The Geojson writer works fine in writing, but always gives an error at the end of writing regardless of the geometry type or the size of the feature class:
-------------------------------------------------------------------------------------------------------
Opening the GEOJSON reader with source dataset 'W:\\gis_data_admin\\Admin\\AllenG\\FME\\MongoDB\\Geojson\\IHS_INT.json'
A JSON syntax error was found at line 1, column 0
The JSON data is incomplete: Unexpectedly encountered the end of JSON data
A JSON syntax error was found at line 1, column 0
The data does not contain any JSON text
-------------------------------------------------------------------------------------------------------
If I change the reader to shape files, then I don't have the above problem. So the problem seems to be related to ArcSDE feature class.
On the other hand, the Geojson reader works fine for a small feature class, or when the Geojson file is small, around a couple of GB size, but throws out the error: "Insufficient memory available -- error code was 2. Offending plug-in is 'JSON'" when the file size exceeds 5 GB, or the features exceed about 500,000. At first I thought it is the MongoDB writer issue, but after I disable the writer, the error persists.