1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

EmbulkでConfig読み込み時にエラー(Can not deserialize instance of java.lang.String out of START_OBJECT token)

Last updated at Posted at 2020-01-07

環境

embulk 0.9.17

現象

EmbulkでConfig読み込み時にエラー

org.embulk.exec.PartialExecutionException: org.embulk.config.ConfigException: java.lang.IllegalArgumentException: Can not deserialize instance of java.lang.String out of START_OBJECT token

原因

liquidのinclude構文を使っていたが、template側のsyntaxが間違っていた。

読み込んでいた親ファイル

foo_parents.yml.liquid
{% include 'foo_input', file_path: '/path/to/' %}

filters:
(以下略)

子ファイル

_foo_input.yml.liquid
in:
    type: file
    path_prefix: { file_path }
    last_path: foobar.csv
(以下略)

_foo_input.yml.liquid の変数部分 { file_path } が間違っていて、 {{ file_path }} (2重カッコ)が正しい。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?