Hello, I get the following error when I try to printorder for a sales order in Swagger. Thankful for help to understand what is wrong and if there's anything I can do to fix the problem. {
"message": "An error has occurred.",
"exceptionMessage": "The 'CompressedContent' type failed to serialize the response body for content type 'application/octet-stream'.",
"exceptionType": "System.InvalidOperationException",
"stackTrace": null,
"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "You do not have enough rights to access SO64118S.",
"exceptionType": "PX.Data.PXException",
"stackTrace": " at PX.Data.Reports.PXReportTools.FindReport(String screenID)\r\n at PX.Data.Reports.PXReportTools.LoadReport(String reportID, IPXResultset incoming)\r\n at Visma.net.ERP.Api.Common.Repository.ReportRepository.GetReportStream(String reportId, Dictionary`2 parameters) in D:\\Data\\BuildAgent\\work\\11023e52ea15d342\\Web\\Lib\\Visma.net.ERP.Api\\Common\\Repository\\ReportRepository.cs:line 16\r\n at Visma.net.ERP.Api.SO.Repository.SOOrderRepository.PrintOrder(String orderNumber, String orderType, Stream outputStream) in D:\\Data\\BuildAgent\\work\\11023e52ea15d342\\Web\\Lib\\Visma.net.ERP.Api\\SO\\Repository\\SOOrderRepository.cs:line 954\r\n at Visma.net.ERP.Web.Api.Controllers.V1.SalesOrderController.<>c__DisplayClass10_0.<PrintOrder>b__0(Stream outputStream, HttpContent httpContent, TransportContext transportContext) in D:\\Data\\BuildAgent\\work\\11023e52ea15d342\\Web\\Lib\\Visma.net.ERP.Web.Api\\Controllers\\V1\\SalesOrderController.cs:line 187\r\n at System.Net.Http.PushStreamContent.<>c__DisplayClass7_0.<Taskify>b__0(Stream stream, HttpContent content, TransportContext transportContext)\r\n at System.Net.Http.PushStreamContent.<SerializeToStreamAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n at PX.Api.Compression.BaseCompressor.<Compress>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n at PX.Api.Compression.CompressedContent.<SerializeToStreamAsync>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n at System.Web.Http.WebHost.HttpControllerHandler.<WriteBufferedResponseContentAsync>d__22.MoveNext()"
}
}
... View more