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)

Wrong packing slip is printing

(0) ShareShare
ReportReport
Posted on by

We are running AX 2012 R3 CU8.  When generating a packing slip for a customer, the wrong packing slip is generated. The entire packing slip is incorrect, not just part of it.  It's an odd problem and has happened several times over the past 2 months.  

Here's what we're seeing: The user reports the wrong packing slips are being generated. This continues until we reset the AOS. After that, the packing slips that were wrong still print wrong, but newly generated packing slips are OK.

We've determined it's related to the record ids already existing in the SalesPackingSlipHeaderTmp and SalesPackingSlipDetailsTmp tables for different packing slips. To get around this problem we have commented out the following code from the ProcessReport method in the SalesPackingSlipDP class.   //localSalesPackingSlipHeaderTmp = SalesPackingSlipHeaderTmp::findJourRecId(recId); This causes it to skip reading the records from the 2 tables and generates a new packing slip each time.

Does anyone have any ideas why this happens? Can we delete both of the tables on a regular basis?
Any other ideas or suggestions?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    * REPOST *

    We are running AX 2012 R3 CU8.  When generating a packing slip for a customer, the wrong packing slip is generated. The entire packing slip is incorrect, not just part of it.  It's an odd problem and has happened several times over the past 2 months.  

    Here's what we're seeing: The user reports the wrong packing slips are being generated. This continues until we reset the AOS. After that, the packing slips that were wrong still print wrong, but newly generated packing slips are OK.

    We've determined it's related to the record ids already existing in the SalesPackingSlipHeaderTmp and SalesPackingSlipDetailsTmp tables for different packing slips. To get around this problem we have commented out the following code from the ProcessReport method in the SalesPackingSlipDP class.   //localSalesPackingSlipHeaderTmp = SalesPackingSlipHeaderTmp::findJourRecId(recId); This causes it to skip reading the records from the 2 tables and generates a new packing slip each time.

    Does anyone have any ideas why this happens? Can we delete both of the tables on a regular basis?

    Any other ideas or suggestions?

  • Lee Bailey Profile Picture
    340 on at

    We have the same issue on AX 2012 R3 CU8. I have searched a bit online and had not found any other reports of it until I found your post. I was starting to think it was being caused by some of our customizations, but now I'm not too sure. Do you have any\many customizations in this area? Our workaround was to write a job to remove the offending records, but it is happening more so I was thinking along the same lines as you and amending the DP class to force it to write a new entry every time as opposed to pulling from the "Temp" table.  I notice you posted this back in November - have you continued just deleting the tables regularly without issue?

  • Brandon Wiese Profile Picture
    17,788 on at

    You can safely purge the SalesPackingSlipHeaderTmp and SalesPackingSlipDetailsTmp tables as needed, but better when the AOS is offline or the system is quiet (so as not to accidentally delete data that is actually being used at the moment of delete).

    However, if you disable the code indicated, I suspect you will be unable to print Pro-forma packing slips, which may or may not matter to you.

  • Lee Bailey Profile Picture
    340 on at

    Thanks Brandon - you are correct. When I make that change the Pro Formas are blank. I will purge the tables frequently as that seems the safest option.

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
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans