Troubleshooting
Problem
'TypeError: Cannot read properties of undefined (reading "length")' occurs when you open the history page of a repository file in a browser.
Symptom
Steps to reproduce:
- Open an IBM Engineering Workflow Management (EWM) project in a browser
- Go to Source Control and select Browse > Stream
- Select a stream
- Select a component
- On the Repository Files tab, select a file
- Click History
Result:
The history page fails to load with the following error:
TypeError: Cannot read properties of undefined (reading “length”)
Cause
This issue is identified as a product defect:
Diagnosing The Problem
- Load the problematic page in a browser.
- Open browser's developer tools
- Go to console tab. Clear the console entries.
- In the URL, add "debug=true" to the URL after the project name, then load the page.
Example: https://<server>:port/ccm/web/projects/<Project_Name>?debug=true#action=com.ibm.team.scm.browseStream&id=<UUID>
Result:
In the console tab of the developer tools, the following error appears:
TypeError: Cannot read properties of undefined (reading “length”) at Object.refresh_$5 [as refresh] (https://server:9443/ccm/ web/_debug/ com.ibm.team.scm.web.ui.internal.widgets.ChangeSetsViewer.js? debug=true&etag=cPiex50&locale=en us&proxyURL=/ccm:124:51) at Object.showWidget$4 [as showWidget] (https:// server:9443/ccm/web/_debug/ com.ibm.team.scm.web.ui.internal.widgets.ChangeSetsViewer.js? debug=true&etag=cPlex50&locale=en us&_proxyURL=/ccm:117:8) at Object_displayHistory_$6 [as_displayHistory] (https:// server:9443/ccm/web/_debug/ com.ibm.team.scm.web.ui.internal.view.browse.HistoryView.js? debug=true&etag=cPiex50&locale=en us&_proxyURL=/ccm:225:24) at Object.<anonymous> (https://server:9443/ccm/web/ _debug/ com.ibm.team.scm.web.ui.internal.view.browse.HistoryView.js? debug=true&etag=cPlex50&locale=en us&_proxyURL=/ccm:117:8) at Object_displayHistory_$6 [as_displayHistory] (https:// server:9443/ccm/web/_debug/ com.ibm.team.scm.web.ui.internal.view.browse.HistoryView.js? debug=true&etag=cPiex50&locale=en us&_proxyURL=/ccm:225:24) at Object.<anonymous> (https://server:9443/ccm/web/ _debug/ com.ibm.team.scm.web.ui.internal.view.browse.HistoryView.js? debug=true&etag=cPlex50&locale=en us&_proxyURL=/ccm:117:8) at Object_displayHistory_$6 [as_displayHistory] (https:// server:9443/ccm/web/_debug/ com.ibm.team.scm.web.ui.internal.view.browse.HistoryView.js? debug=true&etag=cPiex50&locale=en us&_proxyURL=/ccm:225:24) at Object.<anonymous> (https://server:9443/ccm/web/ _debug/ com.ibm.team.scm.web.ui.internal.view.browse.HistoryView.js?
Resolving The Problem
To resolve the problem, apply 7.0.2 iFix013 or later.
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSUC3U","label":"IBM Engineering Workflow Management"},"ARM Category":[{"code":"a8m50000000Cje4AAC","label":"Workflow Management->SCM->Web"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.2"}]
Product Synonym
EWM
Was this topic helpful?
Document Information
Modified date:
07 June 2022
UID
ibm16592313