Defects

SBM: AppScript: SetFieldValue gives "Error" when updating a date/time field and using Slovenian locale



ID:    D28002
Published:    20 September 2023
 

Defect Id

DEF348864

Originally Reported Against

SBM 12.1

Also Affects

SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM SBM 12.1 Hotfix

Status

Submitted

Description

Copying a date/time value from one date/time field to another date/time field causes the second field to display as "Error". Example code is:

Call Shell.Item.GetFieldValue("DATE_FIELD_1", dateValue1)
Call Shell.Item.SetFieldValue("DATE_FIELD_2", dateValue1)

After the above code runs, the value of the DATE_FIELD_2 will display as "Error".  Looking in the database, the value is "1899-12-26 00:00:00.000"

This problem only happens if System Admin (System Admin > Options > Settings > Locale) and User Setting locale are BOTH set to "Slovenian (Solvenia)". Other locales may also have this problem, but this one was confirmed. The English locales (and others) do not appear to have this issue.

Resolution

Workaround: Change the System Admin locale to be something other than "Slovenian (Solvenia)"

Find Answers

Type a question or describe what you are looking for below

My Recent Searches

Welcome kb sso

Additional Assistance

  • Submit a Case Online
  • FAQs