Calendar object is not displayed properly

Discussion created by Christine_Chavez_6412 on Apr 3, 2017
Latest reply on Apr 5, 2017 by Christine_Chavez_6412
A weird case we encountered lately.. working calendars in certain clients stopped displaying correctly. 


It was not a resolution issue because using the same UserInterface, connected to the same system, the CALE object in some clients work just fine. Importing/exporting a working/non working CALE between a good and corrupted client, yield the same result (will always display in a good client, will always be corrupted in a corrupted client). 

The issue turned out to be a "space" in UC_CLIENT_SETTINGS > FIRST_DAY_OF_WEEK
FIRST_DAY_OF_WEEK is set to "1 " (there's a space after 1). Removing the space resovled the issue.

We found out the issue by running a UserInterface trace  where
in ERR.txt you'll see: 
java.lang.NumberFormatException: For input string: "1 " 
- java.lang.NumberFormatException.forInputString(:0): Unknown Source 

in the UI Trace files (xml=3):
<SETTINGS client="0500" idnr="0001156453" name="PROD" src="ini" system="AUTOMDEV"> 
<FIRSTWEEK default="1 ">0</FIRSTWEEK>