incorrect facet specified

We are using developer 4.6.1 on my machine. While creating a record from the schema, we get the following error :

errorCode: XSDC-008

errorMessage: [B2BCORE.0082.9712] Incorrect facet (s) specified: com.wm.lang.schema.datatypev2.WmString throws com.wm.lang.ns.NSException: [B2BCORE.0082.9485] This datatype cannot have this facet.

We checked the XML schema on XMLSPY and the format of the schema