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

Error importing Roam Research's EDN database file #1135

Closed
Pathsis opened this issue May 10, 2021 · 6 comments
Closed

Error importing Roam Research's EDN database file #1135

Pathsis opened this issue May 10, 2021 · 6 comments

Comments

@Pathsis
Copy link

Pathsis commented May 10, 2021

Error message:

message=Uncaught #error {:message "Conflicting upsert: [:node/title \"December 20, 2020\"] resolves to 1449, but entity already has :db/id 1273", :data {:error :transact/upsert, :assertion [1449 :node/title "December 20, 2020"], :conflict {:db/id 1273}}}
source=file:///Applications/Athens.app/Contents/Resources/app.asar/resources/public/js/compiled/renderer.js
lineno=4802
colno=204
error=#error {:message "Conflicting upsert: [:node/title \"December 20, 2020\"] resolves to 1449, but entity already has :db/id 1273", :data {:error :transact/upsert, :assertion [1449 :node/title "December 20, 2020"], :conflict {:db/id 1273}}}
Kapture.2021-05-11.at.02.03.05.mp4
@agentydragon
Copy link
Contributor

For this, it would help a lot if you could share your Roam import file. I think the Roam import needs a bunch more testing and fixes, but I only saw issues on my own EDN import, and didn't yet feel like sharing the EDN.

@julionav
Copy link
Contributor

I have the same error:

image

Cannot share my roam import though, but I could try to fix it

@sawhney17
Copy link
Contributor

@julionav I think deleting the November 23rd daily note in both Roam and Athens, or just Roam, should do the trick

@julionav
Copy link
Contributor

You are right @sawhney17, that should do the trick.

However, I plan to do a contribution to avoid this problem from happening. The issue is that I have more than 1 page that is converted to the same date page in Athens.

My current analysis:

  • The problem is caused by a conflict on the transformation of a daily page in [[Roam]] in [[Athens]]. [[Roam]] uses the ordinal number notation, and [[Athens]] the cardinal notation.
    • However, In my [[Roam]] database, there are 2 pages that are transformed to [[November 23, 2020]]
      • [[November 23rd, 2020]]
      • And a misspelled [[November 23nd, 2020]]
    • Even though the second date is misspelled, Athens transforms it to [[November 23, 2020]] through a [[Regex]].
      • #"(?<=\d{1,2})(st|nd|rd|th),(?=\s\d{4})"
        • This matches 23nd and 23rd and treats them the same.
    • The solution proposed solution is to use a more strict conversion between ordinal notation to cardinal notation which will only convert actual roam date pages to athens date page.

julionav pushed a commit to julionav/athens that referenced this issue May 16, 2021
…m dates more

strictly, removing the possibility of date
name conflicts.

closes athensresearch#1135
julionav pushed a commit to julionav/athens that referenced this issue May 16, 2021
…m dates more

strictly, removing the possibility of date
name conflicts.

closes athensresearch#1135
@tangjeff0 tangjeff0 reopened this May 16, 2021
@julionav
Copy link
Contributor

Can you try to import again using version 1.0.0-beta.82 @mkyos ?

@Pathsis
Copy link
Author

Pathsis commented May 21, 2021

Can you try to import again using version 1.0.0-beta.82 @mkyos ?

It's all right now. Thank you very much!

@Pathsis Pathsis closed this as completed May 31, 2021
korlaism pushed a commit to korlaism/athens that referenced this issue Jul 19, 2021
…m dates more (athensresearch#1171)

strictly, removing the possibility of date
name conflicts.

closes athensresearch#1135

Co-authored-by: julio <jnavarro@webdoxclm.com>
Co-authored-by: jeff <tangj1122@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants