-
Notifications
You must be signed in to change notification settings - Fork 78
Description
More of an FYI to add this in the requirements or the error list, I receive error Exception: Exception calling "Publish" with "4" argument(s): "0x80042006"
, this was to do with the export failing due to office being stuck trying to set a label for the document. Modifying the code and making the Word instance visible, you can see the process in task manager. For us, the policy was set as a user configuration via the O365, logging into Office with a different account that did not have this restriction allowed the script to run.
One of the easiest ways to check if you're affected by this is to use OneNote directly File > Export > Page > .docx. If your exported document is 0kb, you likely have something stopping you and the script will not work.
Probably worth noting, you can export out as .doc for us, but was not able to use to word com object to convert as it then needed a sensitivity label.