Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Distribution of PDF-Files via Email doesn't work

Hi,

I want to distribute PDF-Reports via QlikView-Server.
Every time I'm running a task, which want to distribute a PDF File via Email, I get an error.
Here's the part with the errors of the log file:

Information Distributing using resource "Expenses(Gesamt)-Distribution_MailAttachment_1".

4/12/2010 15:33:35.1852751 Error MailTemplate not found. eMailTemplateType=Attachment

4/12/2010 15:33:35.2009003 Error Failed to EnqueueWithShapeText

4/12/2010 15:33:35.2009003 Error Distribution failed for resource "Expenses(Gesamt)-Distribution_MailAttachment_1" (MailAttachmentDistributionResource). Warnings=0, Errors=2

4/12/2010 15:33:35.2165255 Information Errors during distribute, aborting.

4/12/2010 15:33:35.2165255 Error Distribution to resources failed with errors. Warnings=0, Errors=3

4/12/2010 15:33:35.2165255 Information All done.

4/12/2010 15:33:35.2321507 Information Distributing (0), Failed (31), Deleting temp files (47), Next round! (47)

4/12/2010 15:33:35.3415271 Error The task "Expenses(Gesamt)-Distribution" failed. ErrorCount=4

4/12/2010 15:33:35.3571523 Information Sending Alert Mail to 10 recipients.

4/12/2010 15:33:35.3571523 Error MailTemplate not found. eMailTemplateType=Alert

All the files appear to be in there right locations (QVPR-folder - Files: AlertEmail.xml and MailTemplate.xml).
I need help to fix this.

Thanks in advance for help.

Best regards.







1 Solution

Accepted Solutions
Not applicable
Author

We found out, what causes the error of reloading and distribution.

After editing the MailTemplate.xml the QlikView Server changes the Workorder.xml and deleted the part from the MailTemplate which is:

_____________________________________________________________________________

<MailTemplateList>
<MailTemplate Type="Attachment" HTML="True" Subject="QlikView Publisher: [DocTitle] is attached to this message" Body="Your document &quot;[DocTitle]&quot; has been distributed by QlikView Publisher. The document is attached to this message.&lt;br&gt;&#xD;&#xA;&lt;br&gt;&#xD;&#xA;Time: [DateTime]&lt;br&gt;" />
<MailTemplate Type="Attachment" HTML="False" Subject="QlikView Publisher: [DocTitle] is attached to this message" Body="Your document &quot;[DocTitle]&quot; has been distributed by QlikView Publisher. The document is attached to this message.&#xD;&#xA;&#xD;&#xA;Time: [DateTime]" />
<MailTemplate Type="DistributionInfo" HTML="True" Subject="QlikView Publisher: [DocTitle] has been distributed" Body="Your document &amp;quot;[DocTitle]&amp;quot; has been distributed by QlikView Publisher.&lt;br/&gt;&#xD;&#xA;&lt;br/&gt;&#xD;&#xA;Location: &lt;a href=&quot;[Location]&quot;&gt;[Location]&lt;/a&gt;&lt;br/&gt;&#xD;&#xA;Time: [DateTime]" />
<MailTemplate Type="DistributionInfo" HTML="False" Subject="QlikView Publisher: [DocTitle] has been distributed" Body="Your document &quot;[DocTitle]&quot; has been distributed by QlikView Publisher.&#xD;&#xA;Location: [Location]&#xD;&#xA;&#xD;&#xA;Time: [DateTime]" />
<MailTemplate Type="Alert" HTML="True" Subject="QlikView Publisher: The task &quot;[TaskName]&quot; failed" Body="The task &quot;[TaskName]&quot; failed. Part of the log file follows:&lt;br/&gt;&#xD;&#xA;&lt;br/&gt;&#xD;&#xA;[Log]" />
<MailTemplate Type="Alert" HTML="False" Subject="QlikView Publisher: The task &quot;[TaskName]&quot; failed" Body="The task &quot;[TaskName]&quot; failed. Part of the log file follows:&#xD;&#xA;&#xD;&#xA;[Log]" />
</MailTemplateList>

____________________________________________________________________________

into this:

_____________________________________________________________________________

<MailTemplateList />
_____________________________________________________________________________

Even after adding the template parts manually it's reverted back every time we click on Send Workorder in the QlikView Enterprise Management Console (TAB System).
So, our question is: Where is the original source template, which is related to the workorder.xml, so that we can change it eventually?!

View solution in original post

1 Reply
Not applicable
Author

We found out, what causes the error of reloading and distribution.

After editing the MailTemplate.xml the QlikView Server changes the Workorder.xml and deleted the part from the MailTemplate which is:

_____________________________________________________________________________

<MailTemplateList>
<MailTemplate Type="Attachment" HTML="True" Subject="QlikView Publisher: [DocTitle] is attached to this message" Body="Your document &quot;[DocTitle]&quot; has been distributed by QlikView Publisher. The document is attached to this message.&lt;br&gt;&#xD;&#xA;&lt;br&gt;&#xD;&#xA;Time: [DateTime]&lt;br&gt;" />
<MailTemplate Type="Attachment" HTML="False" Subject="QlikView Publisher: [DocTitle] is attached to this message" Body="Your document &quot;[DocTitle]&quot; has been distributed by QlikView Publisher. The document is attached to this message.&#xD;&#xA;&#xD;&#xA;Time: [DateTime]" />
<MailTemplate Type="DistributionInfo" HTML="True" Subject="QlikView Publisher: [DocTitle] has been distributed" Body="Your document &amp;quot;[DocTitle]&amp;quot; has been distributed by QlikView Publisher.&lt;br/&gt;&#xD;&#xA;&lt;br/&gt;&#xD;&#xA;Location: &lt;a href=&quot;[Location]&quot;&gt;[Location]&lt;/a&gt;&lt;br/&gt;&#xD;&#xA;Time: [DateTime]" />
<MailTemplate Type="DistributionInfo" HTML="False" Subject="QlikView Publisher: [DocTitle] has been distributed" Body="Your document &quot;[DocTitle]&quot; has been distributed by QlikView Publisher.&#xD;&#xA;Location: [Location]&#xD;&#xA;&#xD;&#xA;Time: [DateTime]" />
<MailTemplate Type="Alert" HTML="True" Subject="QlikView Publisher: The task &quot;[TaskName]&quot; failed" Body="The task &quot;[TaskName]&quot; failed. Part of the log file follows:&lt;br/&gt;&#xD;&#xA;&lt;br/&gt;&#xD;&#xA;[Log]" />
<MailTemplate Type="Alert" HTML="False" Subject="QlikView Publisher: The task &quot;[TaskName]&quot; failed" Body="The task &quot;[TaskName]&quot; failed. Part of the log file follows:&#xD;&#xA;&#xD;&#xA;[Log]" />
</MailTemplateList>

____________________________________________________________________________

into this:

_____________________________________________________________________________

<MailTemplateList />
_____________________________________________________________________________

Even after adding the template parts manually it's reverted back every time we click on Send Workorder in the QlikView Enterprise Management Console (TAB System).
So, our question is: Where is the original source template, which is related to the workorder.xml, so that we can change it eventually?!