AnsweredAssumed Answered

Error Coresight [ngRepeat:dupes]

Question asked by JGonzalez on Nov 28, 2016
Latest reply on Dec 2, 2016 by pthivierge



I've created Coresight symbols. I use them inside displays. The symbols contain repeaters:

<span ng-repeat="item in Details track by $index">{{item}}<br></span>

It's not possible to have duplicated items. If I drag the same attribute inside my symbol more than once, it will be taken once into account (duplicates not allowed by code).


Sometimes, I have an error and I loose all the display (like a crach) !!!

The error is:

Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: sym in dispCtrl.display.Symbols track by sym.Name, Duplicate key: Symbol23, Duplicate value:






at angular.js:68

at ngRepeatAction (angular.js:26913)

ar Object.$watchCollectionAction [as fn] (angular.js:15423)

at Scope.$digest (angular.js:15556)

at Scope.$apply (angular.js:15824)

at done (angular.js:10263)

at completeRequest (angular.js:10435)

at XMLHttpRequest.requestLoaded (angular.js:10376)


I cannot reproduce the problem, because it appears randomly.

How can I solve that problem?