Looking at the code I see that right after it shows the progressbar at 5% it inserts the new policy row that has the policy details such as name and description. If you don't see a new policy named Copy of <old policy name>, it is failing here. I might see one potential problem if maybe the policy is really old. because it is currently not a problem. Are you using IDSPM stand alone? Can you create a new temp policy and try to copy that?
also.. I welcome you to ask other forum members.. That is really what this is for. Sometimes I just answer a little quicker then other forum members. :)
Cheers,
Jeff