Type Mismatch: DTSLookups?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have Transform Data Task that I want to Lookup some company values from
another database based on a code from the source and insert them into the
destination

Under the Transform, Workflow Properties, Options, Use ActiveX script
checkbox I have my code to call the Lookup below, but I keep getting the type
mismatch error. I even commented out everything and tried to set the
destination to a dummy string but still get type mismatch.

Is this the correct place to put the ActiveX Script during the transform? I
would really like a good step-by-step guide of how to do this. Thanks, Dave.

Function Main()
dim varArray
varArray = DTSLookups("GetCompanyValues").Execute(DTSSource("CoId").Value)
DTSDestination("Ticker") = varArray(0)
DTSDestination("Region") = varArray(1)
Main = DTSStepScriptResult_ExecuteTask
End Function

.



Relevant Pages

  • Re: SSIS and Staging Tables
    ... What I did was I took my original lookup (from the Flat File Source) ... I sent one path to my OLE DB UPDATE ... One path goes to my UPDATE command....This transform is already ...
    (microsoft.public.sqlserver.dts)
  • RE: Importing from Excel to a lookup field in access
    ... much easier to maintain than a value list in the tables data structure. ... nulls, text in numeric fields, ...). ... "Lookup" table, and insert the right value into your main table. ... you the flexibility to "transform" the data as you see fit (similar to SQL ...
    (microsoft.public.access.externaldata)
  • Re: SSIS: import only missing (appended) records
    ... (There is no PKey in my flat file, I will test if SSIS can ... lookup for all rows/cells) ... then it will be slower and slower. ... either use a Lookup transform or a Merge Join transform. ...
    (microsoft.public.sqlserver.dts)
  • Re: One to many data pump
    ... was to create a transform that used the SQL table as a source and the Excel ... table as a lookup. ... >> Lookups will return an array for multiple columns. ...
    (microsoft.public.sqlserver.dts)