"The selected faces do not form a closed and continuous cam extruded from a single profile"
why do I get this error message
The profile elements (arcs lines etc) need to be tangent to each-other.
Have you made the cam using the SolidWorks 'cams' toolbox feature?