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

Failed to import contact #1047

Open
LantashTheTokra opened this issue Oct 17, 2023 · 15 comments
Open

Failed to import contact #1047

LantashTheTokra opened this issue Oct 17, 2023 · 15 comments
Labels

Comments

@LantashTheTokra
Copy link

LantashTheTokra commented Oct 17, 2023

When I try to open this contact from the file manager, it fails to import. The GrapheneOS contacts app imports it right, so it's not an issue with the file
App version: 6.22.7
Android version: 14
Distro: GrapheneOS
File: https://github.com/LantashTheTokra/smsbug/blob/main/20231016_232659_01.vcf
Screenshot with error message:
Screenshot_20231017-122652

@hetszunyukapanyanyimonyok

I have the same problem. It sucks because reseted phone and no contacts.

@hetszunyukapanyanyimonyok
Copy link

hetszunyukapanyanyimonyok commented Nov 3, 2023

I had automatic backup, everyone of them says importing failed Additional information: I tried with older(automated backup) versions too and those not work too. Maybe the exports faulty?

@hetszunyukapanyanyimonyok

Tested with and older .vcf file (was exported with simple contact, and hidden numbers)and the import worked ! None of the new automated backup worked.

@Danfro
Copy link

Danfro commented Nov 9, 2023

Same error here when trying to import an vcf that was exported from Android. Version 6.22.7. pro

@Danfro
Copy link

Danfro commented Nov 9, 2023

Did some try&error editing the vcf file. When removing the following entry for all contacts import worked: SOUND;X-IRMC-N:;;;;.

@Danfro
Copy link

Danfro commented Nov 9, 2023

When I try to open this contact from the file manager, it fails to import. The GrapheneOS contacts app imports it right, so it's not an issue with the file App version: 6.22.7 Android version: 14 Distro: GrapheneOS File: https://github.com/LantashTheTokra/smsbug/blob/main/20231016_232659_01.vcf Screenshot with error message: Screenshot_20231017-122652

Btw. I removed the LOGO part from your vcf. Then import works.

@hetszunyukapanyanyimonyok

@Danfro what did you use for edit?

@Danfro
Copy link

Danfro commented Nov 10, 2023

@hetszunyukapanyanyimonyok Just Ubuntu default Text editor. That allowed to search&replace including the line break. Nothing fancy. Most editors will do I suppose.

@HarriBuh
Copy link

HarriBuh commented Nov 23, 2023

The topic and issue is a duplicate of #1043 and has been mentioned several times already. Still, the Devs refuse to fix it.

@Danfro
Copy link

Danfro commented Nov 26, 2023

I am sure "fixing" this is almost impossible. vcf is not vcf. There are several versions of the standard and many OS or apps do implement their own addons or modifications. Implementing them all in this app would be a huge task.

BUT a proper error message dialog that explains the reason (not supported tags/not standard conform tags) would be really helpful. And ideally a list of those tags which fail would be perfect.

@hetszunyukapanyanyimonyok

So I tried @Danfro solution with the
SOUND;X-IRMC-N:;;;;
there is none any of these in my vcf and tried to find and remove LOGO could not find. So this import bug must be something unique? Can't find anything useful. Anybody found any other solution?

@Danfro
Copy link

Danfro commented Nov 26, 2023

So I tried @Danfro solution with the SOUND;X-IRMC-N:;;;; there is none any of these in my vcf and tried to find and remove LOGO could not find. So this import bug must be something unique? Can't find anything useful. Anybody found any other solution?

Exactly. It can by anything and something else for everyone. That's why fixing it is not easy.

You can only try this:

  1. make a copy of your file
  2. delete all except one contact
  3. try to load that file
  4. if it fails: remove the lines one by one, start with them using your intuition
  5. if it works: remove that contact and add some more contacts, do step 4 as long as it works
  6. delete the "bad code" for all other contacts where that occurs
  7. try the whole file
  8. if it still breaks, back to step 4

That is what I did.

@hetszunyukapanyanyimonyok

@Danfro Thank for the methodology!
I will test it in the afternoon. I hope it will work.
@Danfro After fixing the file, did the automatic backup work(again as an importable vcf)?

@Danfro
Copy link

Danfro commented Nov 26, 2023

@Danfro After fixing the file, did the automatic backup work(again as an importable vcf)?

I did not try to import a backup, but a new file. So I can't tell you. But should work... Good luck.

@Danfro
Copy link

Danfro commented Apr 15, 2024

Another option to get contacts imported for Thunderbird users, seems to be to install the CardBook extension. This apparently allows to get properly formatted vcards. Those can then be exported to a vcf, which then can be imported in contacts app.

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

No branches or pull requests

5 participants