PowerPoint opens the presentation without problems, but emits an error when trying to save it, and then the file is saved without problems, ie the files works fine after saving.
The solution I seek is how to modify the xml files of the presentation (I assume chart1.xml), so that PowerPoint does not emit an error when trying to save the file.
I've browsed this forum and other sites for similar problems, but none of them have a solution that works.
We can NOT use office to fix the file as it would require us to open thousands of files manually. We want to be able to automate bugfix the files of this type, ie automatically unzip the files, then run a script to modify the xml of each file, and then zip them again.
Here is a link to a folder containing the PowerPoint file test.pptx:
https://drive.google.com/drive/folders/1d8-NNkmOJ_Nww4pTCZAoMkKhiyyy87cg?usp=drive_link
Here is a link to an image of the error dialog that PowerPoint shows when trying to save the file:
https://imgur.com/a/lz0LvRr
For convenience I repeat the error message PowerPoint displays:
PowerPoint couldn't read some content in test.pptx and removed it.
Please check your presentation to see if the rest of it looks ok.
The problem PowerPoint has, seem to be with the extension-lists that defines an identifier for each of the series. Here you can see the first two extension-lists of the chart of the presentation (chart1.xml):
<c:ser>
...
<c:extLst>
<c:ext xmlns:c16="http://schemas.microsoft.com/office/drawing/2014/chart"
uri="{C3380CC4-5D6E-409C-BE32-E72D297353CC}">
<c16:uniqueID val="{00000000-2153-43F5-A17B-C2679033F518}" />
</c:ext>
</c:extLst>
</c:ser>
<c:ser>
...
<c:extLst>
<c:ext xmlns:c16="http://schemas.microsoft.com/office/drawing/2014/chart"
uri="{C3380CC4-5D6E-409C-BE32-E72D297353CC}">
<c16:uniqueID val="{00000001-2153-43F5-A17B-C2679033F518}" />
</c:ext>
</c:extLst>
</c:ser>
If I remove the the extension-lists then PowerPoint opens the file (again without problems as it did before) and can now also save the file without problems, ie without displayin an error message.
If I don't remove the extension-lists then PowerPoint has the problem described above, and when I click Ok to let PowerPoint save the file, it basically replace the extension-lists with identical extensions-lists, except that the value of the uniqueID's have changed.
I do not understand what is wrong with the presentation and I am convinced that the automated AI response will be nonsense.
How should the xml in the presentation be modified so that PowerPoint does not emit an error?
The problem is the same on multiple PC's with different versions of windows (10 and 11), but all currently using:
Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2405 Build 16.0.17628.20006) 64-bit