MSProject import and export issues

I downloaded the import and export service from MSProject and debugged it locally. When debugging with Postman, I received an error message as shown in the following figure

Hello,
It is hard to suggest what might be wrong in your case. But it seems you are using the older MSP export module version that is an ASP.NET application.
The newer version is a .NET Core application, and it has a better description of what is wrong with the import/export process. To get the newer version, you can submit a support request via email that you can find in the letter with the license.

Regardless of the version, the issue may be related to the file you try to import and the configuration that you use.

Please add your configuration to the following snippet and make sure that the issue is reproduced there:

Then, click on the Save button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.

And I will also need a test file where the issue can be reproduced.

Thank you for your reply.
The problem has been solved.Now there is a new problem, I added a custom column in msproject, selected text 1, how to import this column

Hello Jesse,
You need to manually specify the custom properties you want to import in the taskProperties parameter of the import function. Then you need to assign the custom properties from the $custom_data parameter to the task object.
You can read about it in the following article:
https://docs.dhtmlx.com/gantt/desktop__export_msproject.html#importfrommsproject:~:text=Getting%20tasks%20properties

Here are examples:
https://snippet.dhtmlx.com/ibn2cvya

Thank you for your reply.

Can the type of custom columns be guaranteed for export? For example, in the project, there is a column with flag 1, and when exported, it is hoped that it is also of flag type

image
Does this only support export and not import?

Hello Jesse,

Can the type of custom columns be guaranteed for export? For example, in the project, there is a column with flag 1, and when exported, it is hoped that it is also of flag type

Unfortunately, some properties are not exported, but there is no way to tell which one will work.
You can check the list of the supported properties:
https://docs.dhtmlx.com/gantt/desktop__tags.html#tasksproperties

It should work for other properties, but you need to manually check if it works for them.


Does this only support export and not import?

The MSP export module allows importing and exporting MSP and Primavera files. It is only called that way.