Error When Loading Plan
I have a plan view that throws the following error when loading in the web client (this is with the debug flag enabled but error occurs regardless):
TypeError: Cannot read property 'id' of undefined
TypeError: Cannot read property 'id' of undefined
at dojo.declare.getId (https://rtc.domain.com/ccm/web/com.ibm.team.apt.web.client/internal.items.planning.ConfigurationElement.js?debug=true&etag=XjCmUG8&_proxyURL=%2Fccm:24:22)
at Function.ResolvedPlanMode.isDefaultConfigurationElement (https://rtc.domain.com/ccm/web/com.ibm.team.apt.web.ui/internal.editor.config.ResolvedPlanMode.js?debug=true&etag=XjCmUG8&_proxyURL=%2Fccm:715:19)
at dojo.declare.constructor (https://rtc.domain.com/ccm/web/com.ibm.team.apt.web.ui/internal.editor.config.ResolvedPlanMode.js?debug=true&etag=XjCmUG8&_proxyURL=%2Fccm:177:26)
at new (https://rtc.domain.com/ccm/web/dojo/dojo.js?debug=true&etag=XiLgKKc&_proxyURL=%2Fccm:2870:8)
at null. (https://rtc.domain.com/ccm/web/com.ibm.team.apt.web.ui/internal.editor.config.PlanModeClient.js?debug=true&etag=XjCmUG8&_proxyURL=%2Fccm:94:28)
at null.fCallback (https://rtc.domain.com/ccm/web/dojo/dojo.js?debug=true&etag=XiLgKKc&_proxyURL=%2Fccm:1962:54)
at dojo.declare.callback (https://rtc.domain.com/ccm/web/com.ibm.team.apt.shared.client/internal.util.AbstractFuture.js?debug=true&etag=XiYAReI&_proxyURL=%2Fccm:55:10)
at dojo.declare.withItems (https://rtc.domain.com/ccm/web/com.ibm.team.apt.web.client/PlanningItemStore.js?debug=true&etag=XjCmUG8&_proxyURL=%2Fccm:246:11)
at null. (https://rtc.domain.com/ccm/web/com.ibm.team.apt.web.ui/internal.editor.config.PlanModeClient.js?debug=true&etag=XjCmUG8&_proxyURL=%2Fccm:100:33)
at null.fCallback (https://rtc.domain.com/ccm/web/dojo/dojo.js?debug=true&etag=XiLgKKc&_proxyURL=%2Fccm:1962:54)
This problem occurs for all Plans associated with this team area regardless of Iteration (however any plans associated with the parent team area are fine).
This initially started when I was attempting to customize some views using the Eclipse Client. I had copied a view in the Eclipse client and then from the web client created an expression (restrict owned by field). Then upon viewing/saving the custom view in the eclipse client it stopped working in the web client. I was able to fix it by deleting the custom view.
However now I don't have any custom views in place and the problem has started occurring again (again seemed to occur while jumping between eclipse and web view).
Any ideas on how to fix these plans so they load correctly in the webclient?
Accepted answer
What was the problem? There where "invalid plan modes" inside the process configuration. Deleting them fixed the problem.
How did we do it?
- Opening the "Project Area" in Eclipse by right clicking it and choosing "open".
- choose "Process Configuration"
- expand "Project Configuration > Configuration Data > Planning" and open Plan Modes (unconfigured)
- mark "Invalid Plan Modes" and click on delete
- click on save