Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import Markdown file. #1763

Open
DudeThatsErin opened this issue Jan 25, 2025 · 1 comment · Fixed by #1764
Open

Unable to import Markdown file. #1763

DudeThatsErin opened this issue Jan 25, 2025 · 1 comment · Fixed by #1764
Labels
bug Something isn't working next-release Addressed but not yet released

Comments

@DudeThatsErin
Copy link

DudeThatsErin commented Jan 25, 2025

Problem to Solve

I am migrating back to OneNote from Obsidian and I clipped a page with Obsidian's Clipper and I wanted to import that to OneNote. All it has is a youtube embed and a callout with the description from YT.

EDIT: Seems like simple files with just text in them are failing due to the names being wrong. I removed all spaces, underscores, or anything. There are just letters and numbers now with no spaces and it is still failing for Message: Illegal characters in path.

To Reproduce

Download this note.
attempt to import
get error

Expected Behavior

For it to at least import all of the text as a header

Screenshots

File I am importing: Harvard_CS50s_Artificial_Intelligence.md

Screenshot of that note:
Image

Environment (if applicable)

  • OneNote Version: Latest version
  • OneMore Version Latest version - just updated prior to posting this BR.

Additional Context

Log file:

03|04:44:06.979| Running command ImportCommand
05|04:46:29.966| hashtag SERVICE scanned 376 pages, 12/3 notebooks, 41 sections, updating 0 pages, saving 0 tags, in 30474ms
09|04:49:00.218| hashtag SERVICE scanned 377 pages, 12/3 notebooks, 41 sections, updating 0 pages, saving 0 tags, in 30247ms
06|04:51:30.314| hashtag SERVICE scanned 377 pages, 12/3 notebooks, 41 sections, updating 0 pages, saving 0 tags, in 30082ms
04|04:54:00.588| hashtag SERVICE scanned 378 pages, 12/3 notebooks, 41 sections, updating 0 pages, saving 0 tags, in 30269ms
03|04:54:28.215| Running command ImportCommand
15|04:54:56.358| Running command ImportCommand
15|04:55:09.174| ..importing markdown E:\Obs\MyVault\Clipper\Harvard_CS50s_Artificial_Intelligence.md
15|04:55:09.406| ..System.ArgumentException
Message: Illegal characters in path.
Source: mscorlib
StackTrace:    at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.Combine(String path1, String path2)
   at River.OneMoreAddIn.Commands.WikilinkRenderer.Write(HtmlRenderer renderer, WikilinkInline obj)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.RendererBase.WriteChildren(ContainerInline containerInline)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.Html.ParagraphRenderer.Write(HtmlRenderer renderer, ParagraphBlock obj)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.RendererBase.WriteChildren(ContainerBlock containerBlock)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.TextRendererBase.Render(MarkdownObject markdownObject)
   at River.OneMoreAddIn.Commands.OneMoreDig.ConvertMarkdownToHtml(String path, String markdown)
   at River.OneMoreAddIn.Commands.ImportCommand.<ImportMarkdownFile>d__14.MoveNext()
TargetSite: [mscorlib] System.IO.Path::CheckInvalidPathChars()

15|04:55:13.933| ..00:04.76 markdown file imported
07|04:55:46.285| OnBeginShutdown(custom[])
07|04:55:46.285| ..shutting down UI
07|04:55:46.291| ..OnDisconnection(RemoveMode:ext_dm_HostShutdown,custom:[])
07|04:55:46.291| ..disposing 9 streams
07|04:55:46.291| ..closing log

01|05:02:46.080| Starting dllhost 8104, 3000 Mhz, 16 MB, en-US/en-US, v6.7.1, OneNote 15.0, Office 16.0, 2025-01-25 17:02
01|05:02:46.081| ..Windows 11 Core, Version 23H2, Build 22621, 64 bit
01|05:02:46.085| ..C:\Program Files\Microsoft Office\root\Office16\ONENOTE.EXE (16.0.18324.20194)
01|05:02:46.097| ..OnConnection(ConnectionMode:ext_cm_Startup,custom[1:Int32])
01|05:02:46.098| ..OneAddInsUpdate(custom[])
01|05:02:46.499| ..building ribbon
01|05:02:46.502| ..building ribbon colorizer commands
01|05:02:46.793| ..building context menu
01|05:02:46.936| ..OnStartupComplete(custom[])
01|05:02:46.938| ..starting command service
01|05:02:46.938| ..starting reminder service
01|05:02:46.940| ..starting navigation service
03|05:02:47.051| ..defined 55 hotkeys for input locale 1033
01|05:02:47.445| ..starting hashtag service, Ready
01|05:02:47.445| ..ready
07|05:02:47.447| hashtag service waiting, Ready
06|05:03:01.116| Running command ImportCommand
06|05:03:08.469| ..importing markdown E:\Obs\MyVault\Clipper\Harvard_CS50s_Artificial_Intelligence.md
06|05:03:08.691| ..System.ArgumentException
Message: Illegal characters in path.
Source: mscorlib
StackTrace:    at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.Combine(String path1, String path2)
   at River.OneMoreAddIn.Commands.WikilinkRenderer.Write(HtmlRenderer renderer, WikilinkInline obj)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.RendererBase.WriteChildren(ContainerInline containerInline)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.Html.ParagraphRenderer.Write(HtmlRenderer renderer, ParagraphBlock obj)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.RendererBase.WriteChildren(ContainerBlock containerBlock)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.TextRendererBase.Render(MarkdownObject markdownObject)
   at River.OneMoreAddIn.Commands.OneMoreDig.ConvertMarkdownToHtml(String path, String markdown)
   at River.OneMoreAddIn.Commands.ImportCommand.<ImportMarkdownFile>d__14.MoveNext()
TargetSite: [mscorlib] System.IO.Path::CheckInvalidPathChars()

06|05:03:10.752| ..00:02.28 markdown file imported
13|05:03:15.341| hashtag SERVICE scanned 378 pages, 12/3 notebooks, 41 sections, updating 0 pages, saving 0 tags, in 24883ms
15|05:05:39.869| hashtag SERVICE scanned 378 pages, 12/3 notebooks, 41 sections, updating 0 pages, saving 0 tags, in 24510ms
06|05:22:45.080| Running command ImportCommand
06|05:22:56.514| ..importing markdown E:\Obs\MyVault\01January\1January.md
06|05:22:56.515| ..System.ArgumentException
Message: Illegal characters in path.
Source: mscorlib
StackTrace:    at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.Combine(String path1, String path2)
   at River.OneMoreAddIn.Commands.WikilinkRenderer.Write(HtmlRenderer renderer, WikilinkInline obj)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.RendererBase.WriteChildren(ContainerInline containerInline)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.Html.ParagraphRenderer.Write(HtmlRenderer renderer, ParagraphBlock obj)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.RendererBase.WriteChildren(ContainerBlock containerBlock)
   at Markdig.Renderers.RendererBase.Write(MarkdownObject obj)
   at Markdig.Renderers.TextRendererBase.Render(MarkdownObject markdownObject)
   at River.OneMoreAddIn.Commands.OneMoreDig.ConvertMarkdownToHtml(String path, String markdown)
   at River.OneMoreAddIn.Commands.ImportCommand.<ImportMarkdownFile>d__14.MoveNext()
TargetSite: [mscorlib] System.IO.Path::CheckInvalidPathChars()

06|05:22:58.430| ..00:01.91 markdown file imported
@DudeThatsErin DudeThatsErin added bug Something isn't working unread I have seen it or had time to refine it yet labels Jan 25, 2025
@stevencohn stevencohn added next-release Addressed but not yet released and removed unread I have seen it or had time to refine it yet labels Jan 26, 2025
@stevencohn stevencohn linked a pull request Jan 26, 2025 that will close this issue
@DudeThatsErin
Copy link
Author

Wow that was fast. Excited this will be fixed soonTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next-release Addressed but not yet released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants