As per the template, whenever you click submit, the form gets CR_Ref_No from a dataconnection (your webservice), and then submits the form back to your document library,
What behaviour does submit exhibit when you try to resubmit a form, and also will your webservice always return a different CR_REf_No