span8
span4
span8
span4
I'm using FME 2018.0.
I originally thought this was a problem with the dynamic attribute definition of the writer, but for this test I have used a Manual schema.
I don't understand why, but the writer is trying to parse a date that I am not seeing in the inspector.The value for Modified_date in the inspector is:
2011-05-27
The response I get from the error is:
{ "took": 3, "errors": true, "items": [ { "index": { "_index": "testing_2", "_type": "drawings", "_id": "3mN9KWMBLz2D_kWNISIW", "status": 400, "error": { "type": "mapper_parsing_exception", "reason": "failed to parse [Modified_date]", "caused_by": { "type": "illegal_field_value_exception", "reason": "Cannot parse \"0000/00/00 00:00:00.000\": Value 0 for monthOfYear must be in the range [1,12]" } } } }, { "index": { "_index": "testing_2", "_type": "drawings", "_id": "32N9KWMBLz2D_kWNISIW", "status": 400, "error": { "type": "mapper_parsing_exception", "reason": "failed to parse [Modified_date]", "caused_by": { "type": "illegal_field_value_exception", "reason": "Cannot parse \"0000/00/00 00:00:00.000\": Value 0 for monthOfYear must be in the range [1,12]" } } } } ] }
As I have answered already ina relevant thread, FME handles date/time values as character strings while translating and the SchemaSetter won't consider any attribute value as a date/time value even if it was formatted with Standard FME Date/Time format.
If you actually need todynamicallyconfigure destination schema, you will have to implement a process to define the destination schema (i.e.create "attribute{}" list).See these articles to learn more.
或者,如果基本目标模式可以从源数据集动态地产生,但你只需要随时添加相同的日期字段,你也可以静态它添加到每一个目标架构通过动态作家特征类型的用户属性选项卡。
© 2019 Safe Software Inc |Legal