The script function <MODIFY_OBJECT> does not work for static variables with Data Type 'String', 'Number', 'Timestamp' or 'T', 'Time' and 'Date' as described in documentation

Document ID : KB000087839
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
00020640EERuntime error in object '&01', line '&02'. No valid data type '&04' was entered!

According to the documentation (http://docs.automic.com/documentation/AE/11.2/english/AE_WEBHELP/help.htm?product=awa#ucabhk.htm?Highlight=MODIFY_OBJECT) the Function <MODIFY_OBJECT> should work with Static Variables and the following Data Types in the following syntax:
 
MODIFY_OBJECT(Object name, [Title], [Error Handling], [Data Type])
 
As for the Data Type the following values should be used:
'String' or 'C' for a Text
'Number' or 'N' for Numbers
'Timestamp' or 'T' for the Timestamp
'Time' for the Time
'Date' for the Date
 
However only the following values are working correctly:
'C' for a Text
'N' for Numbers
'TS' for Timestamp
'TI' for Time
'D' for Date
 
Every other syntax is incorrect and results in the following Error:
 
00020640EERuntime error in object '&01', line '&02'. No valid data type '&04' was entered!
 
Solution:
For the different Data Types the following syntax is the correct one:
 
C – for a Text
N – for Numbers
D – for Date
TI – for Time
TS – for Timestamp
 
Cause:
Cause type:
Other
Root Cause: Wrong documentation
Resolution:
This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Additional Information:
Workaround :
Solution:For the different Data Types the following syntax is the correct one: C – for a TextN – for NumbersD – for DateTI – for TimeTS – for Timestamp