I have problem. From data service I receive rows with equal identity and it crash runtime my application with this error:
Error: Collection result contains a duplicate item: SalesPro.Duplicates:#:1 exists at both position: 0 and 1
at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processSequence()[C:\depot\DataServices\branches\milestone\adepds46_rc\frameworks\pro jects\data\src\mx\data\DataList.as:2697]
at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processSequenceResult()[C:\depot\DataServices\branches\milestone\adepds46_rc\frameworks\pro jects\data\src\mx\data\DataList.as:2948]
at mx.data::DataListRequestResponder/result()[C:\depot\DataServices\bran ches\milestone\adepds46_rc\frameworks\projects\data\src\mx\data\DataLi stRequestResponder.as:102]
at mx.rpc::AsyncRequest/acknowledge()[/Users/justinmclean/Documents/Apac heFlex4.10/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as:92]
at NetConnectionMessageResponder/resultHandler()[/Users/justinmclean/Doc uments/ApacheFlex4.10/frameworks/projects/rpc/src/mx/messaging/channel s/NetConnectionChannel.as:560]
at mx.messaging::MessageResponder/result()[/Users/justinmclean/Documents /ApacheFlex4.10/frameworks/projects/rpc/src/mx/messaging/MessageRespon der.as:243]
How can I catch this error?
code:
var params:Object = {
Session_ID: SecurityManager.sessionID
};
resultArr = DataController.getData("MainView", "SalesPro.Duplicates", "all", params, false, resultHandler, faultHandler);
After getting results when it is written in ArrayCollection appears this error. Result event handler is called after this error.