Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Rimvis
Contributor III
Contributor III

tSchemaComplianceCheck not validating dates with timezone

Hi all,

 

I'm facing a problem when using tSchemaComplianceCheck component to validate incoming date/time.

 

The data comes in the format "yyyy-MM-dd'T'HH:mm:ssXXX", for example "2019-10-02T21:45:33+01:00".

Schema check fails with the message "wrong DATE pattern or wrong DATE data"

 

However, when I'm parsing the same date using the same format, it's working without any issues:

TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ssXXX",... )

 

I have tried setting "Ignore TimeZone when check date" without any effect. 

 

Using Talend Open Studio for Data Integration, v7.1.1

 

Any ideas?

 

Thanks,

Rimvis

Labels (2)
17 Replies
Rimvis
Contributor III
Contributor III
Author

Hi @nthampi ,

 

I'm not changing the value, that's the point 0683p000009MACn.png The same value is being validated if process is running in UTC+2 timezone, but fails if running in UTC.

 

I'm changing time zone in Date & Time settings on my computer:

0683p000009M7se.png

Anonymous
Not applicable

Hi,

 

    I got your point now 🙂

 

    It looks like a bug and could you please create jira ticket for this issue https://jira.talendforge.org

 

   If you are an enterprise customer, please create a support case so that they can report the bug on your behalf and fast track the resolution. 

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

Rimvis
Contributor III
Contributor III
Author

Hi @nthampi ,

 

Sorry for not responding for a while. I was about to create a ticket, but I'm not sure which project should I pick. Can you please advise?

 

Thanks,

Rimvis

Anonymous
Not applicable

Hi,

 

    You can select Studio or Talend Data Integration.

 

    In case you selected wrong project accidentally, they will change it to right project 🙂

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

Rimvis
Contributor III
Contributor III
Author

Thanks @nthampi ,

 

I have raised an issue: https://jira.talendforge.org/browse/TDI-43136 

Let's see how it will go.

 

Cheers,

Rimvis

Rimvis
Contributor III
Contributor III
Author

It appears that there is a check box called Use Strict Date Check (in Advanced settings). Validation is working correctly under UTC if this check box is enabled.

Anonymous
Not applicable

@nthampi 

 

Thanks, But if we use String as data type then invalid date like "0000-00-00T00:00:00.000" will be treated as valid date. how to capture this scenario then?

Anonymous
Not applicable

It appears that there is a check box called Use Strict Date Check (in Advanced settings). Validation is working correctly under UTC if this check box is enabled.