You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script is running fine until it hits a section group, then it exits with "0."
In my OneNote Notebook "root" I have a few sections like "Inbox", "To Read"... then all section groups (like "/bus," "/dev..." these contain many sections and more "sub"-section groups .) My collapsed "root" looks like this:
Inbox
To Read
/ bus
/ dev
/ home
/ life
/ music
/ work
I see in the docs:
Section Groups are listed but do not contain actual data, so these are ignored
Does this mean it can't navigate into a section group and is skipping all the section groups and exiting with no errors? So all sections to be exported need to be moved out of section groups and to the top level/root?
The text was updated successfully, but these errors were encountered:
hi @johnkyle4, you probably found a bug! I did not use SectionGroups that much so that's why the script logs but ignores them.
In fact SectionGroups can contain Sections and other SectionGroups as it seems and these are not processed: https://getonetastic.com/docs/Hierarchy_Objects_SectionGroup.html
I will classify this issue as a bug, but I can not give an estimate if and when this will be solved.
for now I would advise to move all 'Sections in your existing SectionGroups' to separate Notebooks and run the script on those new notebooks without SectionGroups. You probably will have issues with links in those moved Sections, sorry about that.
@johnkyle4, I didn't notice this issue/bug report - see my issue here where I have attached a modified script that solves this problem (with its own peculiarities - you'll need to put Inbox and To Read in a new section group)
@SjoerdV, you can probably close both issues and incorporate my changes however you like - maybe just have my two scripts included as options in the downloads? If you can address my idea about creating a single media folder in the root directory, that would be fantastic as well!
The script is running fine until it hits a section group, then it exits with "0."
In my OneNote Notebook "root" I have a few sections like "Inbox", "To Read"... then all section groups (like "/bus," "/dev..." these contain many sections and more "sub"-section groups .) My collapsed "root" looks like this:
Inbox
To Read
/ bus
/ dev
/ home
/ life
/ music
/ work
I see in the docs:
Does this mean it can't navigate into a section group and is skipping all the section groups and exiting with no errors? So all sections to be exported need to be moved out of section groups and to the top level/root?
The text was updated successfully, but these errors were encountered: