Issue: 'Incident / New: Template Name - Cireson Incident portal template - specified in web.config is invalid. Used Default template instead.' appearing in WebConsole.log file

Introduction

You may receive an error like this in the Cireson Portal when creating a new work item or asset management object:

 

In the C:\inetpub\CiresonPortal\Logs\webconsole.log file you might see this error (or something like it depending on the type of object you were trying to create:

Incident / New: Template Name - Cireson Incident portal template - specified in web.config is invalid. Used Default template instead.

This is an indication that the template that is configured to be used as the default for create the new object no longer exists in SCSM.  By default., the Cireson Portal uses work item templates that are the default templates provided out of the box in SCSM.  If those templates have been deleted, then this error will appear and you will need to change the default template name in the settings.

Resolution

To resolve this issue you will first need to determine the name of the template that you want to use.  The name is different than the GUID or display name of a template.  The name is the internal name that is unique for each template in SCSM.  You can determine the name of a template by using PowerShell as follows:

  1. Find the display name of the template that you want to use in the SCSM console (Library\Templates)
  2. Log in to a server that is running the SCSM management server and the Cireson Portal web site.
  3. Start PowerShell
  4. Run this command to load the SMLets PowerShell module:  Import-Module SMLets
  5. Run this command to find the template name:  Get-SCSMObjectTemplate | ?{$_.DisplayName -eq 'the display name of the template'} | Format-Table Name, DisplayName
  6. Copy the value from the Name column (select the text and right click is how you copy something in PowerShell)

The template ID can be changed in the admin settings within the portal.

  1. Log in as a SCSM administrator.
  2. Navigate to admin settings. (upper right menu)
  3. Click the Setting Items button.
  4. On the Setting Items page find the DefaultIncidentTemplate setting.
  5. Change the template value to the GUID value found via the PowerShell command earlier and click Save.
  6. To force update the setting, restart the web site(s) via the IIS console.