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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

close shift and print z report

(0) ShareShare
ReportReport
Posted on by

dear  ,,

in pos when close shift and printing z report coming this error and z report not printing

4101.Untitled.jpg

and this is event viewer :

Log Name:     Application

Source:       Microsoft Dynamics AX Retail : Retail POS

Date:         2/1/2018 11:52:03 AM

Event ID:     1

Task Category: None

Level:         Error

Keywords:     Classic

User:         N/A

Computer:     ADMIN

Description:

Non-negative number required.

Parameter name: totalWidth: System.ArgumentOutOfRangeException: Non-negative number required.

Parameter name: totalWidth

   at LSRetailPosis.POSControls.POSFormsManager.<>c__DisplayClass13.<ShowPOSMessageWithBackgroundWorker>b__d(Object s, RunWorkerCompletedEventArgs e)

   at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

   at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg).

Event Xml:

<Event xmlns="schemas.microsoft.com/.../event">

<System>

   <Provider Name="Microsoft Dynamics AX Retail : Retail POS" />

   <EventID Qualifiers="0">1</EventID>

   <Level>2</Level>

   <Task>0</Task>

   <Keywords>0x80000000000000</Keywords>

   <TimeCreated SystemTime="2018-02-01T08:52:03.026056300Z" />

   <EventRecordID>158256</EventRecordID>

   <Channel>Application</Channel>

   <Computer>ADMIN</Computer>

   <Security />

</System>

<EventData>

   <Data>Non-negative number required.

Parameter name: totalWidth: System.ArgumentOutOfRangeException: Non-negative number required.

Parameter name: totalWidth

   at LSRetailPosis.POSControls.POSFormsManager.&lt;&gt;c__DisplayClass13.&lt;ShowPOSMessageWithBackgroundWorker&gt;b__d(Object s, RunWorkerCompletedEventArgs e)

   at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

   at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg).</Data>

</EventData>

</Event>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RAVINDER RANA Profile Picture
    685 on at

    Hi Mohamed,

    According to the error , i think there is some customization in z report and the parameter total width is not getting proper value...

    Please asked your POS developer to check by debugging the source code.

    If your problem solved , please marked this answer as verified answer...

    Thanks

    Ravinder Rana

    AX Retail Functonal

  • Community Member Profile Picture
    on at

    dear ,,

    There are no modifications or customization in z report and same time it print with out issue

    thanks

  • nitish.dikshit Profile Picture
    on at

    hi Mohamed,

    I faced same issue in one of my implementation. then I debugged EOD project in  retail SDK and found out that while printing tender name(payment method name in z report), some tender name  would have exceeded total width of report. so you identify which tender name is causing problem and reduce word length of those payment method in AX HQ .try pushing changes to store and print z report..i think that should work..

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans