<?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 Re: NIFI Infer Schema trying to convert string(alpha) to date in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/357611#M237636</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;i'm also facing the similar issue with 1.16.3 and 1.16.2, i'm attaching the referenced images&lt;/P&gt;&lt;P&gt;Running NIFI Using docker in Mac M1&lt;/P&gt;&lt;P&gt;JSON input data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[ {
  "full_name" : "Anatolij Finkbeiner",
  "gender" : "male",
  "email" : "anatolij.finkbeiner@example.com",
  "phone" : "0166-2058423",
  "dob" : "2000-09-11T15:40:10.890Z",
  "uuid" : "747f27a8-88c0-452e-b360-3ddf5ee67211",
  "address" : "Germany, Schleswig-Holstein, Guben",
  "createdAt" : "2022-11-15T11:09:35.912Z"
}, {
  "full_name" : "Lucia Soto",
  "gender" : "female",
  "email" : "lucia.soto@example.com",
  "phone" : "946-359-112",
  "dob" : "1987-09-15T09:58:34.821Z",
  "uuid" : "8edb62cd-0bdc-41ee-8806-fecfd6958e33",
  "address" : "Spain, Navarra, Santiago de Compostela",
  "createdAt" : "2022-11-15T11:09:35.911Z"
} ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.11.10 PM.png" style="width: 492px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36240i2637288C7B4C16D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.11.10 PM.png" alt="Screen Shot 2022-11-15 at 3.11.10 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;JSON Tree READER&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.17.41 PM.png" style="width: 797px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36239i01CE1AABE8C52D6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.17.41 PM.png" alt="Screen Shot 2022-11-15 at 3.17.41 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Avro Schema&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "type": "record",
  "namespace": "nifi",
  "name": "userSchema",
  "fields": [
    {
      "name": "dob",
      "type": {
        "type": "string",
        "logicalType": "timestamp"
      }
    },
    {
      "name": "createdAt",
      "type": {
        "type": "long",
		"logicalType": "timestamp"
      }
    },
    {
      "name": "full_name",
      "type": "string"
    },
    {
      "name": "gender",
      "type": "string"
    },
    {
      "name": "email",
      "type": "string"
    },
    {
      "name": "address",
      "type": "string"
    },
    {
      "name": "uuid",
      "type": "string"
    },
    {
      "name": "phone",
      "type": "string"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avro Record set writer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.15.52 PM.png" style="width: 790px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36238i6BEE139990E1AEDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.15.52 PM.png" alt="Screen Shot 2022-11-15 at 3.15.52 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Avro reader&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.14.04 PM.png" style="width: 773px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36237iBE2DE9E18FA4D703/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.14.04 PM.png" alt="Screen Shot 2022-11-15 at 3.14.04 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 11:21:16 GMT</pubDate>
    <dc:creator>Yashar</dc:creator>
    <dc:date>2022-11-15T11:21:16Z</dc:date>
    <item>
      <title>NIFI Infer Schema trying to convert string(alpha) to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/353170#M236652</link>
      <description>&lt;P&gt;While converting the input flow file JSON to any other format using query record (CSVwriter or AVRO Writer) using inferschema strategy the NIFI processor is trying to convert to Date based on first few characters of the incoming string.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;NIFI Error Output&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Successfully parsed a JSON object from input but failed to convert into a Record object with the given schema\n- Caused by: org.apache.nifi.serialization.MalformedRecordException: Successfully parsed a JSON object from input but failed to convert into a Record object with the given schema\n- Caused by: org.apache.nifi.serialization.record.util.IllegalTypeConversionException: Failed Conversion of Field [sharepoint_documents_name__c] from String [10-7-20 2x10GE LAN PHY XXXXXXXXXXXX] to LocalDate\n- Caused by: java.time.format.DateTimeParseException: Text '10-7-20 2x10GE LAN PHY XXXXXXXXXXX' could not be parsed at index 0: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any workaround/fixes available in the newer version. Iam using NIFI 16.1&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 04:04:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/353170#M236652</guid>
      <dc:creator>Althotta</dc:creator>
      <dc:date>2022-09-23T04:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Infer Schema trying to convert string(alpha) to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/354340#M236899</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/85385"&gt;@Althotta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this on 1.16.2 and the behaviour you described doesn't happen to me.&lt;/P&gt;&lt;P&gt;Would you be able to share you flow and processor/controller services configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2022 23:01:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/354340#M236899</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-10-09T23:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Infer Schema trying to convert string(alpha) to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/355163#M237074</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/85385"&gt;@Althotta&lt;/a&gt;,&amp;nbsp;&amp;nbsp; If you are still experiencing the issue, can you provide the information&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp; has requested?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:44:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/355163#M237074</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2022-10-18T14:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Infer Schema trying to convert string(alpha) to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/357611#M237636</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;i'm also facing the similar issue with 1.16.3 and 1.16.2, i'm attaching the referenced images&lt;/P&gt;&lt;P&gt;Running NIFI Using docker in Mac M1&lt;/P&gt;&lt;P&gt;JSON input data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[ {
  "full_name" : "Anatolij Finkbeiner",
  "gender" : "male",
  "email" : "anatolij.finkbeiner@example.com",
  "phone" : "0166-2058423",
  "dob" : "2000-09-11T15:40:10.890Z",
  "uuid" : "747f27a8-88c0-452e-b360-3ddf5ee67211",
  "address" : "Germany, Schleswig-Holstein, Guben",
  "createdAt" : "2022-11-15T11:09:35.912Z"
}, {
  "full_name" : "Lucia Soto",
  "gender" : "female",
  "email" : "lucia.soto@example.com",
  "phone" : "946-359-112",
  "dob" : "1987-09-15T09:58:34.821Z",
  "uuid" : "8edb62cd-0bdc-41ee-8806-fecfd6958e33",
  "address" : "Spain, Navarra, Santiago de Compostela",
  "createdAt" : "2022-11-15T11:09:35.911Z"
} ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.11.10 PM.png" style="width: 492px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36240i2637288C7B4C16D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.11.10 PM.png" alt="Screen Shot 2022-11-15 at 3.11.10 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;JSON Tree READER&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.17.41 PM.png" style="width: 797px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36239i01CE1AABE8C52D6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.17.41 PM.png" alt="Screen Shot 2022-11-15 at 3.17.41 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Avro Schema&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "type": "record",
  "namespace": "nifi",
  "name": "userSchema",
  "fields": [
    {
      "name": "dob",
      "type": {
        "type": "string",
        "logicalType": "timestamp"
      }
    },
    {
      "name": "createdAt",
      "type": {
        "type": "long",
		"logicalType": "timestamp"
      }
    },
    {
      "name": "full_name",
      "type": "string"
    },
    {
      "name": "gender",
      "type": "string"
    },
    {
      "name": "email",
      "type": "string"
    },
    {
      "name": "address",
      "type": "string"
    },
    {
      "name": "uuid",
      "type": "string"
    },
    {
      "name": "phone",
      "type": "string"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avro Record set writer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.15.52 PM.png" style="width: 790px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36238i6BEE139990E1AEDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.15.52 PM.png" alt="Screen Shot 2022-11-15 at 3.15.52 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Avro reader&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-11-15 at 3.14.04 PM.png" style="width: 773px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36237iBE2DE9E18FA4D703/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-11-15 at 3.14.04 PM.png" alt="Screen Shot 2022-11-15 at 3.14.04 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 11:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/357611#M237636</guid>
      <dc:creator>Yashar</dc:creator>
      <dc:date>2022-11-15T11:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Infer Schema trying to convert string(alpha) to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/357618#M237637</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;I have faced the similar issue with Apache/Nifi 1.16.3 and 1.16.2, attaching&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avro Schema&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "type": "record",
  "namespace": "nifi",
  "name": "userSchema",
  "fields": [
    {
      "name": "dob",
      "type": {
        "type": "string",
        "logicalType": "timestamp"
      }
    },
    {
      "name": "createdAt",
      "type": {
        "type": "long",
		"logicalType": "timestamp"
      }
    },
    {
      "name": "full_name",
      "type": "string"
    },
    {
      "name": "gender",
      "type": "string"
    },
    {
      "name": "email",
      "type": "string"
    },
    {
      "name": "address",
      "type": "string"
    },
    {
      "name": "uuid",
      "type": "string"
    },
    {
      "name": "phone",
      "type": "string"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;&lt;SPAN&gt;processor/controller services configuration&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Convert Record Processor" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36242iCCE99B6609405122/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-11-15 at 2.31.54 PM.png" alt="Convert Record Processor" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Convert Record Processor&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error Image" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36241iC852287B272524B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-11-15 at 3.11.10 PM.png" alt="Error Image" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error Image&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Avro Reader Configuration" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36243iBA858133EBF5F96F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-11-15 at 3.14.04 PM.png" alt="Avro Reader Configuration" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Avro Reader Configuration&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Avro Record set writer" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36244iBBC2685C5C79C53D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-11-15 at 3.15.52 PM.png" alt="Avro Record set writer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Avro Record set writer&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON Tree READER" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36245i35A4209184C0036B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-11-15 at 3.17.41 PM.png" alt="JSON Tree READER" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JSON Tree READER&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 11:32:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/357618#M237637</guid>
      <dc:creator>Yashar</dc:creator>
      <dc:date>2022-11-15T11:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Infer Schema trying to convert string(alpha) to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/357736#M237657</link>
      <description>&lt;P&gt;I'm able to fix this .. In JSON Tree READER the configuration for `Schema Access Strategy` should be "Infer Schema"&lt;BR /&gt;Input date format will be&amp;nbsp;"yyyy-MM-dd HH:mm:ss.SSS'Z'"&lt;BR /&gt;avro schema for the same will be&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
      "name": "createdAt",
      "type": {
        "type": "long",
		"logicalType": "timestamp-millis"
      }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 07:19:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Infer-Schema-trying-to-convert-string-alpha-to-date/m-p/357736#M237657</guid>
      <dc:creator>Yashar</dc:creator>
      <dc:date>2022-11-16T07:19:47Z</dc:date>
    </item>
  </channel>
</rss>

