Hi Hilary,
As control I'm using buttons and to create actions, I use the infopath submitting option. To open the form, its throught form link at it own doc library.
To the actions like save, edit and close I created button and used infopath actions as submit, close doc, and change view for edit option.
I get the error only when I've already saved the form and edit it and I try to save.