Hi Gus and welcome to our forum!
Glad to hear you got it working initially. Sorry to hear you are having trouble with the manual edits. Can you attach the XSN file to this post (or the mapping.xml file)? One thing you may want to do is to remove qRules, recreate the mapping using the tool, and reinject qRules into your form. But, we're here to help, so please let us know!