Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SSIS configuration error

Posted on 2011-09-21
3
Medium Priority
?
2,872 Views
Last Modified: 2013-11-10
I am creating a template SSIs package with certain features that I would like to see in all my SSIS packages, like log start, end, error handling, DB connection etc. So far so good. I created this package.

Now I created an XML config file which holds the DB connection, and SMTP server connection for the package. I watn to use this config file for all the packages, the path to which would reside in an env variable. so all my packages will have a package level configuration pointing to config this file. The idea is to change the db connection or smtp connection only at one place for all the packages, when the production DB instance changes or username/password changes. I created the env variable and the package level config to point to this file.

Now I am getting this error:
Error loading SSIS Template.dtsx: 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.  

Please review my config file and suggest correction:
<?xml version="1.0"?>
<DTSConfiguration>
	<DTSConfigurationHeading>
		<DTSConfigurationFileInfo
			GeneratedBy="OUTCOMES\dkaur"
			GeneratedFromPackageName="SSISTemplate"
			GeneratedFromPackageID="{F1B9BD73-B1D3-40D4-B1AC-89730F35A4DF}"
			GeneratedDate="9/21/2011 9:32:36 AM"/>
	</DTSConfigurationHeading>
	<Configuration
		ConfiguredType="Property"
		Path="\Package.Connections[ProdDBConnection].Properties[ConnectionString]"
		ValueType="String">
		<ConfiguredValue>
			Data Source=myInstance\DevProject;
			User ID=LOAD_User;
			PASSWORD = MyPswd;
			Initial Catalog=MyDB;
			Provider=SQLNCLI10.1;
			Persist Security Info=True;
			Auto Translate=False;
		</ConfiguredValue>
	</Configuration>
	<Configuration
		ConfiguredType="Property"
		Path="\Package.Connections[SMTP Connection Manager].Properties[ConnectionString]"
		ValueType="String">
		<ConfiguredValue>
			SmtpServer=myserver.com;
			UseWindowsAuthentication=True;
			EnableSsl=False;
		</ConfiguredValue>
	</Configuration>
</DTSConfiguration>

Open in new window






0
Comment
Question by:patd1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Expert Comment

by:Jason Yousef, MS
ID: 36574109
I don't spot anything wrong with it !! I just re-formatted it.
check it
<?xml version="1.0"?>
<DTSConfiguration>
	<DTSConfigurationHeading>
		<DTSConfigurationFileInfo GeneratedBy="OUTCOMES\dkaur" GeneratedFromPackageName="SSISTemplate" GeneratedFromPackageID="{F1B9BD73-B1D3-40D4-B1AC-89730F35A4DF}" GeneratedDate="9/21/2011 9:32:36 AM"/>
	</DTSConfigurationHeading>
	<Configuration ConfiguredType="Property"Path="\Package.Connections[ProdDBConnection].Properties[ConnectionString]"ValueType="String">
		<ConfiguredValue>Data Source=myInstance\DevProject;User ID=LOAD_User;PASSWORD = MyPswd;Initial Catalog=MyDB;Provider=SQLNCLI10.1;Persist Security Info=True;Auto Translate=False;</ConfiguredValue>
	</Configuration>
	<Configuration ConfiguredType="Property"Path="\Package.Connections[SMTP Connection Manager].Properties[ConnectionString]"ValueType="String">
		<ConfiguredValue>SmtpServer=myserver.com;UseWindowsAuthentication=True;EnableSsl=False;</ConfiguredValue>
	</Configuration>
</DTSConfiguration>

Open in new window

0
 

Author Comment

by:patd1
ID: 36574467
Yes it works, was initially givin me some whitespace errors and I introduced a whitespace in a couple of places and it worked.

Please let me know what magic did you do? :)

Thanks.
0
 
LVL 21

Accepted Solution

by:
Jason Yousef, MS earned 2000 total points
ID: 36575605
I just removed the new lines, and made it on one long line...
Also it wont work if there's any empty files.
I know!!! it's sooooo annoying !!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question