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?
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.
Unfortunatelly, log says that allright
Ok, I have 2 macro blocks, which works with the same source. First block is OK, so data is OK. And second block breaks.
Please, sign in to be able to submit a new answer.