Can not publish form to sharepoint library - InfoPath Dev
in

InfoPath Dev

Can not publish form to sharepoint library

Last post 01-20-2015 08:46 AM by Hilary Stoupa. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 01-19-2015 10:53 AM

    Can not publish form to sharepoint library

     i got a warning when publishing the Infopath form to the SharePoint Document Library

    the form template has been published to the server but it can only be opened in infopath filler because it contains features not compatible with web browsers

    after that no errors appears in the design checker, only two warnings :Data connections contain parameterized queries , couldn't verify form template on the specified server.

    and sometimes i can publish it but after many time and tries

    i attached its photos here

    infopath 2013, SharePoint 2013

    any help


  • 01-19-2015 12:36 PM In reply to

    Re: Can not publish form to sharepoint library

    In general, if I get the warning that the form couldn't be verified, I'll assume it will have a publishing problem. If you run Fiddler while running the design checker (with the option to verify on the server) you can sometimes get more info about what is causing the issue (reading through the response details). I also sometimes check the SharePoint log files after a publish or design checker attempt, to see if I can narrow down the issue.

    Hilary Stoupa

  • 01-20-2015 05:49 AM In reply to

    Re: Can not publish form to sharepoint library

     i checked the event viewer log

    it give a timeout error while publishing

  • 01-20-2015 07:17 AM In reply to

    Re: Can not publish form to sharepoint library

    Okay - there are some limits which can be extended that can resolve this - here is a Stack Overflow thread: http://stackoverflow.com/questions/5722320/sharepoint-2010-sandbox-solution-timeout

    This is the PowerShell script I use (run SharePoint Management Shell as admin) to extend these:

    $spCodeService = [Microsoft.SharePoint.Administration.SPUserCodeService]::Local

    $cpu = $spCodeService.ResourceMeasures["CPUExecutionTime"]

    # NOTE THE VALUE BEFORE THE UPDATE TO RESET LATER
    $cpu.AbsoluteLimit

    $cpu.AbsoluteLimit = 600
    $cpu.Update()

    $cycles = $spCodeService.ResourceMeasures["ProcessCPUCycles"]

    # NOTE THE VALUE BEFORE THE UPDATE TO RESET LATER
    $cycles.AbsoluteLimit
    $cycles.AbsoluteLimit = 2000000000000
    $cycles.Update()

    # NOTE THE VALUE BEFORE THE UPDATE TO RESET LATER
    $spCodeService.WorkerProcessExecutionTimeout
    $spCodeService.WorkerProcessExecutionTimeout = 600
    $spCodeService.Update()

    #
    # "SharePoint 2010 User Code Host" must be restarted in the services applet
    #

    After publishing, run this script to reset if desired:

    #
    # RESET LIMITS TO DESIRED DEFAULTS
    #
    $spCodeService = [Microsoft.SharePoint.Administration.SPUserCodeService]::Local

    $cpu = $spCodeService.ResourceMeasures["CPUExecutionTime"]
    # RESET CPUExecutionTime to normal running level (60 is SharePoint default)
    $cpu.AbsoluteLimit = 60
    $cpu.Update()

    $cycles = $spCodeService.ResourceMeasures["ProcessCPUCycles"]
    # RESET ProcessCPUCycles to normal running level (100000000000 is SharePoint default)
    $cycles.AbsoluteLimit = 100000000000
    $cycles.Update()

    # RESET WorkerProcessExecutionTimeout to normal running level (30 is SharePoint default)
    $spCodeService.WorkerProcessExecutionTimeout = 30
    $spCodeService.Update()

    #
    # "SharePoint 2010 User Code Host" must be restarted in the services applet
    #

    Hilary Stoupa

  • 01-20-2015 08:42 AM In reply to

    Re: Can not publish form to sharepoint library

     i tried but still same error

     A runtime exception was detected.
    Details follow.  
    Message: Thread was being aborted.  Technical Details: System.Threading.ThreadAbortException: Thread was being aborted.    at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)    at System.Collections.Generic.Dictionary`2.Resize(Int32 newSize, Boolean forceNewHashCodes)    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    etc

    can i publish the form.xsn to the form library using SharePoint Management Shell or No ?

    , as i think this will be faster!

  • 01-20-2015 08:46 AM In reply to

    Re: Can not publish form to sharepoint library

    I'm not sure - I use the management shell for admin approving templates all the time - but not sure about direct library publish.

    Hilary Stoupa

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.