@Mohammad_Nawar, as far as I’ve seen, Dynamo has a much more capable geometry engine compared to Revit. This means that sometimes it is not possible to create a complex shape in Revit environment using Dynamo in a straightforward way: this results in either broken geometry, or in singularity that throws Revit exception.
You could try importing only the framing curves into Revit, then manually build your shape using these curves. The other way is to import DirectShape (directshape.bygeometry), but in this case you won’t be able to edit resulting geometry in Revit.