Export fails with RPC error
bobf32 opened this issue · 5 comments
bobf32 commented
Bug
A full export fails thowing an error "The remote procedure call failed. (Exception from HRESULT: 0x800706BE)"
Expectation
The export should complete successfully with no errors.
Discussion
Here is the full text of the errors:
## Providence cottage [Page]
Markdown file ready: c:\temp\notes\Andrew's-Notebook\Other\Providence-cottage.md
## Building conversion configuration for Salt pig menu [Page]
## Salt pig menu [Page]
Failed to convert page: Other\Salt-pig-menu. Exception: Error while publishing page to docx file c:\temp\notes\Andrew's-Notebook\docx\{E811580D-52F3-49D5-8033-A6469162AAE8}{1}{E19556216757004340579819475108420806793716133}-1650030024.docx. Exception: Exception calling "Publish" with "4" argument(s): "The remote procedure call failed. (Exception from HRESULT: 0x800706BE)"
Convert-OneNotePage : Failed to convert page: Other\Salt-pig-menu. Exception: Error while publishing page to docx file
c:\temp\notes\Andrew's-Notebook\docx\{E811580D-52F3-49D5-8033-A6469162AAE8}{1}{E195562167570043405798194751084208067937
16133}-1650030024.docx. Exception: Exception calling "Publish" with "4" argument(s): "The remote procedure call
failed. (Exception from HRESULT: 0x800706BE)"
At C:\Users\agab3\Downloads\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-v2.ps
1:1387 char:257
+ ... onConfigs | Convert-OneNotePage -OneNoteConnection $OneNote -Config $ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-OneNotePage
## Building conversion configuration for GitHub - aladine/EverOrg: Evernote to Org mode migration tool [Page]
Convert-OneNote2MarkDown : Exception calling "GetPageContent" with "3" argument(s): "The RPC server is unavailable.
(Exception from HRESULT: 0x800706BA)"
At C:\Users\agab3\Downloads\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-v2.ps
1:1423 char:5
+ Convert-OneNote2MarkDown @params
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-OneNote2MarkDown
Convert-OneNote2MarkDown : at Get-OneNotePageContent,
at <ScriptBlock>,
C:\Users\agab3\Downloads\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-v2.ps1:
line 865
at New-SectionGroupConversionConfig,
C:\Users\agab3\Downloads\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-v2.ps1:
line 864
at Convert-OneNote2MarkDown,
C:\Users\agab3\Downloads\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-v2.ps1:
line 1387
at <ScriptBlock>,
C:\Users\agab3\Downloads\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-v2.ps1:
line 1423
at <ScriptBlock>, <No file>: line 1
At C:\Users\agab3\Downloads\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-2.18.1\ConvertOneNote2MarkDown-v2.ps
1:1423 char:5
+ Convert-OneNote2MarkDown @params
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-OneNote2MarkDown
Cleaning up...
Conversion errors:
Failed to convert page: Other\Salt-pig-menu. Exception: Error while publishing page to docx file c:\temp\notes\Andrew's-Notebook\docx\{E811580D-52F3-49D5-8033-A6469162AAE8}{1}{E19556216757004340579819475108420806793716133}-1650030024.docx. Exception: Exception calling "Publish" with "4" argument(s): "The remote procedure call failed. (Exception from HRESULT: 0x800706BE)"
Exiting.
Environment
Output of Configuration
Export executed with all defaults (ENTER pressed at each prompt)
Output of $PSVersionTable
PS > $PSVersionTable
Name Value
---- -----
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
leojonathanoh commented
leojonathanoh commented
Is this still an issue? If not, it may be closed.
LynnXie00 commented
I am running it. I got the same issue and if I run the code with onenote open, the issue won't happen anymore.
leojonathanoh commented
@LynnXie00 thanks. So that means this error is caused by OneNote not being open during the conversion?
leojonathanoh commented
For future readers, see related issue #112