Tuesday, November 2, 2010

Error: The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.

Error:
The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator. 




Reason:
You will get this error while you are trying to view the InfoPath forms in browsers. The reason is, the "State Service" may not be enabled/associated for the current web application.

Solution:
Check all the below possibilities...

(Note: I assume that you already know how to develop a browser compatible InfoPath forms)

1. Go to "Application Management" --> "Manage service applications"
2. Check whether the "State Service" is enabled or not (like the below screenshot). 

















3. If the service is not started or missed, we should configure/start the state service. OK. How to start the service?  proceed with step 4.
4. Go to the "Configuration Wizard" and start the configuration
5. Make sure the "State Service" is enabled. (Eventhough it is selected, run the wizard again.Hmmmm...That is microsoft :) )

6.Wait until you see the below screen (It will take few minutes to complete).













7. Now, check whether the InfoPath forms are rendering properly in the browser or not. If everything is fine, then continue with your work.. Again if you are getting the same error screen, you need to check the "Service Associations" for your current web application (proceed with step 8).

8. In "Central Administration", Go to "Application Management" and select the "Configure service application associations" in "Service Applications" section. 

9. Click on your web application and a pop up windows will be displayed. 






















10. Select the "State Service" Check box and click "OK".  

11. Now you can able to view the InfoPath forms in browser like below. 














Thats it...

16 comments:

  1. Thank You Very Much Its working for me..

    ReplyDelete
  2. Senthil we had the same problem.Now its working.

    ReplyDelete
  3. Hey Senthil,

    Thanks a lot! Your instructions have been a great help for me.

    Pieter

    ReplyDelete
  4. This helped me a lot. Thanks for posting this.

    ReplyDelete
  5. I am newbie, thanks a lot. Make me easier to learn SP.....

    ReplyDelete
  6. it's easier to just create the State Service instead of running the Farm Configuration Wizard. On 2013 at least.

    $serviceApp = New-SPStateServiceApplication -Name “State Service Application”
    New-SPStateServiceDatabase -Name “StateService” -ServiceApplication $serviceApp
    New-SPStateServiceApplicationProxy -Name “State Service Application Proxy” -ServiceApplication $serviceApp -DefaultProxyGroup

    ReplyDelete
    Replies
    1. Its true, but this articles in blogs are for beginners in Sharepoint. But the advanced developers can diagnose the issue from the error message itself. But its a good tip too.

      Delete
  7. Hi Senthil,

    I found your solution an useful tip for me. Thanks for blogging.

    Senthil R.

    ReplyDelete
  8. Thanks so much, worked for me too!

    ReplyDelete