Email template macro issue

Mikhail Grishin asked on July 7, 2021 15:13

I have an email template with macro. I need to display DataTable. Inside macro I have loop and only print methods inside loop. I'm pretty sure that that table contains correct data. But as a result, sometimes I receive correct email message and sometimes not. If it is incorrect, I lose only data, that should be displayed in macro. The rest of the message is like a template. What the problem could be?

Recent Answers


Brenden Kehren answered on July 7, 2021 15:20

Check the event log after it generates the email and look for errors or clues in there. If it's generating data sometimes, then your macro is doing what it should. Most likely a data inconsistency.

0 votesVote for this answer Mark as a Correct answer

Mikhail Grishin answered on July 7, 2021 15:37

Unfortunatelly, log says that allright

0 votesVote for this answer Mark as a Correct answer

Mikhail Grishin answered on July 7, 2021 15:40

Ok, I have 2 macro blocks, which works with the same source. First block is OK, so data is OK. And second block breaks.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.