Loading

Date attribute defaults to Jan 1, 9999 with validation message ‘Enter the date in YYYY-MM-DD format’.

Publiceringsdatum: Jun 29, 2026
Beskrivning

This is working as expected. When a Product’s Date attribute is referenced in CML, the constraints engine will default the Date attribute value to Jan 1, 9999. 

Lösning

Workarounds:

Set the configurable annotation to false:

@(configurable=false)

date Date_Attribute;

 

OR

 

Use a preference Rule to assign the date. 

preference(Date_Attribute == null -> Date_Attribute == "2026-12-31”);

 

OR

 

Use the defaultValue annotation within a domain. 

@(defaultValue = “2027-01-01”)

date Date_Attribute = ["2026-01-01", "2027-01-01”];

 

OR

 

If CML should ignore the Date attribute completely, consider also commenting:

// date Date_Attribute;

 

See also:

configurable Annotation

Preference Rule 

defaultValue Annotation 

 

Knowledge-artikelnummer

005387374

 
Laddar
Salesforce Help | Article