I have a user that emails invoices regularly and started receiving the below error this week. There have been no updates or changes in the last few months. The problem with this is that its sending two emails to the customer instead of one. When I look at this table in the SQL side, I don't see the SOPNUMBE that is mentioned in the error. I currently having check links running on the sales tables, we will see if that comes up with anything but, not sure what to do to fix if not.
As Lisa suggested, this refers to some SOP temp table that is used during the process of e-mailing sales documents out, but the problem could actually be in your SOP10xxx tables which holds the OPEN / WORK data of your Sales Transaction.
You should try to run a full search across all tables (google it, there are some SQL scripts out there to locate any string from any table in a DB) to locate the value for INV071303. then have a peek in all the records returned. You may discover that some rows are duplicated and thus causing the PK violation.
Is another user able to email the same document without an issue?
Since you are familiar with SQL, check the related SOP tables (either work or history depending on what is being emailed) to see if there are any funky records (perhaps an abandoned void, a blank Customer Number, etc.) that may require some cleanup.
[Tables numbered in the 50000s are generally temporary tables so you may not see data in the table once the process has ended.]
Update - check links for all Sales category items didn't appear to change anything with this process. The error still comes up.
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.