Nifi 将记录映射中的 None 字段投掷到 [table name] 定义的列
Nifi throwing None of the fields in the record map to the columns defined by [table name]
我正在尝试在 oracle 数据库上执行 sql 查询并将结果插入另一个 table,对于我的试用,我只是执行一个简单的查询 select 1 COUNT from dual
并尝试插入它到名称为 COUNT
的单个列 table 中。
Nifi上记录的内容好像是这样[{"COUNT":"1"}]
但日志不断抛出错误 due to java.sql.SQLDataException: None of the fields in the record map to the columns defined by the schem_name.table_name table:
有什么想法吗?
如果您的 table 名称不匹配,我相信您会收到同样的错误消息。 Translate Field Names
属性 仅翻译字段(列),而不翻译 table 名称。尝试以大写形式指定 schema/table 以匹配 Oracle 的预期。
我正在尝试在 oracle 数据库上执行 sql 查询并将结果插入另一个 table,对于我的试用,我只是执行一个简单的查询 select 1 COUNT from dual
并尝试插入它到名称为 COUNT
的单个列 table 中。
Nifi上记录的内容好像是这样[{"COUNT":"1"}]
但日志不断抛出错误 due to java.sql.SQLDataException: None of the fields in the record map to the columns defined by the schem_name.table_name table:
有什么想法吗?
如果您的 table 名称不匹配,我相信您会收到同样的错误消息。 Translate Field Names
属性 仅翻译字段(列),而不翻译 table 名称。尝试以大写形式指定 schema/table 以匹配 Oracle 的预期。