Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
JDBC Oracle import Last Run Date Time not updating correctly. - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • JDBC Oracle import Last Run Date Time not updating correctly.
KB0596380

JDBC Oracle import Last Run Date Time not updating correctly.


3396 Views Last updated : Oct 16, 2023 public Copy Permalink
KB Summary by Now Assist

Description

Using JDBC from an Oracle database, the auto updating of the Last Run Date Time field adds an extra single quote to the query string and then fails to import.

Steps to Reproduce

  1. Create a JDBC data source to import data from an Oracle database table.<?p>

  2. Select the Use last run datetime field and set to_date('2016-06-07','yyyy-mm-dd') as Last run datetime.

  3. Update the record.

    The system adds '' around the last run datetime value which causes a SQL exception when loading the records.

 

Workaround

  1. Using the Oracle TIMESTAMP data type, set the time stamp in raw format (for example, 2016-05-01 16:04:30).

  2. Edit the time format specified in the Format last run datetime business rule according to your date time string, if the default format is different than your format.

    You might have to enter the last run datetime field name in all uppercase characters (such as INSERTED_ON instead of inserted_on)

Note – Although you can work around this problem by deactivating the 'Format last run datetime' business rule, the system in that case does not update the Last Run datetime value.


Related Problem: PRB667787

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.