I was going to suggest a FeatureReader to read schema and datasets but that only reads the first schema, since the feature_type is always ESRIJSON
If schemas are identical for each folder, I think i might look at using a workspace runner, and running your process once per folder
Hi @ebygomm
Yes, I think that is the answer.
I give it a try and provide feedback.
Thanks a lot!
Hum... Getting closer but still not right.
I made a parent workspace which role is to call a child workspace for each data folder found.
The process runs smoothly but at the end I get only one dataset in the geodatabase (the first to be treated?).
To check on what was going on (since the problem with that method is that there is no log from the child process), I added an ESRI-JSON output to visualize out files. When testing with theses new settings, it appears that the JSON files are all generated correctly, but there is still only one dataset in the geodatabase.
Parent workspace
Child workspace
Hum... Getting closer but still not right.
I made a parent workspace which role is to call a child workspace for each data folder found.
The process runs smoothly but at the end I get only one dataset in the geodatabase (the first to be treated?).
To check on what was going on (since the problem with that method is that there is no log from the child process), I added an ESRI-JSON output to visualize out files. When testing with theses new settings, it appears that the JSON files are all generated correctly, but there is still only one dataset in the geodatabase.
Parent workspace
Child workspace
I'd try something like this
How are you specifying the name for your dataset?
Hi!
Many thanks! I have finally succeeded to do what I wanted.
The FeatureReader works well! It enables not to specify the whole schema before so it is completely dynamics, thanks for the tip!
The problem did not came from this though. It was on the ESRI gdb writer. Indeed, I checked the option "overwrite" which was OK until I split my main process using "workspaceRunner". Since the output port then went to the child process, the gdb whole content when then deleted EACH TIME thsi process was run, that is for each folder to be treaded. That is why I ended up with only one dataset; the last treated one...
This thread can be marked as SOLVED.
Take care,
Jean
I unchecked "overwrite" and used "drop table" option instead in the feature types parameters.