Mails being overwritten
Paul Timms
10-5-21
Operating system: Windows
A customer reported that when they created a mail from a sales order, it also linked an unrelated purchase order (record and PDF) to the mail record. Looking at the mail history, the first entry is "Routed to Internet", which corresponds to the time of the mail queue record for the purchase order. The next entry is "Created" which corresponds to when the mail record was created from the sales order. The time difference was 17 minutes. This should not happen.

Looking at the source code, it must be this line which is failing to get the next free number:

Mailr.SerNr = NextSerNr("MailVc",Mailr.TransDate,-1,false,"");

This is worrying as this code is used throughout the system. It's a GDPR failure if incorrect attachments are being sent to external people.

Is this issue known about? The customer's version is 8.5 2020-08-13.
Aldevinas Katkus
10-6-21
Does this customer has issues with wrong PDFs (from another company/contact) attached while sending emails via maintenance "create open invoice customer statement".
It sounds very similar to that.
Try to debug FormLinkDocumentFileNames().
David Smerdel
10-11-21
I encountered some issues similar to that when I enabled HTML mails at a customer. They disappeared when I removed it.
Aldevinas Katkus
10-13-21
Created byDavid Smerdel18:36 11 Oct 2021
I encountered some issues similar to that when I enabled HTML mails at a customer. They disappeared when I removed it.
Do you mean a checkbox "HTML" in the Standard Texts?
As far as I can see in the code, this defines whether an email is an HTML email or not.
10-13-21
We had this kind of problems - was related to mail created by users with closed mailbox.


Example:
1. User1 (his mailbox is closed) sends e-mail from SalesOrder
Since the mailbox is closed, the e-mail is created, but will not actually be saved, but PDF is created and SalesOrder gets the link to e-mail.

2. User2 (his mailbox is open) sends e-mail from Invoice.
This e-mail is saved and has SalesOrder and Invoice as attachments + links to both records (SO+Invoice) since they are related to the same e-mail number.

Was solved with HAL - did't allow sending e-mails if the mailbox is closed.
10-13-21
Why does everyone have a name and I don't? :)

//Flaviana
Bror-Erik Kotiranta
11-9-21
Created by14:16 13 Oct 2021
Why does everyone have a name and I don't? :) //Flaviana
Ask Dev Managers why (Katrin/Kae), they need to see what is up
Bror-Erik Kotiranta
11-10-21
Created by14:14 13 Oct 2021
We had this kind of problems - was related to mail created by users with closed mailbox. Example: 1. User1 (his mailbox is closed) sends e-mail from SalesOrder Since the mailbox is closed, the e-mail is created, but will not actually be saved, but PDF i
Please report a bug about this behaviour
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024