Skip to main content

Official Support Articles

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.

Latency With Qlik Replicate Task: 22007 NativeError: 100040 Message: Date '0000-00-00' is not recognized

cancel
Showing results for 
Search instead for 
Did you mean: 
Dineshan
Support
Support

Latency With Qlik Replicate Task: 22007 NativeError: 100040 Message: Date '0000-00-00' is not recognized

A task which has been running okay for months started to build latency. 

Error:

22007 NativeError: 100040 Message: Date '0000-00-00' is not recognized

 

 

 

Resolution

This was due to a wrong date. We found an expression for the the bad date from the Source. 

Steps to resolve the issue:

  1. Open the target table from Replicate GUI
  2. Select "Transform" from the left menu
  3. For all the dates you see on the right side click on the "fx" and paste the below expression on the expression builder.

    Selecting FX.PNG

  4. Paste the below expression in Build Expression window on the right side.
    CASE
    WHEN strftime('%Y-%m-%d', $ModifiedDate) IS NULL THEN
    '0001-01-01'
    ELSE
    $ModifiedDate
    END​


    Date Expression.PNG

  5. You can test it by clicking on parse expression and test expression. If the value, you entered is a valid date then the output should be the valid date. If the value, you entered is null you should see '0001-01-01' like above.

 

Environment

Qlik Replicate 

 

 

Labels (1)
Version history
Last update:
‎2023-03-27 04:57 AM
Updated by: