IBM Support

TypeError: Cannot read properties of undefined (reading "length") when viewing history of stream

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:
  1. Open an IBM Engineering Workflow Management (EWM) project in a browser
  2. Go to Source Control and select Browse > Stream
  3. Select a stream
  4. Select a component
  5. On the Repository Files tab, select a file
  6. 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

  1. Load the problematic page in a browser.
  2. Open browser's developer tools
  3. Go to console tab. Clear the console entries.
  4. 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

Document Information

Modified date:
07 June 2022

UID

ibm16592313