Skip to Content
Dec 14, 2022 at 12:29 PM

Error when using sortByType="Year" in a Timeline

313 Views Last edit Dec 14, 2022 at 12:34 PM 2 rev

Hi all,

I use a Timeline control and set the "groupByType" property to "None" and it works just fine, but it isn't grouping by "Year". When I set the "groupByType" property to "Year" I get the error "The given date instance isn't valid". I believe this is because either the Date I get from the ODate isn't in the correct format for the conversion or because the SAPUI5 version isn't compatible with OData V2. I have tried with a formatter to change it into the appropriate format, but to no avail.

I'm using an OData V2 Service to get the Data for the Timeline and SAPUI5 Version 1.71.51.