Hi Dev,
How do we handle the exception on Gantt and Schedular Pro is there any Documents available? We are getting random error either due to improper data input or some other data formatting issues and most of it are non-traceable like somewhere around the Gantt core lib which have hundreds of call stack on a minified js file.
Is there any better way to handle the Exception and identify the root cause of those issue weather its a wrong data or wrong handling of project model etc.,
The main issue is after any exception, the whole gantt is unusable, there is no way to fix it than to refresh the whole page.
Could you please give us more details about the issue you have?
I cannot give you any advice now except a generic way of handling exceptions in JavaScript https://www.w3schools.com/js/js_errors.asp
Could you please give us more details about the issue you have?
I cannot give you any advice now except a generic way of handling exceptions in JavaScript https://www.w3schools.com/js/js_errors.asp
Say for example if we don't supply any date for timeRanges, the Gantt is not highlighting the weekends even though there is a data on calendar interval not sure what is connecting between these, when we reload the project data and when we double click on editing a endDate the Gantt freeze for few sec and the changed data is not affected.
When we reload a large set of data we are getting this below error...
gantt.module.js:84801 Uncaught (in promise) TypeError: Cannot read property 'concat' of undefined
at ClassDefEx.calculateEarlyEffectiveEndDateInterval (gantt.module.js:84801)
at calculateEarlyEffectiveEndDateInterval.next (<anonymous>)
at Map.continueCalculation (gantt.module.js:78114)
at EngineTransaction.onReadIdentifier (gantt.module.js:79367)
at EngineTransaction.calculateTransitionsStackGen (gantt.module.js:79494)
at calculateTransitionsStackGen.next (<anonymous>)
at EngineTransaction.calculateTransitions (gantt.module.js:79401)
at calculateTransitions.next (<anonymous>)
at runGeneratorAsyncWithEffect (gantt.module.js:78221)
at gantt.module.js:79287
OR
Uncaught (in promise) Error: Unknown identifier [object Object]
at throwUnknownIdentifier (gantt.module.js:78640)
at EngineTransaction.addEdge (gantt.module.js:79318)
at EngineTransaction.onReadIdentifier (gantt.module.js:79362)
at EngineTransaction.calculateTransitionsStackGen (gantt.module.js:79494)
at calculateTransitionsStackGen.next (<anonymous>)
at EngineTransaction.calculateTransitions (gantt.module.js:79401)
at calculateTransitions.next (<anonymous>)
at runGeneratorAsyncWithEffect (gantt.module.js:78221)
at gantt.module.js:79287
....
....
(Show 45 more frames)
We were not sure why these occurs on data changes. If these exception are throw with a meaningful error information like "The Start date should not be empty or Exception while calculating effort on so and so data". Since these exception on a development phase is ok or easy to identify but in production case we will be not sure what's causing these errors.
We would love to add more helpful error messages. First, could you please let us know how to reproduce each of the errors you are seeing? Then we can go through them one by one and investigate.