I have a SQL Server Integration Services ETL Project to get data from an Oracle database. I'm using an ODBC Source component with the Connection Manager configured and working.
Inside ODBC Source, with the Connection Manager selected, I get all the Tables and Views in the dropdown list. The problem is this: I can't get data from some of the Views. I get this error:
Even if I write a simple SQL Command, I get the same error.
SELECT * FROM "SchemaName"."ViewName"
However, if I go to the Columns tab, all the columns appear correctly mapped.
I have checked for permissions on the Oracle side and everything seems OK. I can query other Views in the same schema, but some of them give me this error. As you can see, I'm not specifing any casts and the Views I am querying don't have date columns.
Does anyone understand why this error is coming up on specific Views? Thanks.
EDIT: The query works well in Oracle, so the problem is not in the View definition.

SELECT CODSEC FROM SchemaName.ViewNameit returns the exact same error, even though CODSEC is an integer field.