Hi,
I'm reopening the issue in the below post, as it seems that there may be a bug involved:
It seems that when I use an input tag like this: INPUT_TAGS: INPUT1 INPUT2
and a template with: $(INPUT_LINES) for both (it works, generating two factory input tags),
FME translates this into a Python factory definition with these input tags:
INPUT INPUT1 FEATURE_TYPE AttributeCreator_OUTPUT
INPUT INPUT2 FEATURE_TYPE AttributeCreator_2_OUTPUT
The problem as I see it, is that this syntax is illegal, hence a bug.
The factory documentation states that it must look like:
Syntax
FACTORY_DEF <ReaderKeyword> PythonFactory
[FACTORY_NAME <factory name>]
[INPUT FEATURE_TYPE <feature type>
[<attribute name> <attribute value>]*
[<feature function>]*]*
SYMBOL_NAME <python symbol name>
[SOURCE_CODE <source code>]
[PYTHON_NAMESPACE FMEOBJECTS]
[OUTPUT PYOUTPUT FEATURE_TYPE <feature type>
[<attribute name> <attribute value>]*
[<feature function>]*]*
I.e.. nothing between "INPUT" and "FEATURE_TYPE", which explains the error messages I'm getting:
The input tag 'INPUT1' in 'FACTORY_DEF .....' is not a valid input tag for this factory
Is the documentation in error, or is there a bug in the automatic translation. Please advise.
Thanks.
Lars I.