SjoerdV / ConvertOneNote2MarkDown

Ready to make the step to Markdown and saying farewell to your OneNote, EverNote or whatever proprietary note taking tool you are using? Nothing beats clear text, right? Read on!
GNU General Public License v3.0
196 stars 113 forks source link

Error running script. Com class retreival. #28

Open Putger opened 6 months ago

Putger commented 6 months ago

New-Object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). At F:\Downloads\ConvertOneNote2MarkDown-master\ConvertOneNote2MarkDown.ps1:47 char:14

Unable to find type [Microsoft.Office.InterOp.OneNote.HierarchyScope]. At F:\Downloads\ConvertOneNote2MarkDown-master\ConvertOneNote2MarkDown.ps1:50 char:29

Exception calling "ReleaseComObject" with "1" argument(s): "Object reference not set to an instance of an object." At F:\Downloads\ConvertOneNote2MarkDown-master\ConvertOneNote2MarkDown.ps1:248 char:3

Remove-Variable : Cannot find a variable with the name 'OneNote'. At F:\Downloads\ConvertOneNote2MarkDown-master\ConvertOneNote2MarkDown.ps1:249 char:3

grumpymaker commented 4 months ago

I ran into this and a few other gotchas. What helped for me:

gonzofy commented 2 weeks ago

@grumpymaker Thanks for the explanation. I hit the same bug, and it was because I was running the script in an admin terminal vs. a user terminal. Might be worth updating the docs on the homepage?