# JDBC Sink: (STRUCT) type doesn't have a mapping to the SQL database column type

**URL:** <https://forum.confluent.io/t/jdbc-sink-struct-type-doesnt-have-a-mapping-to-the-sql-database-column-type/9699>\
**Category:** Kafka Connect\
**Created:** [29 December 2023 18:11 UTC](https://forum.confluent.io/t/jdbc-sink-struct-type-doesnt-have-a-mapping-to-the-sql-database-column-type/9699 "2023-12-29T18:11:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deywillan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/deywillan/32/3439_2.png) [@deywillan](https://forum.confluent.io/u/deywillan)\
**Post date:** [29 December 2023 18:11 UTC](https://forum.confluent.io/t/jdbc-sink-struct-type-doesnt-have-a-mapping-to-the-sql-database-column-type/9699/1 "2023-12-29T18:11:56Z")

</div>

Hello everyone!

I’m conducting a test with Kafka Connect on a table in SQL Server that will be transferred to an Oracle database. The ingestion from SQL Server to Kafka occurred without errors, but the transfer to Oracle is returning the following error:

```auto
java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.kafka.connect.errors.ConnectException: azsqldbbnf.databaseTest.dbo.Table.Value (STRUCT) type doesn't have a mapping to the SQL database column type

```

Here are the Sink configurations:

```auto
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"connection.url": "jdbc:oracle:thin:@10.1.10.33:1521:test",
"connection.user": "INTEGRATION",
"connection.password": " *********",
"topics": "azsqldbbnf.databaseTest.dbo.Table",
"insert.mode": "upsert",
"pk.mode": "record_key",
"pk.fields": "Id",
"auto.create": "true",
"auto.evolve": "true",
"db.timezone": "UTC",
"table.name.format": "${topic}",
"key.converter.schemas.enable": "true",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "http://10.1.10.21:8081",
"value.converter.schema.registry.url": "http://10.1.10.21:8081",
"value.converter.schemas.enable": "true",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"transforms": "flatten,dropPrefix",
"transforms.flatten.type": "org.apache.kafka.connect.transforms.Flatten$Value",
"transforms.dropPrefix.type": "org.apache.kafka.connect.transforms.RegexRouter",
"transforms.dropPrefix.regex": "dbo.*",
"transforms.dropPrefix.replacement": "$1"

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [28 January 2024 18:11 UTC](https://forum.confluent.io/t/jdbc-sink-struct-type-doesnt-have-a-mapping-to-the-sql-database-column-type/9699/2 "2024-01-28T18:11:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
