Hi, I have the exact same problem. Here's the details thanks
Problem
I have a form library that I built using an InfoPath form (2007). It has the following data connections for submitting a form.
Name: Main Submit
Type: Submit Data
File Name (experssion): max(@ID) + 1
Allow overwrite if form exists: no
Name: RetrieveIDs
Type: Retrieve ...