Urgent-Using code to submit fails sometime. - InfoPath Dev
in

InfoPath Dev

Urgent-Using code to submit fails sometime.

Last post 09-06-2006 04:51 AM by carlw4. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 02-22-2006 02:05 AM

    Urgent-Using code to submit fails sometime.

    Hi friends,
    I have a button in my form on the click of which I update multiple tables in my database using web service.
    Finally I use code to submit the form to a sharePoint form library.
    Some times the form gets submitted. Some times it doesnt.

    I get the following error message in the Catch block
    {"InfoPath cannot submit the form.\nAn error occurred while the form was being submitted.\n??\nThe form cannot be submitted to the following location:http://173.30.15.93:8060/sites/PR/PR Form/PR_2006_000797.xml\nThe site may be offline, read-only, or otherwise unavailable.\n" }

    The best part is that once I restart the IIS in the SharePoint server, I am able to submit the form.
    Again after some time, this problem reappears.

    Any help would be greatly appreciated.

    Regards,
    Abhishek
  • 02-22-2006 02:14 AM In reply to

    Re: Urgent-Using code to submit fails sometime.

    This is the code that I use ...
    DAVAdapter oSharePoint = (DAVAdapter)thisXDocument.DataAdapters["Submit"];
    oSharePoint.Submit();
    thisApplication.XDocuments.Close(thisXDocument);

    This is the final code in my button's Onclick event.
    Before this code gets executed,I update multiple tables in the database using webservice.

    I am not sure as to whether this problem arises from my code or from SharePoint .
    Please help.
    Thanks in advance,
    Abhishek
  • 02-22-2006 04:31 AM In reply to

    Re: Urgent-Using code to submit fails sometime.

    Hi friends,
    Got the fix at the following link.
    http://support.microsoft.com/default.aspx?scid=kb;en-us;907652&sd=rss&spid=2520#kb1

    Regards,
    Abhishek
  • 02-23-2006 11:47 PM In reply to

    Re: Urgent-Using code to submit fails sometime.

    Hi Abhishek,
    Excellent link! Thanks for sending this. This is very good.

    Patrick Halstead [InfoPath MVP]
    InfoPath Dev Seattle
    Patrick Halstead
    Project Manager at Qdabra
  • 02-25-2006 09:44 PM In reply to

    Re: Urgent-Using code to submit fails sometime.

    Welcome Patrick.

    Regards,
    Abhishek
  • 09-06-2006 04:51 AM In reply to

    • carlw4
    • Not Ranked
    • Joined on 08-21-2006
    • Canada
    • Posts 1

    Re: Urgent-Using code to submit fails sometime.

    Yes, I tried that too. It worked a couple of times now doesn't work anymore. Back to square one.
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.