All Maps Exported Unexpectedly in a Publication

 This article is suitable for an IT Adminstrator

Ref: 201411121107
Last Edited: November 12th, 2014

Symptoms

All maps are exported to HTML in a scheduled publication, even those that haven't changed since the last publication. This can add significantly to the publication time. The time-stamps on all of the HTML files will reflect the time at which the publication ran.

Triaster\TriasterServer2011\ProcessLibraries\<Library>\<Site>\html\
 

Cause

A publication prior to a scheduled publication may have been configured to refresh all published maps through the Administration Publication Tasks webpage.

A publication is initiated by a trigger file added to the 'Queue' folder, the name of which is of these forms when generated through the Administration Publication Tasks webpage.

<Library>_<Site>#true.pntask
<Library>_<Site>#false.pntask

The true/false flag determines whether all maps are refreshed.

This flag isn't included in the PNTASK file generated by the script that initiates scheduled publications, which would just be of the form:

<Library>_<Site>.pntask

Whatever was the last configuration would persist, rather than a default behaviour adopted.
 

Solution

The scheduled publication script can be modified to include that flag.
  1. Open 'schedule.cmd' in a text editor (e.g. Notepad or Notepad++).
     
    Triaster\TriasterServer2011\PublicationFiles\schedule.cmd
    or perhaps:
    Triaster\TriasterServer2011\PublicationFiles\Scheduled Publications\schedule.cmd
     
  2. Seek this line:
     
    set FullTaskName=%PublicationQueueFolder%\%TaskName%.pntask
     
  3. Change it to this (assuming the behaviour should be to only export changed maps):
     
    set FullTaskName=%PublicationQueueFolder%\%TaskName%#false.pntask

Applies To
  • Triaster Server 14.1 and 14.2



Need further help? Contact the Triaster Support team by e-mailing support@triaster.co.uk or by calling us on + 44 (0)870 402 1234.
 
Do you have any feedback or suggestions that you would like to share with Triaster? We would love to hear from you! Please e-mail feedback@triaster.co.uk