Friday, March 17, 2017

XAF Known Issue - Duplicate Caption for a Business Object class can create 'key already exists in collection' error

DevExpress XAF uses Caption (XpoDisplayNameAttribute) from Business Object attributes. If two business objects have same title/caption/displayname DevExpress Web Dashboard Designer throws an error. Datasource with Id already exists. This is because it tries to add an object with same key in a collection which already contains a Class data source with this name.

Solution is to either disable the class for DevExpress Dashboards Data source by adding the attribute IsVisibileInDashboard(false) on class or provide unique name for each class.

This applies to DevExpress Dashboard (not expand.)

No comments:

Post a Comment