Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Job failed

Author  Topic 

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2012-09-28 : 18:14:16
Hi,

Trying to send text file through email attachment through job. Job failed with following error:
Message
Executed as user: xxxx\SQLService_agent_account. Attachment file test.txt is invalid. [SQLSTATE 42000] (Error 22051). The step failed.

Any help?

Thanks

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-09-29 : 14:03:05
Could you also post the full EXEC msdb.dbo.sp_send_dbmail? Is the path valid?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-10-01 : 11:32:51
is file in your local machine or inside server path?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -