The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
Today i came across a very strange error with took all my time, and here is the error
"The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.".
This was a bit strange as i was able to publish the same infopath forms previously and now it was throwing this error. Had to go around the logs and found the time out issue. So thought of increasing the spuc worker process timeout from default 30 to more. And it did work !!. Here is the powershell script which helped to solve the problem.
Happy coding !!
"The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.".
This was a bit strange as i was able to publish the same infopath forms previously and now it was throwing this error. Had to go around the logs and found the time out issue. So thought of increasing the spuc worker process timeout from default 30 to more. And it did work !!. Here is the powershell script which helped to solve the problem.
$uc=[Microsoft.SharePoint.Administration.SPUserCodeService]::local
$uc.WorkerProcessExecutionTimeout
= 300
$uc.Update()
Once done its good to set WorkerProcessExecutionTimeout
back to 30.
Happy coding !!
Comments