<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>.toString() &#187; SQL Jobs</title>
	<atom:link href="http://www.dottostring.com/category/sqlserver/sql-jobs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dottostring.com</link>
	<description>Programming is our passion</description>
	<lastBuildDate>Sun, 04 Oct 2009 15:57:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Argument &#8220;xxxxxx&#8221; for option &#8220;xxxxxx&#8221; is not valid. The command line parameters are invalid</title>
		<link>http://www.dottostring.com/2009/08/argument-xxxxxx-for-option-xxxxxx-is-not-valid-the-command-line-parameters-are/</link>
		<comments>http://www.dottostring.com/2009/08/argument-xxxxxx-for-option-xxxxxx-is-not-valid-the-command-line-parameters-are/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 09:00:36 +0000</pubDate>
		<dc:creator>ahsan</dc:creator>
				<category><![CDATA[Integaration Services]]></category>
		<category><![CDATA[SQL Jobs]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://www.dottostring.com/?p=378</guid>
		<description><![CDATA[If you recieve this error &#8216;Argument &#8220;xxxx&#8221; for option &#8220;xxxx&#8221; is not valid&#8217; while running an SSIS/DTS Package through a job as a job step the you have come to the right place.
SYMPTOMS: The package when executes individually runs successfully. But when executing the package through sql server job it crashes with error in the [...]]]></description>
			<content:encoded><![CDATA[<p>If you recieve this error &#8216;Argument &#8220;xxxx&#8221; for option &#8220;xxxx&#8221; is not valid&#8217; while running an SSIS/DTS Package through a job as a job step the you have come to the right place.</p>
<p><strong>SYMPTOMS:</strong> The package when executes individually runs successfully. But when executing the package through sql server job it crashes with error in the job history.</p>
<p><strong>SOLUTION:</strong> The solution is simple there is a problem with your command line option for the job step. Modify it to get the package running.</p>
<p><strong>EXAMPLE:</strong> Until now you may be unclear that what i am talking about. Let me illustrate with an example. I created an SSIS package which executes successfully without a job. But when i make it a part of job it crashes with the above mentioned error.</p>
<p>The auto-generated command line when i select the data sources was</p>
<blockquote><p>/SQL &#8220;\DVA_PNC_DTS&#8221; /SERVER &#8220;SERVER01&#8243; /CONNECTION &#8220;Database Connection ADO&#8221;;&#8221;\&#8221;Data Source=SERVER03;User ID=User;Initial Catalog=&#8221;"DB1&#8243;&#8221;;Persist Security Info=True;&#8221; /CONNECTION &#8220;Database Connenction&#8221;;&#8221;\&#8221;Data Source=SERVER04;User ID=User;Initial Catalog=DB2;Provider=SQLNCLI.1;Persist Security Info=True;Auto Translate=False;&#8221; /CONNECTION &#8220;Input Connection&#8221;;&#8221;C:\Schema.csv&#8221; /CONNECTION Output;&#8221;C:\Output.txt&#8221; /MAXCONCURRENT &#8221; -1 &#8221; /CHECKPOINTING OFF</p></blockquote>
<p>I manually edit the command line and remove some extra quotes and backslashes and it started working perfectly It looks like this:</p>
<blockquote><p>/SQL &#8220;\DVA_PNC_DTS&#8221; /SERVER SERVER01  /CONNECTION &#8220;Database Connection ADO&#8221;;&#8221;Data Source=SERVER03;User ID=User;Initial Catalog=DB1;Persist Security Info=True;&#8221; /CONNECTION &#8220;Database Connenction&#8221;;&#8221;Data Source=SERVER04;User ID=User;Initial Catalog=DB2;Provider=SQLNCLI.1;Persist Security Info=True;Auto Translate=False;&#8221; /CONNECTION &#8220;Input Connection&#8221;;&#8221;C:\Schema.csv&#8221; /CONNECTION Output;&#8221;C:\Output.txt&#8221; /MAXCONCURRENT &#8221; -1 &#8221; /CHECKPOINTING OFF /REPORTING E</p></blockquote>
<p>Hope this may help anyone.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.dottostring.com%2F2009%2F08%2Fargument-xxxxxx-for-option-xxxxxx-is-not-valid-the-command-line-parameters-are%2F';
  addthis_title  = 'Argument+%26%238220%3Bxxxxxx%26%238221%3B+for+option+%26%238220%3Bxxxxxx%26%238221%3B+is+not+valid.+The+command+line+parameters+are+invalid';
  addthis_pub    = 'erfaan';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.dottostring.com/2009/08/argument-xxxxxx-for-option-xxxxxx-is-not-valid-the-command-line-parameters-are/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
