InfoPath with Custom code Service Timeout

%3CLINGO-SUB%20id%3D%22lingo-sub-1102816%22%20slang%3D%22en-US%22%3EInfoPath%20with%20Custom%20code%20Service%20Timeout%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102816%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20in%20our%20SharePoint%202016%20On-Premise%20environment%20where%20I%20work%20we%20are%20still%20heavily%20reliant%20on%20InfoPath%20at%20this%20point%20in%20time.%20Plans%20are%20to%20find%20an%20alternative%20that%20gives%20the%20functionality%20and%20desired%20look%20and%20feel%20as%20per%20communications.%20We%20rebooted%20the%20servers%20on%20Sunday%20due%20to%20another%20issue%20that%20arose%20with%20an%20issue%20of%20communication%20between%20the%20SharePoint%20and%20one%20of%20the%20nodes%20in%20the%20SQL%20Cluster.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20there%20have%20been%20two%20errors%20that%20shows%20up.%20One%20is%20stating%20that%20the%20custom%20code%20cannot%20be%20ran.%20The%20other%20is%20that%20it%20is%20not%20able%20to%20load%20the%20form.%20The%20custom%20code%20is%20relatively%20simple%20over%20all%2C%20as%20it%20is%20a%20university%20with%20multiple%20locations%20it%20grabs%20the%20users%20location%20and%20auto%20fills%20in%20a%20field%20based%20on%20said%20location%20and%20sets%20another%20field%20in%20some%20cases%20based%20on%20where%20the%20form%20is%20hit%20from.%20IE%20incident%20for%20IT%20or%20Request%20or%20Training%20for%20one%20form%20in%20particular.%20This%20custom%20code%20is%20used%20in%20both%20Document%20libraries%20and%20lists.%20Prior%20to%20this%20past%20weekend%20it%20was%20all%20working%20as%20intended.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20the%20WFEs%20were%20rebooted%20on%20this%20last%20Sunday%20trying%20to%20troubleshoot%20the%20issue%20with%20communication%20to%20the%20SQL%20the%20next%20day%20these%20forms%20that%20all%20had%20a%20custom%20code%20described%20above%20started%20to%20have%20issues%20working%20giving%20one%20of%20two%20issues%20to%20the%20user.%20The%20correlation%20IDs%20for%20these%20even%20in%20Verbose%20mode%20basically%20amounted%20to%20stating%20that%20the%20Sandbox%20code%20service%20was%20busy%20and%20was%20unable%20to%20process%20the%20code%20requested.%20Today%20we%20had%20to%20do%20another%20reboot%20as%20per%20a%20request%20from%20MS%20to%20install%20WireShark%20to%20be%20ready%20to%20gather%20packets%20for%20our%20SQL%20issue.%20Since%20doing%20this%20reboot%20currently%20any%20form%20with%20this%20custom%20code%20always%20errors%20out%20regardless.%20It%20used%20to%20be%20about%20a%2040%2F60-50%2F50%20chance%20for%20it%20to%20work.%20Which%20had%20suggested%20that%20the%20possible%20motive%20was%20perhaps%20the%20Applications%20servers%20as%20we%20could%20hit%20the%20same%20server%20and%20get%20different%20results.%20When%20we%20rebooted%20the%20servers%20the%20Application%20servers%20were%20not%20touched%20in%20the%20process%2C%20only%20the%20WFEs.%20Fortunately%20the%20forms%20are%20only%20internal%20issues%2C%20as%20we%20also%20have%20our%20external%20site%20on%20the%20same%20farm%2C%20(I%20know%20not%20the%20best%20practice%20but%20was%20setup%20this%20way%20before%20I%20got%20here%20and%20not%20my%20decision%20to%20change.)%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEven%20now%20the%20errors%20still%20amounts%20to%20the%20same%20as%20before%20where%20it%20is%20saying%20that%20the%20Sandbox%20code%20service%20is%20unavailable%20and%20timed%20out.%20These%20two%20errors%20are%20pretty%20prominent%20as%20a%20whole.%20There%20is%20also%20a%20few%20other%20errors%20that%20seemed%20to%20suggest%20that%20turning%20off%20CustomErrors%20would%20give%20further%20information%2C%20the%20message%20stating%20simply%20that%20it%20failed.%20I%20turned%20off%20the%20CustomErrors%20and%20even%20still%20after%20everything%20the%20ULS%20logs%20still%20posted%20the%20same%20for%20the%20CID.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20we%20remove%20the%20code%2C%20the%20form%20works.%20So%20we%20know%20it%20isn't%20the%20form%20and%20even%20on%20a%20test%20form%20we%20have%20that%20uses%20much%20of%20the%20same%20code%20it%20fails%20to%20suggest%20that%20a%20change%20to%20the%20Lists%20in%26nbsp%3B%20question%20haven't%20happened%20leading%20to%20undefined%20fields%20in%20the%20coding.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20issue%20has%20happened%20before%20in%20the%20past%20and%20was%20not%20the%20first%20time%20that%20it%20occurred.%20My%20hope%20is%20to%20come%20up%20with%20a%20method%20or%20fix%20that%20will%20be%20more%20permanent%20so%20we%20don't%20have%20to%20worry%20about%20running%20into%20this%20issue%20again%2C%20though%20my%20hopes%20ultimate%20is%20to%20talk%20the%20teams%20using%20forms%20like%20this%20to%20get%20a%20better%20method%20or%20using%20a%20more%20modern%20form%20tool%20like%20PowerApps%20w%2FFlow%20or%20some%20third%20party%20tool%20to%20accomplish%20said%20tasks%20for%20the%20forms%20upon%20opening.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20a%20SharePoint%20Admin%20on%20the%20boxes%20so%20have%20the%20ability%20to%20accomplish%20any%20tasks%20as%20needed.%20Hopefully%20any%20fixes%20that%20can%20be%20done%20would%20be%20a%20relatively%20simply%20accomplishment%20as%20we%20have%20a%20change%20review%20process%20for%20major%20changes%20that%20takes%20a%20lot%20of%20effort%20to%20fix%20this.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1102816%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

So in our SharePoint 2016 On-Premise environment where I work we are still heavily reliant on InfoPath at this point in time. Plans are to find an alternative that gives the functionality and desired look and feel as per communications. We rebooted the servers on Sunday due to another issue that arose with an issue of communication between the SharePoint and one of the nodes in the SQL Cluster.

 

Currently there have been two errors that shows up. One is stating that the custom code cannot be ran. The other is that it is not able to load the form. The custom code is relatively simple over all, as it is a university with multiple locations it grabs the users location and auto fills in a field based on said location and sets another field in some cases based on where the form is hit from. IE incident for IT or Request or Training for one form in particular. This custom code is used in both Document libraries and lists. Prior to this past weekend it was all working as intended.

 

After the WFEs were rebooted on this last Sunday trying to troubleshoot the issue with communication to the SQL the next day these forms that all had a custom code described above started to have issues working giving one of two issues to the user. The correlation IDs for these even in Verbose mode basically amounted to stating that the Sandbox code service was busy and was unable to process the code requested. Today we had to do another reboot as per a request from MS to install WireShark to be ready to gather packets for our SQL issue. Since doing this reboot currently any form with this custom code always errors out regardless. It used to be about a 40/60-50/50 chance for it to work. Which had suggested that the possible motive was perhaps the Applications servers as we could hit the same server and get different results. When we rebooted the servers the Application servers were not touched in the process, only the WFEs. Fortunately the forms are only internal issues, as we also have our external site on the same farm, (I know not the best practice but was setup this way before I got here and not my decision to change.) 

 

Even now the errors still amounts to the same as before where it is saying that the Sandbox code service is unavailable and timed out. These two errors are pretty prominent as a whole. There is also a few other errors that seemed to suggest that turning off CustomErrors would give further information, the message stating simply that it failed. I turned off the CustomErrors and even still after everything the ULS logs still posted the same for the CID. 

 

If we remove the code, the form works. So we know it isn't the form and even on a test form we have that uses much of the same code it fails to suggest that a change to the Lists in  question haven't happened leading to undefined fields in the coding. 

 

This issue has happened before in the past and was not the first time that it occurred. My hope is to come up with a method or fix that will be more permanent so we don't have to worry about running into this issue again, though my hopes ultimate is to talk the teams using forms like this to get a better method or using a more modern form tool like PowerApps w/Flow or some third party tool to accomplish said tasks for the forms upon opening. 

 

I am a SharePoint Admin on the boxes so have the ability to accomplish any tasks as needed. Hopefully any fixes that can be done would be a relatively simply accomplishment as we have a change review process for major changes that takes a lot of effort to fix this. 

0 Replies