web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

error when printing Credit memo

(0) ShareShare
ReportReport
Posted on by 2,050

as you can see here

errorprinting-memo.JPG

Error occurred while communicating with Hardware Station : {"ErrorResourceId":"Microsoft_Dynamics_Commerce_HardwareStation_Printer_Error","LocalizedMessage":"حدث خطأ أثناء الطباعة. افحص الجهاز أو اتصل بمسؤول النظام.","ClassName":"Microsoft.Dynamics.Commerce.HardwareStation.PeripheralException","Message":"OPOS printer failed to execute 'Open' with error '106', extended error code - 0","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter.CheckResultCode(String oposMethod, Int32 resultCode, Int32 resultCodeExtended)\r\n   at Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter.Open(String peripheralName, Int32 characterSet, Boolean binaryConversion)\r\n   at Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter.Execute(Request request)\r\n   at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.ExecutePrintWithRetry(PrintRequestConfigKey printRequestConfigKey, IGrouping`2 groupedRequest, Boolean canRetryUponFailure)\r\n   at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.ExecutePrintWithRetry(PrintRequestConfigKey printRequestConfigKey, IGrouping`2 groupedRequest, Boolean canRetryUponFailure)\r\n   at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.<>c__DisplayClass1_1.b__1()\r\n   at Microsoft.Dynamics.Commerce.HardwareStation.DeviceLockContainer.ExecuteOpos(Object asyncLock, String source, String threadId, Action action)\r\n   at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.Print(Collection`1 printRequests)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClassc.b__6(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Tracing.Tracers.HttpControllerTracer.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.HttpServer.d__0.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nCheckResultCode\nMicrosoft.Dynamics.Commerce.HardwareStation.Peripherals.Opos, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\nMicrosoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter\nVoid CheckResultCode(System.String, Int32, Int32)","HResult":-2146233088,"Source":"Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.Opos","WatsonBuckets":null}.

I have the same question (0)
  • Juergen Kretschek Profile Picture
    on at

    Hi,

    The error message in the event pointed out does not say much other than what the OPOS standard Result code is specifying:

    106 - OPOS_E_ILLEGAL - An illegal parameter or process, or unsupported function is specified.

    There are further errors and warnings logged before this event that need to be reviewed, best in a remote session to check on the configuration for identifying plausible causes. Please consider to raise a support case to Microsoft Dynamics 365 Commerce team and add important information like the printer model and OPOS driver version in place.

    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 298 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 179 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 121 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans