Can't add a script Component. Getting VS_ISBROKEN during Validation

  • I have an SSIS 2008 package where I am having trouble adding a script Component. I have went as far as just creating the component with nothing more than setting an Output Column variable in Inputs and Outputs called Listorder with datatype as two-byte Signed Int and using the following code

    /* Microsoft SQL Server Integration Services Script Component

    * Write scripts using Microsoft Visual C# 2008.

    * ScriptMain is the entry point class of the script.*/

    using System;

    using System.Data;

    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;

    using Microsoft.SqlServer.Dts.Runtime.Wrapper;

    [Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]

    public class ScriptMain : UserComponent

    {

    public override void PreExecute()

    {

    base.PreExecute();

    /*

    Add your code here for preprocessing or remove if not needed

    */

    }

    public override void PostExecute()

    {

    base.PostExecute();

    /*

    Add your code here for postprocessing or remove if not needed

    You can set read/write variables here, for example:

    Variables.MyIntVar = 100

    */

    }

    public override void Input0_ProcessInputRow(Input0Buffer Row)

    {

    Row.ListOrder = 1;

    }

    }

    But I can't get it to validate giving me the following error: (Please Help...this is getting very annoying)

    TITLE: Package Validation Error

    ------------------------------

    Package Validation Error

    ------------------------------

    ADDITIONAL INFORMATION:

    Error at Data Flow Task [Script Component 1 [7883]]: 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.CreateUserComponent()

    Error at Data Flow Task [Script Component 1 [7883]]: 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.CreateUserComponent()

    Error at Data Flow Task [Script Component 1 [7883]]: 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.

    Error at Data Flow Task [SSIS.Pipeline]: "component "Script Component 1" (7883)" failed validation and returned validation status "VS_ISBROKEN".

    Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.

    Error at Data Flow Task: There were errors during task validation.

    (Microsoft.DataTransformationServices.VsIntegration)

    ------------------------------

    BUTTONS:

    OK

    ------------------------------

  • I figured it out. I actually did as the error said to do. I opened the script where I can see the code and ran clicked on build and let it build the code there and it gave me the error. There somehow was a duplicate column coming in th input

  • Thank you so much. I was having the same issue and making sure that the script can "build" without error solved the problem.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply