Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a Fabric Data Pipeline loading the Oracle data to a delta table.
I see that, the Oracle column with the "LONG RAW" data type is not getting any data.
How to solve this issue ?
Thanks!
Prashant
Solved! Go to Solution.
Hello @Prashant2
Thank you for reaching out to the Microsoft Fabric Community. We understand that you are encountering an issue when loading data into a Delta table.
The issue arises because LONG RAW is a deprecated data type in Oracle, making it challenging to manage in modern data pipelines. As Microsoft Fabric does not natively support the Oracle LONG RAW data type.If possible, consider the following workaround:
Convert the LONG RAW column to a HEX-encoded string using the RAWTOHEX function.
If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.
Thank you.
Hello @Prashant2
`LONG RAW` is deprecated in Oracle and unsupported by Fabricโs Data Pipeline
Fabricโs Oracle connector struggles to map `LONG RAW` to Delta Lakeโs binary type, resulting in empty or truncated data
Immediate Workaround: Convert to BLOB in Oracle, If you control the Oracle schema.
If schema changes arenโt possible:
โข Use a SQL Query in the Copy Activity Source:
SELECT ID, NAME, TO_LOB(image_data) AS image_data_blob FROM your_table
In the pipelineโs copy activity settings:
โข Set `Fault tolerance` > `Skip incompatible rows` to avoid job failures during type mismatches.
Then in notebook use something like
df = df.withColumn("image_data", expr("CAST(image_data AS BINARY)"))
If this helps. Please accept the answer
Hello @Prashant2
Could you please confirm if your query have been resolved the solution provided by @nilendraFabric ? If they have, kindly mark the helpful response and accept it as the solution. This will assist other community members in resolving similar issues more efficiently.
Thank you
Hello,
TO_LOB function did not work for me.
I noticied that, "SELECT * FROM TABLE" is not truncating the LONG RAW columns, while its does not work if I use "SELECT LONG_COLNAME FROM TABLE" in the data pipeline.
Hello @Prashant2
Thank you for reaching out to the Microsoft Fabric Community. We understand that you are encountering an issue when loading data into a Delta table.
The issue arises because LONG RAW is a deprecated data type in Oracle, making it challenging to manage in modern data pipelines. As Microsoft Fabric does not natively support the Oracle LONG RAW data type.If possible, consider the following workaround:
Convert the LONG RAW column to a HEX-encoded string using the RAWTOHEX function.
If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.
Thank you.