Page 1 of 1

Issues importing an MPP file

Posted: Mon Jan 18, 2021 10:42 am
by daniel.piret

Hello,

We are having issues with the attached MPP file (adding as zip as MPP is blocked in the forum), we tried to load this with https://dev.bryntum.com/examples/gantt-vanilla/examples/msprojectimport/index.html and we get the same error:

Import error: SyntaxError: JSON.parse: unexpected character at line 1 column 27 of the JSON data

We load this in MS Project and with https://app.ganttpro.com and seems to be loading fine, can you help us to pin point what the problem is as we dont have the source code of the bryntum jar reader, please?

Thanks,


Re: Issues importing an MPP file

Posted: Mon Jan 18, 2021 2:22 pm
by pmiklashevich

We will investigate, thanks for the report. Ticket here: https://github.com/bryntum/support/issues/2249

Have you tried to export this file from MS Project when you open it there, and then import it to the Bryntum Gantt again? What is your MS Project version?

Reader sources are in Gantt/examples/msprojectimport/msprojectreader. Please read Gantt/examples/msprojectimport/README.md to learn how to build sources. The example is shipped with the prebuilt Gantt/examples/msprojectimport/msprojectreader/target/bryntum-msproject-reader-6.1.8.jar file.


Re: Issues importing an MPP file

Posted: Wed Jan 27, 2021 9:57 am
by daniel.piret

Hello,

I see that 4.1.0 is a beta, so is this going to be included in the 4.0.x or is it possible to apply this to the 4.0 branch? on the other hand the version referred it's not available anymore, is this because it's removed (not available in the customer zone)?

Not sure if you are saying that the msproject import fix is in the reader, if that's the case then we can get the nightly build and then compile the jar, is that what you are suggesting?


Re: Issues importing an MPP file

Posted: Wed Jan 27, 2021 10:37 am
by alex.l

Hi daniel.piret,

You can find nightly build with the fix available in the Customer Zone. The name of the zip you need, as example, is gantt-2021-01-27-next.zip
This fix will not be applied to versions 4.0.x, it will be available with official 4.1.0 release.
You can use files from nightly build and apply the fix by yourself.

All the best,
Alex


Re: Issues importing an MPP file

Posted: Wed Jan 27, 2021 12:59 pm
by daniel.piret

Hi Alex,

Thanks for your reply, as we had to customize some of the ts files (as per one of the earliest post that we did regarding an effort calculation), do you know if the change is in the jar or the fix is in the javascript/typescript files? if it's with the "bryntum msprojectimport/msprojectreader/target/bryntum-msproject-reader-6.1.8.jar" then the upgrade using the nightly build will not be a problem for us, but if this is in the typescript/javascript files then doing the upgrade to an unstable version seems like a non workable solution for us at the moment, can you confirm where this fix has been applied to take a decision on how to upgrade?

Thanks,


Re: Issues importing an MPP file

Posted: Wed Jan 27, 2021 1:35 pm
by alex.l

Changes have been made in java, xml, jar, php files. There are no changes in js files for this fix.


Re: Issues importing an MPP file

Posted: Wed Jan 27, 2021 1:46 pm
by daniel.piret

that's good news thanks!, we will try the new jar then.