-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Code fails on first OneNote. I'll fork the repo and try to fix it.
PS C:\repo\OneNoteExporter> .\one "C:\OneNoteExport"
Configuration:
notesDestPath: C:\OneNoteExport
targetNotebook:
docxReuse: 1
docxKeep: 1
docxNamingConvention: 2
prefixFolders: 1
muFileNameAndFolderNameMaxLength: 255
mediaLocation: 1
conversion: org-simple_tables-multiline_tables-grid_tables+pipe_tables
markupPack:
headerTimestamp: 1
keepEscape: 1
keepEmptyListItems: 1
newlineCharacter: 1
exportPDF: 1
Notebooks to convert:
Bible Study Notes
Business 2
Personal Notes 2
Powershell 2025
2025 Professional - ewm
Woodworking - ewm
Converting notebook 'Bible Study Notes'... (Ignoring deleted notes)
Building conversion configuration for Bible Study Notes [Notebook]
Building conversion configuration for Guidelines for Collaborative Study [Section]
Building conversion configuration for Guidelines for Collaborative Study [Page]
Guidelines for Collaborative Study [Page]
Failed to convert page: Guidelines for Collaborative Study\Guidelines for Collaborative Study. Reason: Error while publishing page to docx file C:\OneNoteExport\Bible Study Notes\docx\Guidelines for Collaborative Study-Guidelines for Collaborative Study.docx: Exception calling "Publish" with "4" argument(s): "The remote procedure call failed. (Exception from HRESULT: 0x800706BE)"
Convert-OneNotePage : Failed to convert page: Guidelines for Collaborative Study\Guidelines for Collaborative Study.
Reason: Error while publishing page to docx file C:\OneNoteExport\Bible Study Notes\docx\Guidelines for Collaborative
Study-Guidelines for Collaborative Study.docx: Exception calling "Publish" with "4" argument(s): "The remote procedure
call failed. (Exception from HRESULT: 0x800706BE)"
At C:\repo\OneNoteExporter\one.ps1:58 char:257
- ... onConfigs | Convert-OneNotePage -OneNoteConnection $OneNote -Config $ ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-OneNotePage
Building conversion configuration for Comments regarding OneNote [Page]
one : Exception calling "GetPageContent" with "3" argument(s): "The RPC server is unavailable. (Exception from
HRESULT: 0x800706BA)"
At C:\repo\OneNoteExporter\one.ps1:100 char:5
-
one @params -
~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,one
one : at Get-OneNotePageContent, C:\repo\OneNoteExporter\src\OneNote\OneNote-Retrieve.psm1: line 35
at , C:\repo\OneNoteExporter\src\Conversion\Conversion-Config.psm1: line 343
at New-SectionGroupConversionConfig, C:\repo\OneNoteExporter\src\Conversion\Conversion-Config.psm1: line 342
at one, C:\repo\OneNoteExporter\one.ps1: line 58
at , C:\repo\OneNoteExporter\one.ps1: line 100
at , : line 1
At C:\repo\OneNoteExporter\one.ps1:100 char:5
-
one @params -
~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,one
Cleaning up...
Conversion errors:
Failed to convert page: Guidelines for Collaborative Study\Guidelines for Collaborative Study. Reason: Error while publishing page to docx file C:\OneNoteExport\Bible Study Notes\docx\Guidelines for Collaborative Study-Guidelines for Collaborative Study.docx: Exception calling "Publish" with "4" argument(s): "The remote procedure call failed. (Exception from HRESULT: 0x800706BE)"
Exiting.
PS C:\repo\OneNoteExporter>