Can't import jex or md markdown directory into desktop linux

Operating system

Linux

Joplin version

2.13.8

Desktop version info

MX linux 21 stable

Editor

Markdown Editor

What issue do you have?

Hi.

I cannot import my .jex file exported from Android, into Joplin desktop (MX Linux 21 stable).

I have tried:

import .jex 

tar -xvf jex-export.jex 
import .md (folder)

New Notebook > Repeat the above steps 

The files untar OK.
Titles are not maintained in the individual filenames though,
filenames all appear to be random gibberish annoyingly.
I can open and read the untarred contents OK though,
but I have no idea what the files are before I open them due to the filenames being nonsense.

I can import individual md files,
but not more than one at a time.
When an individual md file is imported into joplin,
the title remains gibberish, same as filename.

Have tried other things too, but this just the obvious stuff I've tried variations of over and over.
Had a bit of a read around the forums,
but I feel this should be perhaps a smoother and straightforward operation given what it is?

Anyway,
thanks very much for any help.
A very promising application!

File > Import > JEX should work, unless there's a bug somewhere. One possibility is that Joplin is failing to import a single note or resource.

Is there an error in the developer tools (Help > Toggle developer tools) immediately after trying to import? (Ignore "failed to load sourcemap" warnings).

Additionally, if Import > JEX doesn't work, I would next suggest importing as RAW (file > import > RAW) from the extracted directory (JEX and RAW should both preserve note titles, tags, etc.). It may also help to use a more recent version of Joplin (the latest stable version is 2.14.20).

Hi there P.R.
Thanks very much for your help.

It seems the large part of my problem is that I am an idiot (pebkac error).

It seems somewhere along the line I have toggled the sidebar off,
and hence am not seeing the sidebar with all the different notebooks (and the same import is now there 10+ times over).

However, in Joplin, the individual notes do still contain jibberish / nonsense as their titles.

Is there some way to restore the original titles I gave the files when they were originally on Joplin in my phone?

The first line of text in all my notes is also the title I wish to have,
so alternatively:
is there some way joplin can use the first line of text as the title?

Files / notes that don't retain their titles when they are transferred or exported are not very convenient :confused:

Thanks again.

EDIT
Having scrolled through half the imported notes,
half of the notes themselves have imported as irrelevant data!

ie. lots of newline characters and program data etc.

eg.
this sort of thing.

id: d94e2be6ebd5423fa18feb7467792ca2
parent_id: 054ef668ef7e494fb0ffb41faa73ff83
item_type: 1
item_id: a51b3f7f50ab4ab08c7e9d614630ff9b
item_updated_time: 1705610396009
title_diff: ""
body_diff: "[{"diffs":[[0," day. \\n\\n"],[1,\

"start1":278,"start2":278,"length1":16,"length2":145}]"
metadata_diff: {"new":{},"deleted":}
encryption_cipher_text:
encryption_applied: 0
updated_time: 2024-01-18T21:28:08.855Z
created_time: 2024-01-18T21:28:08.855Z
type_: 13

id: d94e2be6ebd5423fa18feb7467792ca2
parent_id: 054ef668ef7e494fb0ffb41faa73ff83
item_type: 1
item_id: a51b3f7f50ab4ab08c7e9d614630ff9b
item_updated_time: 1705610396009
title_diff: ""
body_diff: "[{"diffs":[[0," day. \n\n"],[1,

Please re-try "import" > "JEX" with the original .jex file from Android. Edit: Alternatively, check to see if any of the previous imports produced notes with correct titles. Note that it shouldn't be necessary to use the extracted .jex file.

"JEX - Joplin Export File" imports and "RAW - Joplin Export Directory" imports should both convert the data mentioned above to titles, tags, and other Joplin metadata. (If trying to import Joplin Export Directory data, "MD - Markdown" imports won't).