<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NiFi Avro Schema for UUID to insert to Cassandra in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Avro-Schema-for-UUID-to-insert-to-Cassandra/m-p/365927#M239442</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the below Avro schema to insert records to cassandra using PutCassandraRecord processor, here this column is uuid datatype in cassandra database but nifi is not able to resolve this datatype and the getting this error&lt;/P&gt;&lt;PRE&gt;PutCassandraRecord[id=676539f3-2fc7-173e-8d3f-2e703922f111] Unable to write the records into Cassandra table due to com.datastax.driver.core.exceptions.InvalidQueryException: UUID should be 16 or 0 bytes (36)
- Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: UUID should be 16 or 0 bytes (36): {}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avro Schema defined in AvroSchemaRegistry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "type": "record",
    "name": "provenance_event",
    "namespace": "provenanceRecords",
    "fields": [{
        "name": "id",
	  	"type": ["null", {"type": "string", "logicalType": "uuid"}],
        "default": null
    }]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFI avro schema is not able to convert string datatype to uuid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample JSON which I sending&lt;/P&gt;&lt;P&gt;[ { "id" : "5b616957-2a98-4a9e-97c8-2d2333966a0f" }]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am on NiFi 1.16.3 version&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&lt;A href="https://community.cloudera.com/users/363/bbende.html" rel="user" target="_blank"&gt;@Bryan Bende&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Mar 2023 17:24:25 GMT</pubDate>
    <dc:creator>Meeran</dc:creator>
    <dc:date>2023-03-12T17:24:25Z</dc:date>
  </channel>
</rss>

