Lattice Grid Buy a licence

Gantt · console.warn

gantt: importMSPDI input is not an MSPDI <Project> document.

Printed by Gantt, prefixed [lattice], since 1.38.0.

Warnings referencegantt-mspdi-not-project

Identifier
gantt-mspdi-not-project
Raised by
Gantt
Since
1.38.0

What happened

importMSPDI() parsed the XML and its root element is not <Project>. Nothing was imported: the call returns { ok: false } with empty task, dependency and resource lists. An MPP file renamed to .xml, or an XML file that failed to parse at all, both arrive here.

The fix

Export from Microsoft Project as an MSPDI XML file ("Save As" → XML), and pass the file's text rather than a File or an ArrayBuffer.

Reference

Covered in full at the API reference.