Error for a single user sending email pdf

HELP PLEASE …

I have restarted the following:
ERPDB: SSRS service & Print Spooler
ERPAPP: Task Agent, Print Spooler, Task Agent Service
Recycled Server App Pool Instance
Deleted client cache files for them
Reset Layouts to base
Renamed their PC

Error here:

Program Ice.Services.Lib.RunTask raised an unexpected exception with the following message: RunTask:
System.Exception: Unable to open printer. Error 2351: This computer name is invalid
   at PdfPrintingNet.PdfPrint.c6e27125e412036c9e584c2e46cb51f7a(Byte[] cdbbe4698d85f704fb0f22ac792e56f47, String c4f15c193045594e277ed09e85e293fa6, String cc035c63003d26e77cf79bef83c7e504f, String cceb9b617f6e8532922232e6cdc63cb66, PrinterSettings c4a5d3cfb3105d0d72441638a2332f4dc, PdfWatermark cd6cc9058a2d92015b56d02d2020b2023)
   at PdfPrintingNet.PdfPrint.Print(Byte[] pdfArray, String password, String printerJobName)
   at Ice.Lib.Reporting.PdfPrintDocument.Print(PdfPrint pdfPrint, Byte[] reportBytes, String reportDescription) in C:\_Releases\ICE\RL10.2.600.0FW\Source\Shared\Lib\RoutingBreakingRules\PdfPrintDocument.cs:line 103
   at Ice.Core.SsrsReporting.PdfReportPrinter.Print(Byte[] reportBytes, String printerNameParameter, String reportDescription, EpiPrinterSettings printerSettings, EpiPageSettings pageSettings) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\PdfReportPrinter.cs:line 30
   at Ice.Core.SsrsReporting.ReportProcessorBase.RenderReportForPrintOrEmailReport(RenderedSsrsReport renderedReport, Boolean serverSidePrint, Boolean ignorePageSettings) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\ReportProcessorBase.cs:line 507
   at Ice.Core.SsrsReporting.ReportProcessorBase.ProcessReportPart(String reportLocation) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\ReportProcessorBase.cs:line 163
   at Ice.Core.SsrsReporting.StandardReportProcessor.ProcessReportParts() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\StandardReportProcessor.cs:line 31
   at Ice.Core.RoutingAndBreaking.ReportPersister.Persist(ReportInstanceInformation reportInstance, Func`2 reportsRenderer, Action`1 fillSysRptLstRow, Action`2 processReport, Func`3 filterTableAttachmentsFunc) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RoutingAndBreaking\ReportPersister.cs:line 58
   at Ice.Core.RptBase.ReportSsrsDatabaseBuilder.RenderUnroutedSsrsReport() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportSsrsDatabaseBuilder.cs:line 304
   at Ice.Core.RptBase.ReportSsrsDatabaseBuilder.RunSsrsReportIfEnabled() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportSsrsDatabaseBuilder.cs:line 228
   at Ice.Core.RptBase.ReportSsrsDatabaseBuilder.ProcessReportWithDataInPlace(Func`2 executeCommand, Func`2 executeReader, SqlObjectsCreated sqlObjectsCreated) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportSsrsDatabaseBuilder.cs:line 111
   at Ice.Core.RptBase.ReportDatabaseBuilder.XMLClose() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportDatabaseBuilder.cs:line 93
   at Ice.Core.RptTaskBase`1.XMLClose() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\RptTaskBase.cs:line 229
   at Erp.Internal.OM.SalesOrderAck.RunProcess(Int64 instanceTaskNum, String outputFileName) in C:\_Releases\ERP\UD10.2.600.26\Source\Server\Internal\OM\SalesOrderAck\SalesOrderAck.cs:line 619
   at Ice.Core.TaskBase`1.StartProcess(Int64 instanceTaskNum, String outputFileName) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\TaskBase\TaskBase.cs:line 83
   at Ice.Hosting.TaskCaller.InnerExecuteTask(IceDataContext newContext) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 117
   at Ice.Hosting.TaskCaller.ExecuteTask() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 59
   at Ice.Lib.RunTask.BpmFriendlyTaskLauncher.Run(String sessionIdPrefix, IceContext db, Action taskRunner) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Services\Lib\RunTask\BpmFriendlyTaskLauncher.cs:line 63
   at Ice.Services.Lib.RunTaskSvc.InnerRunTask(Int64 ipTaskNum, Boolean suppressTransaction) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Services\Lib\RunTask\RunTask.cs:line 452

How is this being printed? APR, Server Printer, Client Printer, etc?

1 Like

Not being printed… The email icon at top menu being used and just emailed.

Check your SMTP settings are correct. It either doesnt like the pc name (remove from domain and re-add) under new name or double check the SMTP server within Epicor Config.

Also just as a side note. Flush DNS as sometimes its always DNS

Trace the dataset going to it, betcha something is funky.

That report thing is pretty dumb, you may just be emailing, but it still does checks and other stuff anyway.

Bunch of other’s work fine sending SMTP fir same user just Sale Order.

Weird thing is emailed fine for me just not them.

Is it the Sales Order for all users or that single user?

Have them try to print, and not email, see if the same error occurs.

Preview works Print works, only the email was failing.

Single user, it emailed fine for me…

All sales orders for this user, or just this one?

Seems like it was all of them when trying to email, but they could still preview and save then email, just long way around.

Update to this will let you know, but I rebooted DB/SSRS server and app server as well as I restarted and recycled all services/apppools without success…

I’d see if I could get it to crash again and check the event logs on where the appserver runs.

If there are no clues there then I’m stumped.
Probably need support or attach a debugger on the server lol.

We’ll see if it remains a problem after the reboots.

it does not look like reboot should help with one user. Did you check parameters for that task, or traces as it was suggested, maybe something different for that username.

Looked at user same setup as others, removed personalizations, cleared temp files, had them reboot, renamed their pc, although error seems to indicate a server event on the SSRS server when creating the PDF.

This is the only thing I can find. What if any other log should I look into?

Program Ice.Services.Lib.RunTask raised an unexpected exception with the following message: RunTask:
System.Exception: Unable to open printer. Error 2351: This computer name is invalid
   at PdfPrintingNet.PdfPrint.c6e27125e412036c9e584c2e46cb51f7a(Byte[] cdbbe4698d85f704fb0f22ac792e56f47, String c4f15c193045594e277ed09e85e293fa6, String cc035c63003d26e77cf79bef83c7e504f, String cceb9b617f6e8532922232e6cdc63cb66, PrinterSettings c4a5d3cfb3105d0d72441638a2332f4dc, PdfWatermark cd6cc9058a2d92015b56d02d2020b2023)
   at PdfPrintingNet.PdfPrint.Print(Byte[] pdfArray, String password, String printerJobName)
   at Ice.Lib.Reporting.PdfPrintDocument.Print(PdfPrint pdfPrint, Byte[] reportBytes, String reportDescription) in C:\_Releases\ICE\RL10.2.600.0FW\Source\Shared\Lib\RoutingBreakingRules\PdfPrintDocument.cs:line 103
   at Ice.Core.SsrsReporting.PdfReportPrinter.Print(Byte[] reportBytes, String printerNameParameter, String reportDescription, EpiPrinterSettings printerSettings, EpiPageSettings pageSettings) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\PdfReportPrinter.cs:line 30
   at Ice.Core.SsrsReporting.ReportProcessorBase.RenderReportForPrintOrEmailReport(RenderedSsrsReport renderedReport, Boolean serverSidePrint, Boolean ignorePageSettings) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\ReportProcessorBase.cs:line 507
   at Ice.Core.SsrsReporting.ReportProcessorBase.ProcessReportPart(String reportLocation) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\ReportProcessorBase.cs:line 163
   at Ice.Core.SsrsReporting.StandardReportProcessor.ProcessReportParts() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\SsrsReporting\StandardReportProcessor.cs:line 31
   at Ice.Core.RoutingAndBreaking.ReportPersister.Persist(ReportInstanceInformation reportInstance, Func`2 reportsRenderer, Action`1 fillSysRptLstRow, Action`2 processReport, Func`3 filterTableAttachmentsFunc) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RoutingAndBreaking\ReportPersister.cs:line 58
   at Ice.Core.RptBase.ReportSsrsDatabaseBuilder.RenderUnroutedSsrsReport() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportSsrsDatabaseBuilder.cs:line 304
   at Ice.Core.RptBase.ReportSsrsDatabaseBuilder.RunSsrsReportIfEnabled() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportSsrsDatabaseBuilder.cs:line 228
   at Ice.Core.RptBase.ReportSsrsDatabaseBuilder.ProcessReportWithDataInPlace(Func`2 executeCommand, Func`2 executeReader, SqlObjectsCreated sqlObjectsCreated) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportSsrsDatabaseBuilder.cs:line 111
   at Ice.Core.RptBase.ReportDatabaseBuilder.XMLClose() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\ReportDatabaseBuilder.cs:line 93
   at Ice.Core.RptTaskBase`1.XMLClose() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\RptBase\RptTaskBase.cs:line 229
   at Erp.Internal.OM.SalesOrderAck.RunProcess(Int64 instanceTaskNum, String outputFileName) in C:\_Releases\ERP\UD10.2.600.26\Source\Server\Internal\OM\SalesOrderAck\SalesOrderAck.cs:line 619
   at Ice.Core.TaskBase`1.StartProcess(Int64 instanceTaskNum, String outputFileName) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Internal\Lib\TaskLib\TaskBase\TaskBase.cs:line 83
   at Ice.Hosting.TaskCaller.InnerExecuteTask(IceDataContext newContext) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 117
   at Ice.Hosting.TaskCaller.ExecuteTask() in C:\_Releases\ICE\UD10.2.600.26FW\Source\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 59
   at Ice.Lib.RunTask.BpmFriendlyTaskLauncher.Run(String sessionIdPrefix, IceContext db, Action taskRunner) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Services\Lib\RunTask\BpmFriendlyTaskLauncher.cs:line 63
   at Ice.Services.Lib.RunTaskSvc.InnerRunTask(Int64 ipTaskNum, Boolean suppressTransaction) in C:\_Releases\ICE\UD10.2.600.26FW\Source\Server\Services\Lib\RunTask\RunTask.cs:line 452

Just a thought.

Is it a server printer or client? If it’s a client then remove the printer using Print Management and clear the files in System32 and reinstall the printer.

If its a server printer then try updating the drivers on the xyz server.

If you log this user onto a known working machine and print from epicor… is it successful?