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 04, 2020

Applies to:

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


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:


    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)





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

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

In this Document

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