Error message of creating pipes

iam trying to create pipes by using pipe.bylines node (from mepover package) so i get (lines , diameter , level) of the pipes in the opened session then i create new pipes with the same geomerty ,diameter , level in the same session but with different pipe type and system type , but after running the script this message appears " Revit has experienced an unexpected error. The operation has been cancelled to protect your project from corruption."

Could you maybe share your Dynamo File(s) together with your Revit File?

I had the same issue. The answer that some element that is attached is not appropriate. In my case, it was Diameter which I entered in m and it should be in mm.