Pregunta

I have an SSIS package which reads csv files present in a folder and uploads the data into a database. It also has a send mail component which is used to send mails after the csv file is read and data is uploaded. This package is called programmatically from a C# console application. In the console app the package is called one time for each file present in the folder. This console app is scheduled to run daily at a specific time through the Windows Task Scheduler.

The problem I am facing is that when I directly double click on the console app's exe and run it, the data is getting uploaded successfully and the mails are also being sent. But when the same console app's exe is called from the Task Scheduler the data from the csv file is getting uploaded successfully but the mails are not being sent (mail functionality is not working in case of scheduler)

What could be the problem?

¿Fue útil?

Solución

The most likely cause is a permissions issue; the account under which the console app runs doesn't have permission to send email while your account does. Are there any error logs, Windows Event Log entries, etc. generated by the console app?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top