You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by K Makeev <k....@gmail.com> on 2019/02/22 10:38:39 UTC
PutDatabaseRecord to Oracle table with default column fails
Hi all
I want to put data from source oracle table to target table. Except that
target table has one default column. Like source_table(a varchar2(10)),
target_table(a varchar2(10), b number 0).
When I do simple flow ExecuteSQL->PutDatabaseRecord last processor fails
with
12:10:18 WARNING1098d314-0169-1000-0000-000019aa51df
PutDatabaseRecord[id=1098d314-0169-1000-0000-000019aa51df] Failed to
process
StandardFlowFileRecord[uuid=0a85596b-2cc5-4a11-8906-52cfff10ea0c,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1550764716034-6186,
container=default, section=42], offset=376640,
length=440],offset=0,name=5770334417944140,size=440] due to Stream has
already been closed:
[image: image.png]
NIfi version 1.15. Oracle 12.2. Oracle driver ojdbc8.jar.
How to deal with it? I need target table column B to be filled with default
values.
Thanks, Kirill
Re: PutDatabaseRecord to Oracle table with default column fails
Posted by K Makeev <k....@gmail.com>.
source_table(a varchar2(10)), target_table(a varchar2(10), b number default
0)
fix
On Fri, Feb 22, 2019 at 1:38 PM K Makeev <k....@gmail.com> wrote:
> Hi all
>
> I want to put data from source oracle table to target table. Except that
> target table has one default column. Like source_table(a varchar2(10)),
> target_table(a varchar2(10), b number 0).
> When I do simple flow ExecuteSQL->PutDatabaseRecord last processor fails
> with
> 12:10:18 WARNING1098d314-0169-1000-0000-000019aa51df
> PutDatabaseRecord[id=1098d314-0169-1000-0000-000019aa51df] Failed to
> process
> StandardFlowFileRecord[uuid=0a85596b-2cc5-4a11-8906-52cfff10ea0c,claim=StandardContentClaim
> [resourceClaim=StandardResourceClaim[id=1550764716034-6186,
> container=default, section=42], offset=376640,
> length=440],offset=0,name=5770334417944140,size=440] due to Stream has
> already been closed:
>
> [image: image.png]
>
> NIfi version 1.15. Oracle 12.2. Oracle driver ojdbc8.jar.
>
> How to deal with it? I need target table column B to be filled with
> default values.
>
> Thanks, Kirill
>