SSIS

  • Hi,

    I have create one SSIS package that data has fetch from excel sheets into the DB tabels. Here i have used foreach loop container.

    In this case i got below error. Plz guide me.

    Error at Package [Connection manager "Excel Connection Manager"]: The connection string format is not valid. It must consist of one or more components of the form X=Y, separated by semicolons. This error occurs when a connection string with zero components is set on database connection manager.

    Error at Package: The result of the expression "@[User::varLoop]" on property "ConnectionString" cannot be written to the property. The expression was evaluated, but cannot be set on the property.

    Thanks

    Sridhar.

  • Sridhar,

    I am sure you are doing some mistake in Connection String.

    Could you explain the ConnectionString properties you are using in your package.

  • Hi weather u import the data from the excel to tables the data has entered into in check and

    please explain the conection string.

    Regards

    sat_sql

  • Hi

    While configuring the properties for the excel to use that variable select the Excelfile property instead of connection string and assaign the variable "@User::varloop" it ill solve the problem.

    Regards

    Suman

  • Hi, Im getting the same error, this is the connection string in my configuration file for my ssis package:

    <Configuration ConfiguredType="Property" Path="\Package.Connections[CONN].Properties[ConnectionString]" ValueType="String">

    <ConfiguredValue>

    Data Source=MYSERVER\;User ID=sa;Initial Catalog=MYDATABASE;Provider=SQLNCLI.1;PersisSecurity Info=True;Auto Translate=False;

    </ConfiguredValue>

    </Configuration>

  • I see you don't use Windows Authentication in your connection string.

    Shouldn't you provide a proper user name and password?

    (if needed by your systems security settings)

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Thank you !! Solved my problem easily

Viewing 7 posts - 1 through 6 (of 6 total)

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