Error when form is getting data from or to server

We have an infopath forms server (one of our dev boxes) that started giving errors (no details) whenever a web form contacts the server after the initial load. Its like the ajax functions stopped working!

For example, if a user opens the form he gets the form controls and options, but if he clicks on the "cancel" button which has a rule to close the form - he gets the screen saying "sending data to server" and after a couple of seconds a generic error message : "There has been an error while processing the form" with "try again" and "exit form".

This happens on any action that the form does that requires serverside intervention.

I should note that the same form works perfectly on another box, and that this is happening only on one machine that untill 3 days ago worked perfectly itself.

Any ideas are welcome.




Answer this question

Error when form is getting data from or to server

  • modtran

    ***, I was hoping you'd have a reply to this with help, but alas you have not. I have been building a nice form that was working perfectly until it just all of the sudden started doing exactly what you've described. I have my form connecting to a SharePoint list and to a built-in Web Service that gets profile data from the profile database. There is a lot of logic built in to auto-display info for the current user while also providing multiple views that are only visible to managers and HR. It was all working wonderfully until it just suddenly stopped. Even after adding the new web service to retrieve profile info, it was working, so that didn't break it, but I can't think of anything else that may have changed in that short time between the form working one second and not the next.

    Here are the errors I experience, and to be clear, this is all within SharePoint with browser-enabled forms:

    - New form opens just fine and even pre-populates fields with data returned from the web service data connection

    - If I attempt to submit, it tries to send data to server and then gives the above error message, "There has been an error while processing the form" with the option to Try Again or Exit Form. Try Again takes me back to the form, but all the same errors occur if I do anything. Exit Form puts me on a blank page saying "The form has been closed," and I have no way of doing anything from here.

    - If I try to change views, I don't even get an error. It just takes me straight to the same "The form has been closed" page for no reason.

    - I removed the Web Service DC along with all default values, rules, and data validations that included info that came from the Web Service. I then re-published and got all the same errors.

    - I then removed all logic from the form and re-published, but still get the same errors.

    - My form is now just a shell of its former self with no logic, no rules, no data validation, no formatting, no nothing...and it still has the same errors.

    - I created a new, blank form, published it as a content type, added the content type to the same form library, and then tested it - it submitted just fine with no errors. I also made a quick, simple view to make sure I could switch views, and I can...

    So I have no idea what is causing this strange error...


  • Gianluca Hotz

    Hi,
    I have the same problem... If you have solved it, could you explain me how
    Thanks for help!
    Laurian

  • Muhsin Zahid Uğur

    Well, soon after posting the above message, I found the problem thanks to another random thread that only had one response. My problem was being caused by having a secondary data connection that was NOT being used in all 3 of my views. In fact, I was no longer using it at all, and it was somehow causing all these problems. As soon as I removed that data connection, everything went back to normal. I am now able to maintain all of my logic, all of my data connections (the ones I'm actually using), all of my views, and submitting through the browser.


  • Error when form is getting data from or to server