Hi there,
I am working on a Code Generator for programmatically generating SSIS 2008 packages. These packages will have various file sources viz. CSV, Text (Fixed Width), Excel. MDB etc. After transforming input data, it will be loaded into SQL Server 2008 R2.
Metadata (FileType, FieldNames, FieldDataTypes, etc) is used to generate these packages.
I am using following libraries for the same in my C# project:
- Microsoft.SqlServer.DTSPipelineWrap
- Microsoft.SqlServer.DTSRuntimeWrap
- Microsoft.SqlServer.ManagedDTS
I am facing following issues while adding "Script Component Transformation" in Data Flow programmatically.
1] Microsoft.SqlServer.Dts.Pipeline.CannotCreateUserComponentException: Cannot create user component class. Make sure there is one class marked with SSISScriptComponentEntryPointAttribute in your script. at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance()
This attribute exists for the class that is being added to script component.
2] The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
There is no “PreCompile” option in SSIS 2008, the code is precompiled by default. But I might be missing something here.
When I try to click Edit Script button in generated package, I get following error:
1] Failed to create project at location:
C:\Users\<UserFolder>\AppData\Local\Temp\SSIS\<GUID>
The whole issue is related to “adding script code” to the component. I need some sample code for that.
The challenge here is that very limited technical help available online, and whatever available online is related to SSIS 2005.
Please provide any samples you have for implementing this particular requirement in SSIS 2008.
Your help is highly appreciated.
Thanks in advance.