My Oracle Support Banner

Unable To Use SOQL Date Function Within ODI Mapping With Source Datastore In Salesforce (Doc ID 2417590.1)

Last updated on SEPTEMBER 10, 2018

Applies to:

Oracle Data Integrator - Version 12.2.1.2.6 and later
Information in this document applies to any platform.

Symptoms

When attempting to use Salesforce Object Query Language (SOQL) in a Filter of an Oracle Data Integrator (ODI) Mapping where a source Datastore is coming from Salesforce, execution fails with the following error.

Caused By: java.sql.SQLSyntaxErrorException: [FMWGEN][SForce JDBC Driver][SForce]Column not found: LAST_MONTH in statement

 

SOQL date literals work fine using Salesforce developer.

This is needed to extract data based on last N number of days from Salesforce.

To reproduce:

  1. Create a Mapping that has Salesforce as source, and Oracle as target
      
  2. Use a Filter similar to the following:

    QASOW.SYS_LASTMODIFIEDDATE >= LAST_MONTH

    The behavior would also arise if using other SOQL date literals, ie: 

    • TOMORROW, YESTERDAY, LAST_WEEK, etc... (note TODAY can be used, but not the other mentioned data literals)

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.