无法将生成的 ics 文件导入 Google 日历和 Outlook

发布于 2024-09-11 08:30:30 字数 407 浏览 6 评论 0原文

我正在尝试生成 ics 文件,请参阅此处的示例: http://deap.nu/myprogram.ics< /a>

它在这里验证正常:https://icalendar.org/validator.html 但当尝试将其导入谷歌日历时,我收到消息

“导入事件失败:无法处理您的 ical/CSV 文件。”

这不是很有信息。我尝试精简文件,并用谷歌搜索了很多,但找不到问题所在。对此的任何意见都将受到赞赏。

导入到outlook也不起作用。

I'm trying to generate ics-files, see sample here: http://deap.nu/myprogram.ics

It validates alright here: https://icalendar.org/validator.html
but when trying to import it into a google calendar I get the message

"Failed to import events: Unable to process your ical/CSV file."

which isn't very informative. I've tried to slim the file down, and googled a lot but can't find whats wrong. Any input on this is appreciated.

Importing to outlook doesn't work either.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

夏夜暖风 2024-09-18 08:30:30

我意识到这是一篇旧帖子,但我添加此帖子是为了帮助其他可能在尝试导入 .ics 文件时遇到问题的人。

就 Google 日历而言,这些错误不是描述性的,也不是完全误导性的。我遇到了权限错误,但这是由于文件中存在 UID(唯一事件 ID)造成的。正如 Google 日历社区论坛所述,解决方案是删除文件中的该行,保存它,然后尝试再次导入它。成功了!

Google 日历的一些错误消息不应被忽视
值...这个特定的错误通常意味着您的 UID(唯一
事件 ID)的格式不符合 Google 日历的喜好,所以我的
问题是这个 ics 文件是在哪里生成的?

我会尝试在一个好的文本编辑器中打开该文件,然后删除每个
以 UID 开头的行,因为插入新内容不需要它们
事件,如果格式不正确将导致此错误。

I realize this is an old post, but I'm adding this in to help others that might run into issues trying to import an .ics file.

As far as Google Calendar, the errors are not descriptive or outright misleading. I had a permissions error, but that was due to a UID (Unique Event ID) being in the file. As described below from Google's Calendar Community Forum, the solution was to remove that line from the file, save it, then try to import it again. It worked!

some of Google Calendar's error messages are not to be taken at face
value... this particular error often means that your UIDs (unique
event IDs) are not formatted to Google Calendar's liking, so my
question is where was this ics file generated?

I would try opening the file in a good text editor, and deleting every
line starting with UID as they are not needed for inserting new
events, and will cause this error if not formatted correctly.

掩耳倾听 2024-09-18 08:30:30

经过一番睡眠和更多的尝试和错误后,我设法将问题查明到 .ics 文件中的 Organizer 元素。所以我暂时删除了它们,而是将信息添加到了描述中。

After some sleep and more trial and error I managed to pinpoint the problem to the Organizer elements in the .ics file. So I removed them for now, adding the information to the description instead.

旧城空念 2024-09-18 08:30:30

我还有另一个关于成功导入 GCalendar (calendar.google.com) 的建议。我多次导入 ics 文件失败,并出现毫无意义的错误消息。

我尝试了任何使 ics-file 标准符合的方法,遗漏了所有 UID 行等,但没有任何帮助。

我使用的是 Google Chrome,这是我日常使用的浏览器。
我想:哪种浏览器更适合与 Google 服务一起使用?

但是:当我使用 Microsoft Edge(基于 Chromium)登录 google-calendar 时,ics-import 就开箱即用了。

希望它可以帮助其他遇到同样问题的人...
然后

I have another recommandation for a successful import to GCalendar (calendar.google.com). I failed several times to import an ics-File with meaningless error messages.

I tried anything to make the ics-file standard conform, left out all UID rows etc. but nothing helped.

I used Google Chrome, which is my normal every day browser.
I thought: Which browser could be better to use it with Google-Services?

But: When I logged in to google-calendar using Microsoft Edge (Chromium-based) the ics-import just worked out of the box.

Hope it helps others with the same problem...
Then

花海 2024-09-18 08:30:30

我刚刚解决了具有相同描述的问题。我可以保留 Organizer,但是在 Linux 上使用 emacs 编辑文件时,我注意到描述包含回车符 (^M),而当我保存 .ics 文件时,其他换行符已标准化为 Linux 标准。我删除了^Ms,然后它就正常导入了。

I just got past a problem with the same description. I could leave Organizer in, but, editing the file with emacs on linux, I noticed that the Description contained carriage returns (^M), whereas the other line breaks had been normalized to linux standard when I had saved the .ics file. I removed the ^Ms and it then imported fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文