Hello,
I've setup four Workbenches, which I successfully get to run in sequence from a "mother" Workbench, which uses a sequence of Workspace Runners, waiting for each one to complete before calling the next one.
It works seamlessly when ran from FME Workbench. But, I really need to automate this (this is what it's all about - I can't always be around to press the "Run" button unfortunately...).
This is my first attempt in calling Workbench(es) via command line, and I just try the obvious:
fme "C:\Users\User.Name\Path\Projects Shared\Project_Name\configs\4_Workbench.fmw"
I tried first with the "mother" Workbench, and it failed. So then I tried with individual work benches, and they fail too.
I logged separate log files for each of the five Workbenches (mother + 4 called by the Workspace Runners), and the logs for the 4 Workbenches called have a similar error (I did change some names on purpose, to preserve names of people etc. in paths and file names):
ERROR |FeatureReader_4(QueryFactory): The clause 'TREAT_READER_PARAM_AMPERSANDS_AS_LITERALS YES' within 'FACTORY_DEF {*} QueryFactory FACTORY_NAME FeatureReader_4 INPUT FEATURE_TYPE SystemCaller_OUTPUT FCTQUERY_INTERACTION NONE COMBINE_ATTRIBUTES RESULT_ONLY QUERYFCT_ATTRIBUTE_PREFIX <Unused> COMBINE_GEOMETRY RESULT_ONLY ENABLE_CACHE NO QUERYFCT_TABLE_SEPARATOR SPACE READER_TYPE XLSXR READER_DATASET C:<backslash>Users<backslash>USER.NAME<backslash>OneDrive<space>-<space>FOLDER<backslash>Projects<space>Shared<backslash>PROJECT<backslash>data<backslash>SHEET.xlsx QUERYFCT_IDS READER_DIRECTIVES META_MACROS,SourceCONFIGURATION_DATASET<comma><comma>SourceEXCEL_COL_NAMES<comma>YES<comma>SourceFORCE_DATETIME<comma>NO<comma>SourceSCHEMA<comma><comma>SourceMANYFILE<comma><comma>SourceUSE_SCHEMA_OTHER_FILES<comma>No<comma>SourceADVANCED<comma><comma>SourceSCAN_SCHEMA_IF_DYNAMIC<comma>No<comma>SourceREAD_BLANK_AS<comma>Missing<comma>SourceEXPAND_MERGED_CELLS<comma>Yes<comma>SourceEXPOSE_ATTRS_GROUP<comma><comma>SourceXLSXR_EXPOSE_FORMAT_ATTRS<comma><comma>SourceQUERY_FEATURE_TYPES_FOR_MERGE_FILTERS<comma>Yes<comma>SourceCASE_SENSITIVE_FEATURE_TYPES<comma>YES<comma>SourceALLOW_DOLLAR_SIGNS<comma>YES<comma>SourceCREATE_FEATURE_TABLES_FROM_DATA<comma>Yes<comma>SourceSTRIP_SHEETNAME_SPACES<comma>YES<comma>SourceKEEP_SCHEMA_SETTINGS<comma>YES,METAFILE,XLSXR QUERYFCT_OUTPUT BASED_ON_CONNECTIONS CONTINUE_ON_READER_ERROR YES QUERYFCT_RESULT_TAGS MyField MyField<solidus>Table1 Sheet1 QUERYFCT_SET_FME_FEATURE_TYPE YES READER_PARAMS_WWJD EXCEL_COL_NAMES,YES,CREATE_FEATURE_TABLES_FROM_DATA,Yes,ALLOW_DOLLAR_SIGNS,YES,STRIP_SHEETNAME_SPACES,YES,CASE_SENSITIVE_FEATURE_TYPES,YES,USE_SCHEMA_OTHER_FILES,No,EXPAND_MERGED_CELLS,Yes,READ_BLANK_AS,Missing,KEEP_SCHEMA_SETTINGS,YES,SCAN_SCHEMA_IF_DYNAMIC,No,QUERY_FEATURE_TYPES_FOR_MERGE_FILTERS,Yes,FORCE_DATETIME,NO TREAT_READER_PARAM_AMPERSANDS_AS_LITERALS YES OUTPUT READER_ERROR FEATURE_TYPE FeatureReader_4_<REJECTED> OUTPUT MyField FEATURE_TYPE FeatureReader_4_MyField' is not recognized by the factory 'QueryFactory'
I began digging in to this, but I'm stumped right now. I only began working with FME three weeks ago (with some support here and there from other experts), so I'm pretty lost when it comes to running via command line. I tried batch deployment also, but since there's so much to learn I'd rather post my issue here and get some guidance in the right direction.
Thanks for any support,
ML