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
Comments
Thanks Dan that worked! - So in my scenario we have another project using a shared process from another project. I ended up doing a slight variation on your steps to get this to work:
Project Configuration -> Configuration Data -> Planning -> Plan Views
Click “Customize this Configuration Data” and I saw multiple “Invalid Plan Mode” options. I deleted the invalid plan modes. Saved and then reverted the Process Configuration Source so that it would continue to inherit from the other process area. This fixed my plans... Oddly though when you go back and look in the Plan Views section again of the child project area it still has an invalid plan area and I can't seem to actually get rid of it... However the plan views still work.
Well, that was exciting.
Pressed 'Save' after editing a plan view in Eclipse 3.6 with the 4.1 RTC client plugin on a 4.0.2 server. Then the phone started ringing....
Deleted the Invalid plan view and things seem sane again.