Nextcloud version (eg, 20.0.5):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.4):
Calendar : 3.0.5
The issue you are facing:
I can’t import a calendar into my nextcloud from another nextcloud calendar export.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Export a calendar from a nextcloud
- Import the .ics file to another nextcloud (or to the same nextcloud… )
- Error : unsupported file-type
The output of your Nextcloud log in Admin > Logging: empty
The problem is simple, i change my personnal nextcloud server today, and it’s impossible for me to import my calendars from a nextcloud to another nextcloud…
You can test it and reproduce easily, because i tried on an another version of nextcloud with a friend, and he has the same issue.
Final Error :
(Funny thing : I can import a google calendar ics export but not a nextcloud’s calendar ics export. )
You should be able to open the *.ics file in a text editor. See if its corrupted or will not open. Otherwise can you re-import it back into the NC that you pulled it from?
Hi, thanks for your answer.
The file .ics is perfectly readable and not corrupt. I can’t even re-import it back into the NC i pulled it from (same error).
But this .ics file can be import in thunderbird… Honeslty i don’t understand
Can you try importing it into thunderbird and then export it back out and then try and import it into NC.
Also, What is the exported file name? Im thinking perhaps invalid characters in the name? - Just a quick thought.
I’ve already thought about this and tried a lot of renaming. But this is not it
Great idea, thanks for the suggestion! I just did it but it doesn’t work either, same error
Can you reproduce this problem on your side?
It works on mine. But I am running debian 10. I also use calcardbackup which is a script for exporting calendars/contacts/tasks to the respective files.
Can you post the first four lines or so of your .ics file so I can compare the beginning with one I have saved? Just get rid of any personal info with ''s.
I bet its missing some needed lines in the *.ics file.
Try this and post the output:
Open the ics file in an editor and copy all the lines. Then paste it to this site:
Lets see what errors show up.
I create a new calendar with juste one event. And i can import it after export.
This is the complete .ics :
SUMMARY:test nextcloud export
I’m on Firefox, i will test on chromium.
Oh da** sh** ! The bug is on firefox
It works in chromium…
I don’t know why I didn’t think to test it first… sorry.
So the solution is : Import only works on Chrome.
And thanks for your help @coffee412 !!!
Whooo… So, What version of FF were you using? Perhaps its a plugin doing it in FF??
The worst time I ever had was editing a 1 meg .ics file for a company looking for some d HTML code that made Emclient crash on downloading calendars. lol…
I did see some older posts elsewhere that showed missing END: statements causing a similar problem. Oh well. Good you got things worked out. That is strange. Im using FF version 96 and do not have a problem. What version FF do you have again?
I’m on 96.0.
I try with plugins and without (safe mode)… really strange, i really don’t understand.
Hmmm, it works on my Windows 10 - Firefox 96.0 and not on my Ubuntu 21.10 - Firefox 96.0.
And it works on Ubuntu 20.04 - Firefox 96.0 (on my desktop)
So… really a local problem with my 21.10 (my laptop). Sorry for inconveniences
Problem is Linux (Firefox and Chromium) : ics importation not working on Linux Firefox 102 but works fine on Windows Firefox.