16 March, 2011

This Form Template Is Browser-Compatible, But It Cannot Be Browser-Enabled On The Selected Site.


I have an InfoPath form which is published to a document library in a SharePoint site. I am using InfoPath 2007 and MOSS 2007 enterprise edition. When I try to publish the form, and when I check the box "Enable the form to be filled out by using a browser", I only have the option to publish the form as Administrator approved form template, the other options of publishing it in a document library or publishing it as a content type are grayed out. 

 The InfoPath wizard is throwing an error message:

"This form template is browser-compatible, but it cannot be browser-enabled on the selected site"

Troubleshooting Steps:

1. Check Central Administration Settings

 -Central administration
 -Application Management
 -Click on Configure InfoPath Forms Services in the InfoPath Forms Services section (Check the following Check-boxes)
 a. “Allow users to browser-enable form templates”
 b.“Render form templates that are browser-enabled by users”

2. SharePoint Site Settings
1)   Open your SharePoint site
2)   Click on Site Actions 
3)   Site Settings
4)   Select Site collection features under Site Collection Administration
5)   Activate InfoPath Forms Services support or Office SharePoint Server Enterprise Site Collection feature

3. InfoPath 2007 client settings:
1)   Open the InfoPath client
2)   Tools
3)   Form Options
4)   Select the Compatibility category
5)   Check the 'Design a form template that can be opened in a browser or InfoPath'
6)   Click Ok

4. Form Publishing:

1)   When you published the form on to a document library then please make sure this settings (imp step):
2)   Check the “Enable this form to be filled out by using a browser” checkbox and finish.

5. Document Library Settings:
1)   Open the document library
2)   Settings
3)   Document Library Settings
4)   Advanced Settings
5)   Select the “Display as a Web page” option in the Browser-enabled Documents category

After all these troubleshooting steps, if you still faces the same issue then please execute the below mentioned commands and your issue will be resolved:

stsadm -o deactivatefeature -filename IPFSSiteFeatures\feature.xml -force -url %SITE_COLLECTION_URL%

stsadm -o deactivatefeature -filename IPFSWebFeatures\feature.xml -force -url %SITE_COLLECTION_URL%

STSADM.EXE -o activatefeature -filename IPFSSiteFeatures\feature.xml -url %Sitecollection_URL% -force

STSADM.EXE -o activatefeature -filename IPFSWebFeatures\feature.xml -url %sitecollection_URL% -force

If you have any queries/questions then please let me know. I would be more than happy to help you as well as resolves your queries...

19 comments:

  1. Hello, I Have got the same problem. I have done all stepps you descripe, but it won't work for my webapplication. In the farm we have more webapplications and over there it is working.

    Do you have any idea ?

    ReplyDelete
    Replies
    1. Okay. lets try to isolate where the problem is as all mentioned has already been completed

      please try this and brief me the results:

      -create a new site collection under that same web application and activate the "Office SharePoint Server Enterprise Site Collection feature"
      -as soon as you will activate this feature then "form templates" folder will be created under view all site content
      -Try to publish the form now and check the results

      1-If you are able to publish the form successfully then the problem is with that specific site collection

      2-If you face the same problem here then the problem will be different and i need to check the form itself.

      if we need to concentrate on point 2 then please send me the infopath form that u are using i.e. (.xsn) extension and i will check the settings

      If you have any queries/questions regarding the mentioned information then please let me know, Thank you

      Delete
    2. hello Amol,

      I have create a new site collection under that same web application and activate the "Office SharePoint Server Enterprise Site Collection feature" over here it is working. Do you have a solution to repaire the primairy site collection or something else ?

      Delete
    3. Ok, it is good that the problem has been isolated now and we can troubleshoot that specific site.

      fortunately i worked on such issues in the past and resolved so many cases without any problems. Don't worry-your issue will be resolved and form will be published without any error messages.

      Please execute the following commands against that specific site where it is not working:

      Also- what you need to adjust in the following commands: after the -url parameter in every comand, you need to enter the site link without default.aspx

      Note: All the commands should have to run successfully without any error message. what i can suggest you is-Dont copy these commands directly and type it manually in the command prompt because sometimes space will be created while copying and pasting inside the command prompt.

      stsadm -o deactivatefeature -filename IPFSSiteFeatures\feature.xml -force -url

      stsadm -o deactivatefeature -filename IPFSWebFeatures\feature.xml -force -url

      stsadm -o activatefeature -filename IPFSSiteFeatures\feature.xml -url -force

      stsadm -o activatefeature -filename IPFSWebFeatures\feature.xml -url -force

      Please try to published the form now n check the results. let me know in case of any issues, thank you

      Delete
    4. Amol,

      Thanx for you're reply.

      We have copied the site to a test envirnement. The same problem. And we have done the steps you told.

      stsadm -o deactivatefeature -filename IPFSSiteFeatures\feature.xml -force -url ( succesvol )

      stsadm -o deactivatefeature -filename IPFSWebFeatures\feature.xml -force -url ( error: Feature 'a0e5a010-1329-49d4-9e09-f280cdbed37d' is not activated at this scope.

      stsadm -o activatefeature -filename IPFSSiteFeatures\feature.xml -url -force ( succesvol )

      stsadm -o activatefeature -filename IPFSWebFeatures\feature.xml -url -force ( succeslcol )

      Erros is in step 2. When we activated the web feature en than deactivate it is is succelvol.

      When we publish the form we have the same problem. Hope you have any idea's.

      Delete
    5. Ok, as per the above reply-all the commands has been successfully executed so one folder should be under the hood of that site.

      lets check if it there or not:
      -------------------------------
      1. Open the site
      2. View all site content
      3. Under Document Libraries, there should be one folder named as 'Form templates'

      We need to check if it there or not. please check and let me know.

      Also, could you please specify the complete site link that you are using ?

      Also, forget about the form which is not working. lets design one simple form with some label's and textbox's and try to publish the same. Please convey me the results

      try to publish this form on to your production site which is not working as well as on to your test site, check the results. please update the same.

      Delete
    6. Amol, We have also an acceptation envirment en there it is working. We have made a backup of that form template. Removed the form template on production, en restored the backup from Acceptation. Now we have published the form en it is working !!

      The problem was that the customer have changed that form libary into an other name.

      Thanx for youre help and thinking with me !

      Delete
  2. its really great and good to know that the issue has been resolved.

    no said to say thanks and you are always welcome :-)

    collaboration efforts and troubleshooting in right direction always resolves the issue.

    In case of any queries/questions then please let me know and i would be more than happy to help u as well as resolves ur issues :-) NICE WORKING WITH U :-)

    ReplyDelete
  3. Amol,

    Do you know something abouth content deployment in SharePoint 2010? I have a problem with alerts the describe is here:

    • Content job is running from site 1 to site 2.
    • New items send alerts to the people. That is ok
    • But when the job is running the next day and there are no changes in the previous items last day, it sends alerts to the people anyway. Not ok. Only new items there has to be an alert.

    Settings on the alerts are checked.
    New job is made with no effect.

    ReplyDelete
  4. i can suggest you to check the sp timer jobs as well as settings again.

    Have you seen any discrepancies in ULS as well as in event logs when these alerts send out ?

    ReplyDelete
  5. Hi,

    I am not able to activate the form from central admin. I get the error which says I am not admin where as I am sure I am admin.I also tried with the system account still getting the same error. I am able to activate it to some other site collection that we have but not to the one where I need it to be activated. I tried running the command to deactivate and activate feature, it didnt help. I was able to activate the forms earlier and suddenly it started throwing this error. please help

    ReplyDelete
  6. If you are facing the above mentioned error then my question is-
    - Why you are directly uploading the form in central administration?
    - Did you check the complete steps which are mentioned in this article?

    - I hope the following things have already been checked:
    1. Form Templates folder
    2. Enterprise feature at the site collection level
    3. Form trust level.

    Please provide the above mentioned info so that we can troubleshoot, thank you.

    ReplyDelete
  7. Hello Amol,

    I have designed a simple infopath template where it submits data to a sharepoint list. I have used the code from the site http://www.bizsupportonline.net/browserforms/how-to-use-sharepoint-object-model-submit-data-infopath-browser-form-sharepoint-list.htm

    It works on my friends site with the same settings that I have. I have also sent the form over to him to check it and it works fine.

    I have tried all the necessary steps mentioned in your blog, but to no avail. When I click the button to submit, the dialog box displays "Sending Data to server" with the progress bar running. When I check the SP list, the data has not come through and the web form still has the message of sending data.

    Kindly let me know what are the next steps to achieve the results

    Thanks

    Leroy M

    ReplyDelete
  8. Are you using this form in the browser? If so, the custom code you wrote can only be executed on the server.

    Any button you click will call back to the server to run your code and return your updates to the form.

    This back and forth process can be tiring for your users so you might want to rework the form to minimize the amount of traffic between the browser and server while the user is filling out the form.

    ReplyDelete
    Replies
    1. Yes Im using this form in the browser and the custom code executes perfectly on my friends machine.

      After updating the form, it will automatically close, that was the command.

      But unfortunately, the moment you hit the button, the sending data to server message appears and it remains there for a long time with the progress bar still moving.

      The window does not freeze nor does it show not responding error

      Please let me know

      Delete
    2. there are so many possibilities as this issue is machine specific.

      can you please brief some details here so that we can compare?

      1. Does both machines are using the same Operating System? Please specify-
      2. Does both machines contains same browser versions? Please specify-
      3. Does both machines contains same office versions? Please specify-

      Delete
    3. Hello Amol,

      The machine that I have is the exact replica of my friends machine.

      1. Yes same operating systems
      2. Same browser versions
      3. Same office versions

      Delete
  9. - Can we test this functionality in different browser other than IE? (Mozilla Firefox/Google Chrome)

    - If it does not works then can you please share the sp logs here?

    you need to capture the sp logs when you face that "sending data to server" message. you need to check this on front ends. please check and share the same so that we can review the same and proceed towards the resolution. thank you

    ReplyDelete
  10. Works like a charm :) The last mentioned commands works for me! Thanks Amol

    ReplyDelete

Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge

Note: Only a member of this blog may post a comment.