Hello IP folks.
I am hoping that someone may be able to assist with my problem.
I have an InfoPath browser based form developed in IP 2007. This form does have custom code pulling from several different SP libraries for a number of different things.
Up to this point, I have been using the Submit and Save buttons in the top and bottom toolbar. However that has caused some issues... so here is what I have done thus far
1. Eliminate the Save button from the toolbar.
2. Created a FormID field, which is then set by a SP workflow to = the name of the form.
3. Created a status field in form with In Progress, submitted, and completed. The stages are simple, I have an approval workflow (also custom) setup to wait for the status field to be submitted. Until then it just remains in a paused state. Reason for this, is to allow people to come back and update the form.
So, someone opens a new form (browser only) and fills it out. They set the status to In Progress, and submits it.
Submit has two rules on it. If FormID is blank (by default it is, receives value after workflow launches) the the submit calculates a file name and saves the form to a library. No overwirte is allowed.
Second rule, if someone opens the form back up and makes changes, checks the FormID for a value.. if there is a value, then the form is submitted with the name being FormID, and overwrites are available.
I keep getting the following error when first submitting a form: Runtime - Data C 82g0 Warning Form submission failed. (User: REMOVED, Form Name: Test Form, IP: , Request: http://SERVER/_layouts/Postback.FormServer.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:Test-Form:-myXSD-2005-10-21T21-12-27, Type: DataAdapterException, Exception Message: A value in the form may be used to specify the file name. If you know the value in the form that specifies the file name, revise it and try again. Otherwise, contact the author of the form template.) ff414eae-e724-47af-8b94-fab8acfcd049
I can't seem to find what is causing the error. Both rules are flagged to stop processing after the rule is run.