For project durations exceeding 1 year, the Gantt chart throws an error indicating that the startDate is greater than the endDate.
you have access to the org, you can use the "Project More Than 1 Year" Project
Support Forum
Hi Max,
This is the project link:
https://klenka5-dev-ed.develop.lightning.force.com/lightning/r/cwproject360__Project__c/a01d20000055Oq4AAE/view
Start: 8/8/2024
Finish : 8/10/2025
If you opened the console , you will see these errors
Uncaught (in promise) Error: Negative duration at t0.setEndDate (eval at <anonymous> (eval at <anonymous> (
startDate > endDate for TimeSpan record with id: _generatedTimeSpan_1e125d4b-7834-4a18-a820-7a4c24bab8c7
Reproduced, ticket opened here: https://github.com/bryntum/support/issues/9798 Thank you for report.
Solution to this problem is to specify intervals more consistently:
{
"id": "general",
"name": "General",
// this marks all intervals as non working by default so you can specify shorter working intervals
"unspecifiedTimeIsWorking": false,
"intervals": [
{
"isWorking": true,
"recurrentEndDate": "on Sun at 17:00",
"recurrentStartDate": "on Sun at 08:00"
},
{
"isWorking": true,
"recurrentEndDate": "on Mon at 17:00",
"recurrentStartDate": "on Mon at 08:00"
},
{
"isWorking": true,
"recurrentEndDate": "on Tue at 17:00",
"recurrentStartDate": "on Tue at 08:00"
},
{
"isWorking": true,
"recurrentEndDate": "on Wed at 17:00",
"recurrentStartDate": "on Wed at 08:00"
},
{
"isWorking": true,
"recurrentEndDate": "on Thu at 17:00",
"recurrentStartDate": "on Thu at 08:00"
},
{
"isWorking": false,
"startDate": "2024-08-31",
"endDate": "2024-09-01"
}
]
}
https://bryntum.com/products/gantt/docs/api/Gantt/model/CalendarModel#field-unspecifiedTimeIsWorking