forked from SjoerdV/ConvertOneNote2MarkDown
-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
When I try to run the script, the console returns: The variable '$pageConversionConfigs' cannot be retrieved because it has not been set.
Expectation
Either success on converting the notebook or an informed log about what has gone wrong
Discussion
Hi! I love this app. Sadly I cannot make it work, When I run the script, I have this response from the shell, (after the config log):
Notebooks to convert:
Auca's Notebook
Converting notebook 'Auca's Notebook'... (Ignoring deleted notes)
Building conversion configuration for Auca's Notebook [Notebook]
Ignoring empty Section Group:
Convert-OneNote2MarkDown : The variable '$pageConversionConfigs' cannot be retrieved because it has not been set.
At C:\Users\aucac\other-repos\ConvertOneNote2markdown\ConvertOneNote2MarkDown-v2.ps1:1474 char:5
+ Convert-OneNote2MarkDown @params
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-OneNote2MarkDown
Convert-OneNote2MarkDown : at Convert-OneNote2MarkDown, C:\Users\aucac\other-repos\ConvertOneNote2markdown\ConvertOneNote2MarkDown-v2.ps1: line 1436
at <ScriptBlock>, C:\Users\aucac\other-repos\ConvertOneNote2markdown\ConvertOneNote2MarkDown-v2.ps1: line 1474
at <ScriptBlock>, <No file>: line 1
At C:\Users\aucac\other-repos\ConvertOneNote2markdown\ConvertOneNote2MarkDown-v2.ps1:1474 char:5
+ Convert-OneNote2MarkDown @params
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-OneNote2MarkDown
Cleaning up...
Exiting.The script recognizes perfectly all my notebooks in onenote, but from there goes no further.
These are the setps I took:
- I cloned the repo
- installed pandoc with
choco install pandoc - renamed config file to
config.ps1 - ran
.\ConvertOneNote2MarkDown-v2.ps1
I googled about the error and found this about a policy, tried, and didn't work either.
Am I doing something wrong? I also tested alopezrivera/owo but got the same result.
Environment
Output of Configuration
Configuration:
dryRun: 1
notesdestpath: c:\temp\notes
targetNotebook:
usedocx: 1
keepdocx: 1
docxNamingConvention: 1
prefixFolders: 1
mdFileNameAndFolderNameMaxLength: 32
medialocation: 1
conversion: markdown-simple_tables-multiline_tables-grid_tables+pipe_tables
headerTimestampEnabled: 1
keepspaces: 1
keepescape: 1
newlineCharacter: 1
exportPdf: 1Output 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.1Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working