Copy data from Oracle to SQL Server in Azure using ADF - Failure

Brahim Mosbah 25 Reputation points
2024-02-14T11:41:34.7866667+00:00

Hello, I'm loading data from Oracle to Azure SQL Server by ADF it works well with loading tables with the standard structure, but when I want to add a field which is got through function made in Oracle I'm getting this error : "errors": [ { "Code": 9602, "Message": "Failure happened on 'Source' side. ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ERROR [42S22] [Microsoft][ODBC Oracle Wire Protocol driver][Oracle]ORA-00904: "ENG_PART_MAIN_GROUP_API"."GET_DESCRIPTION": invalid identifier\n,Source=Microsoft.DataTransfer.ClientLibrary.Odbc.OdbcConnector,''Type=System.Data.Odbc.OdbcException,Message=ERROR [42S22] [Microsoft][ODBC Oracle Wire Protocol driver][Oracle]ORA-00904: "ENG_PART_MAIN_GROUP_API"."GET_DESCRIPTION": invalid identifier\n,Source=msora28.dll,'", "EventType": 0, "Category": 5, "Data": { "FailureInitiator": "Source" }, "MsgId": null, "ExceptionType": null, "Source": null, "StackTrace": null, "InnerEventInfos": [] } ] The query is : "oracleReaderQuery": "SELECT PART_CATALOG.*, ENG_PART_MAIN_GROUP_API.Get_Description(PART_CATALOG.PART_MAIN_GROUP) AS PART_MAIN_GROUP_DESCRIPTION, objversion as adf_watermark_value FROM IFSAPP.PART_CATALOG

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2024-02-14T12:27:10.14+00:00

    Your issue typically occurs when there is a reference to a column, table, or alias name that the Oracle database cannot resolve. Before using the function in ADF, test it directly in the Oracle environment using the same user credentials as ADF uses. This can help determine if the issue is with the function itself or its invocation from ADF.

    SELECT ENG_PART_MAIN_GROUP_API.Get_Description('sample_part_main_group') FROM dual;
    

    https://stackoverflow.com/questions/6027961/ora-00904-invalid-identifier

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.