Error “Invalid Date Time. Please check your settings and try again” when trying to Schedule for Later in a browser set to Italian language

book

Article ID: 155917

calendar_today

Updated On:

Products

ServiceDesk

Issue/Introduction

When working with a Schedule For Later smart task in a browser set to Italian language, Date Time format is not recognized and an error is returned.

Error,Tuesday, January 24, 2012 17:40:28,System.FormatException: String was not recognized as a valid DateTime.
   at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at LogicBase.Components.Default.DateHandling.ConvertStringToDate.Run(IData data)

Cause

Italian time format uses “.” separator instead of “:  which cannot be recognized by Convert String to Date component due to ServiceDesk 7.0 MR2 not being localized.

 

Resolution

Customers who are seeking localization must upgrade to the latest product version. The following workaround can be applied for ServiceDesk 7.0 MR2:

  1. Go to Initial Diagnosis model and double-click to edit that;
  2. Go to Interaction Setup tab and highlight Schedule For Later, click Edit
  3. Click the ellipsis in the end of the Dialog Model line
  4. Add a 'Replace String in Text' component to the output path of 'Merge Text' component following the 'Schedule Incident' web form.
  5.  Edit the 'Replace String in Text' component with the following settings: a.  Input Variable Name: PreferredFollowUpDateText

b.  Replace Text: .

c.  Replace With: :

d.  Output Variable Name: PreferredFollowUpDateText

 

6.  Save & Publish the modified workflow.

7.  Reset IIS and restart Server Extensions.

 


Applies To

ServiceDesk 7.0 MR2