Error when using Check In/Out UDC - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Error when using Check In/Out UDC

Last post 03-10-2014 04:26 AM by donstephen. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-04-2014 02:50 PM

    Error when using Check In/Out UDC

    I have successfully implemented your Check In/Out UDC Template on a few forms now.  I absolultely love it!

    I am trying to implement it on another form, but I keep getting this error:

    The query cannot be run for the following DataObject: CheckInFile
    InfoPath cannot run the specified query.
    The SOAP response indicates that an error occurred on the server:

    Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
    <detail><errorstring xmlns="Invalid'>http://schemas.microsoft.com/sharepoint/soap/">Invalid URI: The format of the URI could not be determined.</errorstring></detail>

    I get the same error when I try to check out as well.

    The error seems to appear when The CheckIn or CheckOut fields (in Form Logic Data Source) try to Set Href.  I am baffled because I am using the exact same rules to Set Href that were provided with the form and I did copy them into the formula box (from the value box) as described in the Template instructions.

    In addition it seems as though my data connection Check-in_out isn't working. It returns nothing. I have verified over and over again that it is connected to the correct library and includes the ID and Check Out Fields but it doesn't return anything, even when the document is checked out.

    Any ideas on what I am missing here?

  • 03-10-2014 04:26 AM In reply to

    Re: Error when using Check In/Out UDC

    Hi Deeayrian,

    I'm sorry to hear about the error code issues. For some reason, when the XTP is added to an XSN form template, the two rules that set the pageUrl get modified by InfoPath. You'll need to modify the rule in the XSN form template to add this back: xdXDocument:get-DOM()/

    Kindly replace the formulas located at the Check-In and Check-Out button rules that sets the pageUrl with:

    concat(substring-before(substring-after(xdXDocument:get-DOM()/processing-instruction()[local-name(.) = "mso-infoPathSolution"], 'href="'), 'Forms/template.xsn"'), my:FormName, ".xml")


    Please let me know if this solution resolves the problem.

    Don Stephen Lambatin / Support Engineer
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.