Broken model when exporting from Maya to unity

When I export my model with the rig and animation in unity I get a weird shape that has nothing to do with my model in unity. the model becomes normal if I delete the history of the entire hiearchy bu then the model isnt attached to the righ anymore and the righ moves wihtout the model.

I’m afraid I have to redo the entire rig and skining…

here is my model in maya before exportation:

What I’m getting in unity:

Does anyone knows why? Thank you.

I solved it was a maya bug, just had to restart it.