Page 1 of 1

[REACT]

Posted: Thu Jun 23, 2022 9:16 pm
by tikhonov.a.p

Good afternoon. In one of the cases I encountered the following error when importing a plan from a MS Project file.

Please help me with a solution. Critical for Business

version 5.0.3 and 5.0.6
Data in attach

Uncaught (in promise) TypeError: interval.copyWith is not a function
    at calculateEffectiveEndDateConstraintInterval (gantt.module.js:191299:1)
    at calculateEffectiveEndDateConstraintInterval.next (<anonymous>)
    at ClassDefEx.calculateEffectiveConstraintInterval (gantt.module.js:191375:1)
    at calculateEffectiveConstraintInterval.next (<anonymous>)
    at ClassDefEx.doCalculateEarlyEffectiveEndDateInterval (gantt.module.js:191426:1)
    at doCalculateEarlyEffectiveEndDateInterval.next (<anonymous>)
    at ClassDefEx.calculateEarlyEndDateRaw (gantt.module.js:191569:1)
    at calculateEarlyEndDateRaw.next (<anonymous>)
    at Quark.continueCalculation (gantt.module.js:183081:1)
    at EngineTransaction.onReadIdentifier (gantt.module.js:184728:1)

Re: [REACT]

Posted: Thu Jun 23, 2022 10:17 pm
by marcio

Hey,

Using this data.json file that you provided, in the same version that you mentioned, I got the following image attached.

Could you please share how your configuration is set up??


Re: [REACT]

Posted: Fri Jun 24, 2022 9:30 am
by tikhonov.a.p

Sorry, I forgot to mention that this error only occurs when the tree building mode is on.
Turn on next gantt configuration

taskStore:  {tree: true, transformFlatData: true}

Re: [REACT]

Posted: Fri Jun 24, 2022 2:23 pm
by alex.l

Problem has been reproduced. After debugging we didn't find any obvious reasons why it happened, we created a ticket to have a look deeply: https://github.com/bryntum/support/issues/4854

If we remove constraints from Task73, no error appeared, so the problem somewhere around that.

Thank you for the report.


Re: [REACT]

Posted: Mon Jun 27, 2022 7:43 am
by tikhonov.a.p

Understood thanks. Can you tell me if we can increase the priority of this issue? Strong business impact


Re: [REACT]

Posted: Mon Jun 27, 2022 11:14 am
by mats

We will try to investigate this in the next two weeks!


Re: [REACT]

Posted: Tue Jun 28, 2022 8:10 am
by tikhonov.a.p
mats wrote: Mon Jun 27, 2022 11:14 am

We will try to investigate this in the next two weeks!

Thank you. Will wait