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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Job failed
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

498 Posts

Posted - 09/28/2012 :  18:14:16  Show Profile  Reply with Quote

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

Any help?


Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 09/29/2012 :  14:03:05  Show Profile  Visit jackv's Homepage  Reply with Quote
Could you also post the full EXEC msdb.dbo.sp_send_dbmail? Is the path valid?

Jack Vamvas
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/01/2012 :  11:32:51  Show Profile  Reply with Quote
is file in your local machine or inside server path?

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000