Hello all,
I needed to lookup some table values based on a join of two fields...
I've configured the lookup transform to get the values via a SQL statement to minimize loading time.
However, when creating the relationships between the input columns and the lookup columns I receive following error:
input column [BATCH_ID] has a datatype which cannot be joined on
I've checked both input and lookup columns, both are of type DT_R8... Both columns in the different tables do have the same datatypes
Any idea how to solve this problem?
Thanks in advance
DT_R8 is a floating point data type, it is an approximate value which means it cannot be joined on. Try a decimal data type instead.|||Hello,
Thanks for your reply but how can I change datatypes fetched directly from a SQL statement in the lookup query?
|||lookup supplied many functions can cast datatype
i think you also can use convert or cast in sql statements
|||Hello,
I've used Dataconversion and SQL functions to perform the requested conversions...
works fine however when executing the package it fails when loading the cache of the lookup components...
this is the message I get from the progress window:
[GET HOLDING_ID [2998]] Error: An OLE DB error has occurred. Error code: 0x80040E07. An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80040E07 Description: "ORA-01722: invalid number ".
and
next line:
[GET HOLDING_ID [2998]] Error: OLE DB error occurred while populating internal cache. Check SQLCommand and SqlCommandParam properties.
However, I never changed the SQL command of the transform in the advanced tab...
Any Idea?
Thanks in advance
No comments:
Post a Comment