OneMore icon indicating copy to clipboard operation
OneMore copied to clipboard

Duplicate Page command started giving error

Open ykurji opened this issue 8 months ago • 0 comments

Problem to Solve

The duplicate page command was working fine and has recently started giving error. It create the new page but doesn't duplicate the contents to the new page. A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior: Not sure about the exact steps to reproduce as it just started happening one day. I am a frequent user of this command. Here is the screenshot of the error:

dllhost_2024June30_410

Here are the relevant error logs:

14|10:22:18.496| System.ArgumentNullException Message: Value cannot be null. Parameter name: input Source: System StackTrace: at System.Text.RegularExpressions.Regex.Match(String input) at System.Text.RegularExpressions.Regex.Match(String input, String pattern) at River.OneMoreAddIn.Commands.DuplicatePageCommand.SetUniquePageTitle(XNamespace ns, XElement section, Page page) at River.OneMoreAddIn.Commands.DuplicatePageCommand.<Execute>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at River.OneMoreAddIn.Commands.DuplicatePageCommand.<Execute>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at River.OneMoreAddIn.CommandFactory.<Run>d__6.MoveNext() TargetSite: [System] System.Text.RegularExpressions.Regex::Match()

Expected Behavior

An exact duplicate page will be created with the contents copied.

Environment (if applicable)

  • OneNote Version: O365, Version 2405 (Build 17628.20144)
  • OneMore Version: Version 6.4.0 with OneNote 16.0.17628.20144

ykurji avatar Jul 01 '24 05:07 ykurji