The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
i tested an incremental load on an onprem oracle db, ended with following error message:
The SQL query being executed on the Oracle side looks like this (with "MAP_TIME" configured as the incremental column):
When I run this query manually, I get the same ORA-01861 error. This leads me to the following questions:
Thanks in advance for your insights!
Solved! Go to Solution.
Hi @cw88 ,
Apologies for the trouble you’re running into. From the error,
Possible workarounds:
Hope this helps!!
Thank You.
Hi @cw88 ,
Instead of relying on the auto-generated query, configure your source dataset in Fabric to use a custom SQL query that explicitly converts the string literal to a timestamp format:
SELECT * FROM "SCHEMA"."TABLE"
WHERE "MAP_TIME" <= TO_TIMESTAMP('2025-08-05T08:45:32', 'YYYY-MM-DD"T"HH24:MI:SS')
This ensures that Oracle correctly interprets the literal and avoids the ORA-01861 error.
Ensure that the column used for incremental load (MAP_TIME) is indeed of type TIMESTAMP or DATE. If it's a string or another type, conversion may need to be adjusted accordingly.
Hope this helps !!
Hi,
how do i configure your suggestion "Instead of relying on the auto-generated query, configure your source dataset in Fabric to use a custom SQL query that explicitly converts the string literal to a timestamp format:" ?
When i configure a new item from type COPY JOB, select an oracle data source, i do not have the option to use a custom query?
Hi @cw88 ,
Apologies for the trouble you’re running into. From the error,
Possible workarounds:
Hope this helps!!
Thank You.
Hi @v-aatheeque ,
thanks for your answer.
So this is a bug in the copy job?
The workaround using the copy activity will work. I hoped that using the copy job would require less effort...
Hi @cw88
It’s not technically classified as a “bug,” but more of a known limitation in how the Oracle connector handles date/time literals during incremental loads. The auto-generated query doesn’t wrap the ISO 8601 string in a TO_DATE or TO_TIMESTAMP,causing that mismatch error.
Copy Job is designed for simplicity, but it doesn’t handle advanced scenarios like this well. If you’d prefer to stay with Copy Job, we suggest submitting this as product feedback (Fabric Ideas - Microsoft Fabric Community)
Hope it helps !!
Thank You.
Hi @cw88
Thanks for raising this query !
It looks like your SQL query is trying to compare a timestamp column (MAP_TIME) with a date written as a plain string ('2025-08-05T08:45:32'). That can cause issues if the format of the string doesn’t match what the database expects.
WHERE "MAP_TIME" <= TO_TIMESTAMP('2025-08-05 08:45:32', 'YYYY-MM-DD HH24:MI:SS')
As for whether this is a bug in the connector or setup it’s probably not. It’s more likely just a formatting mismatch. Using the right conversion functions helps avoid compatibility issues.
Hope this helps !!
Hello @v-aatheeque ,
Unfortunately, the query you're referring to is not manually written by me. It’s automatically generated by the system when configuring the copy activity with incremental load enabled. In other words, it’s system-generated and not something I can directly influence.
Hi @cw88 ,
Sorry for the delayed response. Could you let us know if you're trying to access the Oracle database from Azure Data Factory pipelines or from Fabrics pipelines?
Thanks!!