SSIS Blob Encoding error ??

  • Cannot implicitly convert type 'string' to Microsoft.sqlserver.dts.pipeline.blobcolumn - error

    Input and output fields are the same text formats.

    public override void Input0_ProcessInputRow(Input0Buffer Row)

    {

    // Parse Company Name //

    ArrayList mailList = ValidateEmailRow(System.Text.Encoding.Default.GetString(Row.EmailAddressText.GetBlobData(0,(int)(Row.EmailAddressText.Length-1))));

    DateTime dt;

    dt=DateTime.Now;

    Row.currentdate = dt;

    Guid g;

    g = Guid.NewGuid();

    Row.profileid = g;

    int i = mailList.Count;

    if(i>0)

    {

    Row.email1 = (i>0)?mailList[0].ToString():""; - error lines are next 5 lines

    Row.email2 = (i>1)?mailList[1].ToString():"";

    Row.email3 = (i>2)?mailList[2].ToString():"";

    Row.email4 = (i>3)?mailList[3].ToString():"";

    Row.email5 = (i>4)?mailList[4].ToString():"";

    }

    mailList = null;

    Thanks

  • Have you tried it without the conditional for just the first column so see if the conditional is causing the problem?

  • Let me give that a shot.

    Thanks

  • Row.email10 = mailList10[0].ToString():"";

    If this is what you meant, i still get the same error 🙁

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

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