I am writing a custom SSIS component that works fine when run from within Visual Studio; however, it fails when run using dtexec.exe or dtexecui.exe.
The failure occurs in the PreExecute
method when I am building up a mapping from column names to LineageIDs. This is where I am confused, as I look at things in the debugger all I am doing is passing the value I get from var foo = output.OutputColumnCollection[i].LineageID
to bufferManager.FindColumnByLineageID(output.Buffer, foo)
At this point I get an exception thrown from FindColumnByLineageID
saying,
System.ArgumentException was unhandled by user code Message=Value does not fall within the expected range.
Source=Microsoft.SqlServer.DTSPipelineWrap StackTrace: InnerException:
I am at a loss. The code runs fine in BIDS the logic at this point seems OK, there really is nothing to do wrong, I am just passing a value from SSIS back to SSIS. My feeling is that there is some setup or configuration that is getting messed up but I don't have any idea what it would be at this point. Any guesses would be most appreciated.
Thanks!