| [news.eclipse.modeling.mdt.ocl] Re: OCLConsole Saving Error: The 'no duplicates' constraint is violated |
Hi Richard
So for some reason you are adding a duplicate expression; most likely a singleton value such as (Ocl)Invalid that may have arisen more than once.
You need to investigate waht is duplicated and where each one came from.
Regards
Ed Willink
I am getting this error when I try to save an OCL expression to an xmi file.
public void setOCLExpression(OCLExpression<Object> expr) { // add my expression as the first root, because I already contain // variables and EPackages defining dynamically-generated types getContents().add(0, expr); }
Exception: "Error Saving OCL Expression, The 'no duplicates' constraint is violated"
Any help is appreciated.
Regards, Richard Catlin