Open elegault opened 1 week ago
@elegault - Thanks for sharing. Do you know if this error was always happening or if this is a new error/regression?
@elegault - Thanks for sharing. Do you know if this error was always happening or if this is a new error/regression?
I've never worked with the shapes collections before, so I don't know if it ever worked in PowerPoint Online.
I have isolated the cause: if I rename the "Fußzeilenplatzhalter 7" footer in the slide master of the custom template to anything that doesn't have the "ß" character, the exception is not thrown! So my guess is that it is a character encoding issue of some kind! Not sure what other special characters can cause this.
Calling ShapeCollection.load() on a collection retrieved from SlideLayout.shapes causes a RichApi.Error: GeneralException in PowerPoint Online:
The error does not occur in PowerPoint for Windows,
Your Environment
Expected behavior
The ShapeCollection is loaded and available for enumeration.
Current behavior
The error listed above occurs.
Steps to reproduce
Load this script in Script Lab:
Provide additional details
EDIT: After some testing, it appears to be happening only with a presentation created from a custom template: PresentationFromCustomTemplate.pptx
The error does not occur with a new, blank presentation from no template: PresentationFromNoTemplate.pptx