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

(Bug report) Cannot export root note ("Cannot export branch root since it does not exist") #2346

Closed
1 task done
sigaloid opened this issue Nov 15, 2021 · 7 comments
Closed
1 task done

Comments

@sigaloid
Copy link
Sponsor Contributor

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

Trilium Version

0.48.6

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

xubuntu

Expected Behavior

I should be able to export the root note.

Actual Behavior

When choosing export zip on any other note, the filename in the export dialog is a .zip, but on the root note, it's an HTML file. And even if I export the root note as a HTML file, it doesn't actually create the file.

Export file dialog on root note:
image

Export file dialog on any other note:
image

It never saves the file if I export the root note

As well, the web version says this: "Cannot export branch root since it does not exist."

Additional Information

No response

@sigaloid sigaloid changed the title (Bug report) Cannot export root note with descendants (Bug report) Cannot export root note ("Cannot export branch root since it does not exist") Nov 15, 2021
@zadam zadam closed this as completed in 20a187f Nov 15, 2021
@zadam
Copy link
Owner

zadam commented Nov 15, 2021

Fixed, thanks for reporting!

zadam added a commit that referenced this issue Nov 15, 2021
(cherry picked from commit 20a187f)
@decentropy
Copy link

Fixed, thanks for reporting!

@zadam I don't think this is fixed?

I am on 0.58.2-beta ... and when I try to export root, it gives error page "Cannot export branch root since it does not exist."

@sigaloid
Copy link
Sponsor Contributor Author

sigaloid commented Jan 3, 2023

That issue might also be caused by a corrupted database, have you tried running the various database fixes in settings -> advanced?
image

@decentropy
Copy link

I just ran 'check' and 'find & fix'... it said no issues found, and still gives same error.
I then also tried 'vacuum', then 'fix'... still same error.

zadam added a commit that referenced this issue Jan 3, 2023
@zadam
Copy link
Owner

zadam commented Jan 3, 2023

@decentropy it's a bug in the 0.58 betas, fixed now. Thanks for reporting!

@decentropy
Copy link

Thanks @zadam .. Trilium is awesome.

A question (perhaps unrelated), but is there way to have the export respect sorting/order of the notes?
I notice that exporting is not alphabetical, but also not in my custom sorted order. I was wondering if there's way to control the left-menu order on export.

@zadam
Copy link
Owner

zadam commented Jan 6, 2023

@decentropy the backend data model did not keep the notes sorted, I guess I assumed it's not needed on the backend. But for export it is, it should keep the order as it is defined in the application. I fixed this in the 0.59 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants