Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / Error generating invoi...
Commerce forum

Error generating invoice from retail sales order

Posted on by 62

Hi,

Generating invoice from a retail sales order we're encountered the following issue:

3034.Capture1.PNG5460.Capture2.PNG

While processing the state Customer order invoiced, generic exception encountered in retail statement 00000021-000134 in the controller : Posting Posting Sales order: EAT1-001263 The posting is done using sales tax voucher C101-1900004.
While processing aggregation state Sales order is invoiced for this aggregation. transaction state Customer order invoiced, the invoice ID was empty after invoicing for this aggregation 5637146078.

Could someone help us in this way?

Many thanks.

Clara

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error generating invoice from retail sales order

    Please I'm facing the same issue, did you got a solution for this problem.  

  • Suggested answer
    Ramune Profile Picture
    Ramune on at
    RE: Error generating invoice from retail sales order

    Hi Mariya,

    then probably your issue has a different cause.

    Just recently I saw another issue with the same error, which has been fixed in 10.0.7:

    fix.lcs.dynamics.com/.../

    A solution was to update the Ship start date of the item xxx. The ship start date should not be in the future.

    If the issue is in a production, please create a service request to Microsoft so we can investigate deeper.

    If this is in UAT, please check if you can do any changes on your own.

  • DoJo Profile Picture
    DoJo on at
    RE: Error generating invoice from retail sales order

    We are on version 10.0.5 Update 29 and the above issue was fixed.

    Regards

    Hans

  • RE: Error generating invoice from retail sales order

    Hi Ramune,

    we are on version 10.0.6 already and I am still getting this error about missing Invoice ID.

    I also followed the workaround, cleaned the usage data but the same error appears at posting the statement.

    Any other ideas?

    Thanks in advance.

    Regards,

    Mariya

  • Ramune Profile Picture
    Ramune on at
    RE: Error generating invoice from retail sales order

    Hi,

    a workaround for this issue is exactly the same as mentioned in one answer below:

    Delete User Usage data for SalesFormLetter_Invoice:

    1. Browse to the System administration > Users > Users

    2. Select the user

    3. Click 'User options' in the menu bar

    4. On the Options page, click 'Usage data' in the menu bar

    5. Click the 'All usage data' tab

    6. Select and delete the row with Element name = 'SalesFormLetter_Invoice'

    This should be done only once and the issue should not happen again.

    This issue is fixed in version 10.0.5, you can find it on LCS:

    fix.lcs.dynamics.com/.../

  • DoJo Profile Picture
    DoJo on at
    RE: Error generating invoice from retail sales order

    Hello

    After installing version 10.0.4 Update 28 I have the same issue.

    After running the posting batchjob this error comes up:
    While processing the state Customer order invoiced, generic exception encountered in retail statement 331-000061 in the controller : While processing aggregation state Sales order is invoiced for this aggregation. transaction state Customer order invoiced, the invoice ID was empty after invoicing for this aggregation 5637150617.

    When I post afterwards the sales order manually everything works fine and after that the posting batchjob is finishing without any problem.

    May thanks.

    Hans

  • Suggested answer
    Asif Bhimla Profile Picture
    Asif Bhimla 90 on at
    RE: Error generating invoice from retail sales order

    You need to clear usage data of the user who is owning/executing the retail statement posting batch job for the statement.

    Go to Users form > find the user that is posting statements.

    Go to User options> Usage data

        - Option 1: RESET USAGE DATA

                   This could change some defaults for the user

        - Option 2: click on "All Usage data" and delete only the SalesFormLetter_Invoice lines

    After Deleting the Usage data for the User please try to post the statements and update us the findings.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans