Cannot import an ics file in Team Calendar for Confluence
Asked by Swarna Radha:

Hi,

I have downloaded an ics file from my outlook, when i tried to upload it on Team Calendar but i am not able to do so.![image.png](/t5/image/serverpage/image-id/7531i563CD2B8C61DBF68/image-size/large?v=v2&px=999 "image.png")

Confluence used: 6.2.4

Please find the screenshot

Thanks and regards,

Swarna


Answers:
author: AnnWorley
body: Hi Swarna,

Please let me know what happens after you choose the Import button. Does an error appear in the browser? If so, please let me know what it is.

Sometimes the same error will be in the **atlassian-confluence.log** with more details. It is located in the directory **\<confluence_home\>/logs.** Please reproduce the error, note the time and check that time in the log to see if we can find out more about what is failing during the import.

I look forward to hearing what you find.

Best regards,

Ann

comments: author: Swarna Radha
body: Hi Ann,

No error is displayed. Nothing happened, it remains on the Import Calendar screen.

Please find the log

2017-10-12 03:43:21,497 INFO \[http-nio-8090-exec-6\] \[atlassian.confluence.status.SystemErrorInformationLogger\] writeToLog  
Request Unique ID : b94ebc01-459f-4518-a65e-76fded332906  
--------------------------  
JVM Stats  
--------------------------  
usedMemory = 568602864  
usedMemoryInMegabytes = 542  
availableHeap = 505138960  
freeMemoryInMegabytes = 481  
allocatedHeap = 1073741824  
freeAllocatedHeap = 505138960  
totalMemory = 1073741824  
totalMemoryInMegabytes = 1024  
availablePermGen = 0  
maxPermGen = -1  
maxHeap = 1073741824  
usedHeap = 568602864  
freeMemory = 505138960  
usedPermGen = -1  
--------------------------  
Request Information  
--------------------------  
URL: <http://192.168.11.30:8090/500page.jsp>  
Scheme: http  
Server: 192.168.11.30  
Port: 8090  
URI: /500page.jsp  
Context Path:  
Servlet Path: /500page.jsp  
Path Info: null  
Query String: null  
--------------------------  
Attributes  
--------------------------  
javax.servlet.forward.request_uri: /plugins/calendar/importsubcalendar.action  
javax.servlet.forward.context_path:  
javax.servlet.forward.servlet_path: /plugins/calendar/importsubcalendar.action  
javax.servlet.error.status_code: 500  
com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@124392be  
com.opensymphony.sitemesh.APPLIED_ONCE: true  
__cleanup_recursion_counter: 0  
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true  
atlassian.core.seraph.original.url: /500page.jsp  
com.atlassian.labs.botkiller.BotKillerFilter: true  
com.atlassian.gzipfilter.GzipFilter_already_filtered: true  
Confluence-Request-Time: 1507805001434  
com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true  
com.atlassian.seraph.auth.LoginReason: OK  
webwork.valueStack: com.opensymphony.xwork.util.OgnlValueStack@19f591a1  
confluence.themecontext: com.atlassian.confluence.themes.ThemeContext@bf5cb57  
javax.servlet.error.message:  
javax.servlet.error.servlet_name: action  
com.atlassian.confluence.security.websudo.MessagesDecoratorFilter__already_filtered__: true  
com.opensymphony.sitemesh.USINGSTREAM: false  
B3-TraceId: eb387117be6416  
loginfilter.already.filtered: true  
javax.servlet.jsp.jspException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/com/atlassian/confluence/extra/templates/velocity/calendar3/calendar-import-subcalendar-timeZoneRequired.vm'  
javax.servlet.error.request_uri: /plugins/calendar/importsubcalendar.action  
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true  
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true  
javax.servlet.error.exception: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/com/atlassian/confluence/extra/templates/velocity/calendar3/calendar-import-subcalendar-timeZoneRequired.vm'  
os_securityfilter_already_filtered: true  
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true  
com.atlassian.confluence.util.profiling.ConfluenceProfilingStrategy.splits: \[\]  
--------------------------  
Parameters  
--------------------------  
caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/com/atlassian/confluence/extra/templates/velocity/calendar3/calendar-import-subcalendar-timeZoneRequired.vm'  
at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:376)

Thanks and Regards

Swarna


author: AnnWorley
body: Thanks for the log excerpt. The log indicates that a velocity template cannot be found:

```
caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/com/atlassian/confluence/extra/templates/velocity/calendar3/calendar-import-subcalendar-timeZoneRequired.vm'
```

Plugin related files are cached on the file system. A good first step would be to try clearing the plugin cache as described in: [How to clear Confluence plugins cache](https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html)

Another thing to check is to make sure that the OS user running Confluence has full permissions on the Confluence Home and Confluence Install directories as defined in: [Confluence Home and other important directories](https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html) It could be that the file is present but Confluence cannot find it because of permissions.