Hi Meryam
Looks like we have issue in Standard part itself. You have not done any home made cooking in that part. Error description clearly saying that it is due to Type mismatch. What you can do is reimplement both GET_ENTITY and GET_ENTITYSET methods. If still the issue persists, you can write to SAP.
Thanks
Parth