Question:
I have built an SSIS package that works just fine in BIDS. I would like to schedule the package in SQL Server Agent. After I set it up I get the following error:
Argument “SMTP” for option “connection” is not valid
I also ran it using using command line DTExec and I get the same error. Not sure why. The command line created by DETexecUI is below.
/FILE “D:\SSIS\Packages\SageDataTransfer.dtsx” /CONNECTION DestinationConnectionOLEDB;”\”Data Source=EVERESTDA;Initial Catalog=AGC_PROD;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=false;\”" /CONNECTION “SMTP Connection Manager”;”\”SmtpServer=10.0.8.14;UseWindowsAuthentication=True;EnableSsl=False;\”" /CONNECTION SourceConnectionOLEDB;”\”Data Source=AGCCRMDB;User ID=sa;Initial Catalog=CRM58;Provider=SQLNCLI10.1;Persist Security Info=True;Auto Translate=false;Application Name=SSIS-SageDataTransfer-{7FE010B9-6D29-4D58-9784-448A4CC9F4FE}SourceConnectionOLEDB;\”" /CHECKPOINTING OFF /REPORTING E
Thanks for the help,
Miguel
Solution:
Focus on the part of the command line adjacent to “SMTP Connection Manager.” Instead of inserting quotes, you can try removing spaces altogether in various places (e.g. “SMTPConnectionManager”). The resulting command lines won’t work, but doing this may clarify where the problem is by producing different error messages.