How to start a batch process in FME?

How to start a batch process in FME?

If the process is not carried out right away, a batch .tcl file is created containing the batch process settings, as well as a .bat file which is used to start the process at a later date. Using the same workspace as above in the Create Batch Translation Wizard, setting the Source Type to the GeoTiff Reader:

How to run a script in a bat file?

Firstly run the workspace (script) in Workbench and check out the log file. The very first lines of the log window will show you what the command is to run the workspace in a bat file. So you can simply copy and paste that into a bat file. However, another – maybe better – method is to use a WorkspaceRunner transformer.

What is the source file parameter in FME?

The Source File parameter is set to path_windows, an attribute created by the Directory and File Pathnames Reader: The option to Wait for Jobs to Complete ensures one job is completed before starting another.

How does FME know if a file has the same schema?

If you know the files have the same schema, FME will not have to perform an initial scan of all the files to determine their schema. Instead, FME will take the first file as being representative of the data model. If you have specified more than one output destination, this pane appears for each destination.

How to create a log file from a batch file?

It will create a file in the directory called ‘logfile.txt’ but it is empty. The process that calls this batch file from the remote server is scheduled, and I want to see what happened when this was called later. How do I get the results to write to the log file.

How to create a ” log ” file in FME?

This reads the shapefiles in c: emp into %%F and runs the workbench for each one. The log file has the same name as the input shapefile through the use of %%~nF. Maybe change your input list to read *.shp and change your SourceDataset_SHAPE to %%D and your DestDataset_SHAPE to have %%D.

How to create a ” log ” in a specific file output?

You could do a fanout in the workbench on fme_basename after setting the reader to read all shapefiles in the source directory but not sure how you would write out separate log files for each one. Thanks for contributing an answer to Geographic Information Systems Stack Exchange!