A project manager is getting the following XML error on one of their projects when opening it in Microsoft Project: An import error occurred.
The element <Name> in the <Task> element with <UID> = 0 has invalid data.
The error seems to be referring to a specific task name, but how do you determine which task is the one with the issue?
The error message is being thrown because it can't translate a character in name. In this example, its the character: 	. This character corresponds to the TAB key. Neither MSP or Clarity can directly accept the TAB key in the name field, so the project manager most likely copied it over from some place else.
<Task>
<Manual>0</Manual>
<PercentComplete>0.000000</PercentComplete>
<UID>0</UID>
<WBS>0</WBS>
<Active>1</Active>
<OutlineNumber>1</OutlineNumber>
<ID>0</ID>
<OutlineLevel>1</OutlineLevel>
<Finish>2020-11-11T17:00:00</Finish>
<Priority>500</Priority>
<Name>Test Project 	ABC	DEF</Name>
<IsNull>0</IsNull>
<Start>2020-03-21T08:00:00</Start>...
Delete the TAB and replace it with a space or another character on the project Name field in Clarity. The tab may appear to already be a normal space in the Clarity UI, but it's not based on the XML output, so you will need to delete and/or replace the 'space' anyway.
For steps on how to enable debugging to generate the XML, see XML, MPP and MSP Logs for Troubleshooting MSP Issues.
If the above doesn't help with the issue you are seeing, see