30 March, 2009

The restricted trust level is not supported + Infopath

Recently I tried to create an InfoPath 2007 form template and publish it to a SharePoint Forms Library and I received the following error:The restricted trust level is not supported.

This Form template cannot be uploaded to the server.Review the following 1 error(s) for more information.
Errors

The restricted trust level is not supported.

-Make sure that the form’s trust is set to domain.
-Go to Tools > Form Options > Security and Trust and Uncheck “automatically determine security level” and select “Domain”or "Full Trust" as the level of trust.
-Click “Ok”.

To publish InfoPath 2007 form to a SharePoint library:

Using SharePoint to Verify and Upload the Form Template

The SharePoint Central Administration site contains the Upload Form Template page,to verify a form template before uploading it. Once the form template is verified, enter the path to the form template and upload it to the server.

To verify the form template by using SharePoint Central Administration
1. Click Start, click All Programs, click Administrative Tools, and then click SharePoint 3.0 Central Administration.
2. In the top navigation bar, click the Application Management tab.
3. On the Application Management page, under InfoPath Forms Services, click Upload form template.
4. On the Add Form Template page, click Browse.
5. In the Choose file window, browse to C:\InfoPathLabs\deploylab01.xsn, click the template, and then click Open.
6. In the Deploy Form Template section, click Verify.
7. In the Report Details section, look for any errors and warnings for the form template.
8. If the system warns you that the template already exists, click Application Management, click Manage form templates, click the arrow that appears next to the form template, and then click Remove Form.
9. On the Remove Form Template page, click Remove.
10. If you did not receive a warning, click OK.

33 comments:

  1. Hi,

    I am following the above steps but everytime I am getting the error as follows while trying to upload the form.

    This form template has not been correctly published to be browser-enabled. Open the form template in InfoPath Design mode, and click Publish Form Template in the Design Tasks task pane. Follow the steps in the Publishing Wizard to republish the form template, and then try again

    ReplyDelete
  2. Hello Deeptyranjan,

    lets do one thing, save that form to dsktop. when u will try to open, it will give you same error message so Right-Click on that form and "Design" and the form will open. Now the next step is Go to tools-Form Options-security Trust and select "Full trust or domain truest" asper your requirement. after this process, try to publish the form.
    If this will not work, then check the site collection as well as site features and enable enterprise feature which supports form services.
    I hope the above steps will help you to upload and configure the infopath form. Thanks!!! ALL THE BEST!!!

    ReplyDelete
  3. Hi Amol..

    while i was trying to uplaod a form an error showed like "An item with the same key has already been added"
    I tried removing the form,uploaded same form with diffent name,etc but all showing the same error...kindly suggest a solution for this..
    Thanks in advance...

    ReplyDelete
  4. Please execute this command as:
    stsadm.exe -o execsvcjobs and try to upload the form again. Please let me know the output.. Thanks!!

    ReplyDelete
  5. when i run this command it showed operation missing...then i tried executing stsadm.exe -o execadmsvcjobs...then also showing the same error "An item with same key has already been added"...Also i cheked executing reconvert all formtemplates in cmd but same error

    ReplyDelete
  6. System.ArgumentException: An item with the same key has already been added.
    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
    at Microsoft.Office.InfoPath.Server.SolutionLifetime. TokenizedNameTable..ctor(EnhancedBinaryReader reader)
    at Microsoft.Office.InfoPath.Server.SolutionLifetime. Solution.<>c__DisplayClass8.b__7()
    at Microsoft.Office.Server.Diagnostics. FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)

    In the event log it says

    Source - Office Sharepoint Server
    EventID - 5333
    Category - Forms Services Conversion and Deployment 1:47:57PM

    Detected converted data version mismatch. Solution Id:938c6d9d-5264-4ba3-8a20-8417e03d2cbf:ver:12.0.0.1, expected version:4, saved version: 3. (User: MOSS\Admin, IP: 10.10.1.1, Request: http://MOSS2007/_layouts/CstWrkflIP.aspx?List={FAB78E36-0CAB-4B30-ADC5-248813312DF8})

    Source - Office Sharepoint Server
    EventID - 5368
    Category - Forms Services Runtime 1:51:10PM

    Exception occurred during request processing. (User: MOSS\Admin, Form Name: , IP: 10.10.1.1, Request: http://MOSS2007/_layouts/CstWrkflIP.aspx?List={FAB78E36-0CAB-4B30-ADC5-248813312DF8}, Form ID: , Type: ArgumentException, Exception Message: An item with the same key has already been added.)

    Solution:
    Open an command prompt and run "stsadm -o reconvertallformtemplates".

    Please clear the browser cache before executing the above command also, if you try to upload a blank form then what happends, Please let me know!! Thanks!!!

    ReplyDelete
  7. We tried executing the command "stsadm.exe -o reconvertallformtemplates" then also same error is coming in the command prompt.Even if we try to publish and upload a new form which is not there in Central admin still we get the same error.We also checked uploading a form by changing the last 2 digits of version id .Kindly suggest.

    ReplyDelete
  8. Is this the first form you are trying to upload in Central Administration? In the past, Have u uploaded any form? I guess, the infopath web services are not properly working in your enviornment. If you go to manage form templates then how many templates are viewable over there?
    Could you please send me the screenshot of the central Administration Settings set for Infopath Services(Configure Infopath Services)? Please send me the screenshot on amghuge@gmail.com also, Please send me the latest logs so that i can checked it out regarding any errors related to same. Thanks!!!

    ReplyDelete
  9. We have uploaded almost 100 form templates in central admin..we are facing this problem in live server..even all other old forms are working fine..but the problem is when uploading new forms..i m sending the scrn shots..

    ReplyDelete
  10. I found some entries related to timer job errors as "The timer service could not initialize its configuration".

    Could you please check the timer job states and check for any job which is in failed state, please check on all the wfe's.

    Also found out that this this error occurs if you are adding the same key again in a Hashtable or a NameValueCollections. These classes are found in System.Collections.

    ReplyDelete
  11. Thanks...we ll check for this and come back to u...

    ReplyDelete
  12. Actually I found a blog url is mentioned below,

    http://soerennielsen.wordpress.com/2009/01/14/fixing-the-timer-service-when-everything-breaks-down/

    There they are mentioning about some Cache.ini file. Where can i find this file for checking the steps what they are mentioned in the blog

    ReplyDelete
  13. Follow this path C:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config on each WFE, Within this Folder, You will Find many .xml files along with cache.ini file. Delete all the XML Files and keep only cache.ini file. When you click on that cache.ini file, You will find one number, Remove that number and insert 1 only and Save.. Now, Restart the Windows SharePoint Timer Service. Follow this procedure on all WFE's.

    ReplyDelete
  14. Hi Amol,

    My issue is whenever i am trying to add a new lookup column in MOSS 2007 documnet library, or clicking on an existing one recieving the below error message:

    An entry with the same key already exists. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
    at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
    at KWizCom.SharePoint.FeildControls.DualLookupType.DualLookupFeildEditor.CreateChildControl()

    at System.Web.UI.Control.EnsureChildControlls()

    at KWizCom.SharePoint.FeildControls.DualLookupType.DualLookupFeildEditor.InitializeWithFeild(SPFeild feild)


    at Microsoft.SharePoint.ApplicationPages.FeildCustomizationPages.OnLoad(EvenArgs e)

    at Microsoft.SharePoint.ApplicationPages.FeildEditPage.OnLoad(EvenArgs e)

    at System.Web.UI.Control.LoadRecursive()

    at System.Web.UI.Page.ProcessRequestMain(Boolean includesStagesBeforeAsyncPoint, Boolean includesStagesAfterAsyncPoint)

    Please let me know if you have any solution to get out of this error message.

    Thanks
    Moumita

    ReplyDelete
  15. Hello Moumita,

    -it seems that this is corruption of content type but needs some info from your side.
    -are you facing that error message for that specific document lirary ?
    -Did you with other DL's also ?

    Please check and let me know so that we can troubleshoot and resolve the issue asap.

    ReplyDelete
  16. Hello Amol,

    My issue is I have downloaded Moss 2007 trial setup and i am making a publishing site..now some urls display message "file not found" or file cannot be open...Is this the issue of trial version?

    ReplyDelete
  17. I am pretty much sure that the issue is not with the trial version if it is within period.

    Just to more elaborate:

    1.Did you create a site creation directly ? If Yes then please specify the URL ??

    2. When you had created the site then did you get the message "site has been successfully created"

    3. If Yes then please check the IIS and confirm the same.

    4. As the site collection is created under a web application then same can be confirmed by using application management:
    -> Web application list
    ->Site collection list

    5.Is this a standalone or WFE ? If its a WFE then where is the SQL present-same box/different box ??

    6.If it is present on different box then- if we try to ping the SQL BOX from sharepoint machine then reply should be there.

    Please check the above and confirm ?? in case of any problems i am ready to troubleshoot and will be available for live meeting session.. thanks..

    ReplyDelete
  18. 1. Yes, the url is sharepoint-2001
    2. Yes
    3. Yes
    4. Yes
    5. Standaolne, we are using windows authentication as my site doesnt accept sa login/pwd , dnt know why!
    6. Also my infopath form is not getting publish as in the publishing wizard it is not accepting the url of my site.
    e.g niether http://loaclhost:2001 or http://sharepoint:2001/sites/sp/default.pages
    and what is the proper porcedure of selecting submit data and receive data

    Thanks

    ReplyDelete
  19. 1. Did you make any changes in alternate access mapping ?

    Please check the operations-alternate access mapping, becuase http://localhost:2001should be present in the default zone..

    Please check and let me know (sharepoint:2001 is a c name record so that is a different part)

    Is it possible for you to setup the live meeting session so that i can track the activities and resolve the issue as soon as possible ??

    I guess, Team Viewer is then best option by which we can use for the desktop sharing, what you think ??


    2. One more thing- Try to create one site collection under http://localhost:2001

    please refer the following steps:

    -application management
    -create a site collection
    -select the proper web application from the dropdown
    -specify site details as name and url
    -select the template as "Team sit"
    -ok

    ->Check the message-it should be 'site has been successfully created'.

    ->Click on that link and make sure the created site is browsing fine without any issues..

    ReplyDelete
  20. Hi Amol,

    I am getting the same error: An entry with the same key already exists.

    But this time it is for Cascading lookup column. When i am clicking on existing column or even if i am trying to create a new cascading column. Please let me know what to do.

    Thanks
    Moumita

    ReplyDelete
  21. Hello Moumita,

    What kind of customizations you have done on the same list where you are getting the mentioned error ?

    -Is this only for one list ? If we try to replicate the same process in a new list then do we face the same error message ?

    Lets do one thing:

    -Save that list as template and try to create the new list by using the same and check the results ?

    Please check and let me know the results...

    Also, when you got the mentioned error message then did you find anything in the event viewer as well as in the sp logs i.e. c:\program files\common files\microsoft shared\web server extensions\12\logs

    Please try the above mentioned suggestions and let me know the findings, Thanks

    Thanks and Regards,
    Amol Ghuge

    ReplyDelete
  22. Amol,
    I'm uploading a form template. I am recieving the error, Choice Section control is not supported. When I access InfoPath in Design Checker View, I have 0 Errors,and 7 Messages. The messages are all, "Placeholder text is not supported". In one of the 7 affected fields, I have accessed the "Rich Text Box Properties" > Display > Options > Placeholder and literally deleted the information in the field (it said, Type Notes Here). Clicked Apply, OK, refreshed Design Checker. Still 7 messages.

    Went back to "Rich Text Box Properties" > Display > Options > Placeholder, its still empty, Available Formatting still shows error "Only full rich text without embedded images is supported in browser-enabled form templates" All settings beneath are grayed out.

    Ideas

    ReplyDelete
  23. On the infopath desing checker, you have a checkbox to "Verify on server".
    Don't forget to check this control and tu click on "Actualize".

    This check box will verify that the form can be publish with InfoPath Form Services.

    ReplyDelete
  24. Amol, yes, I have the box checked.

    ReplyDelete
  25. Here are some screen shots, if it helps

    http://i53.tinypic.com/16knx4x.png
    http://i53.tinypic.com/2hp37ue.png
    http://i51.tinypic.com/wa0gzt.png

    ReplyDelete
  26. Could you please select the option "Form wth browser enabled" and not the actual client i.e. Infopath 2007 ?

    Please go to form options and in the "Compatibility" tab to choose "Form Services".

    ReplyDelete
  27. It's already completed and filled:
    http://i54.tinypic.com/2ur8osm.png

    Here are the settings in Central Admin:
    http://i55.tinypic.com/2uzw70l.png

    ReplyDelete
  28. hi
    this is gagan
    when, i upload from template in browser and verify then showing error


    " This form template has not been correctly published to be browser-enabled. Open the form template in InfoPath Design mode, and click Publish Form Template in the Design Tasks task pane. Follow the steps in the Publishing Wizard to republish the form template, and then try again."

    pls help me.
    i waiting your responce.

    Thanks and regards
    gagan dubey
    dgmoss@live.com

    ReplyDelete
  29. Hello Gagan,

    Issue: Facing problems with the infopath forms.

    It seems that you have directly uploaded the form to the sharepoint document document library but that is not the actual procedure while publishing browser enabled infopath forms.

    Please refer the following steps and hopefully your issue will be resolved :-)

    -Before i proceed with the detailed steps, make sure that the form that you are using is having .xsn entension and not .xml
    -second thing, make sure you are publishing the form to the Form Library and not a normal Doc library.

    Detailed Steps:
    1. Right Click on the form and select Design option. This will open the form in design mode.
    2. Right hand side of the form, click on check for design errors, that will reflect any erros which are not compatible with the browser enabled functionality.
    3. Tools--->Form Options-->Compatbility-->Make sure the browser compatibility option is checked.
    4. if everything is has been set then i guess we are good with the publishing.
    5. Right hand side bottom-->Publish option/Office ribbon option-->Publish
    6. These steps are very simple-->When you proceed further-->One steps will ask you to check the option of browser mode publishing-->In this step-->Two options should be automatically checked-->1. Document Library 2. Browser Publishing
    7. in the next step-->If you have already created the form library then select update option/Create a new Form Library
    8. Thats it-->You will get the message that the form has been successfully published :-)

    Please check and let me know in case of any further queries/questions, Thanks for your patience...

    ReplyDelete
  30. Good morning Amol,
    i have troubleshoot this problem with the help of your suggestion.
    i will sending invitation in facebook plz accept.

    thanks
    Gagan Dubey
    dgmoss@live.com

    ReplyDelete
  31. I appreciate every one of the updates you will share in my opinion.

    Thanks!.
    Review my homepage ... scrapebox proxies

    ReplyDelete
  32. Notre générateur de kamas est enfin disponible gratuitement
    en téléchargement.
    Depêchez-vous il n'est disponible qu'en petite
    quantité limitée. Notre générateur de kamas vous garantie de non-bannissement
    avec beaucoups de possibilité intégrée vous garantissant une sécurité optimale.


    Il est nécéssaire de comprendre que notre logiciel n'est pas compliquée d'accès et vous permet une utilisation idéal en tout cas
    Non seulement vous allez pouvoir faire des kamas
    très simplement mais en plus vous êtes sur
    d'être en toutes sécurité grâce à notre moyen de programmation
    spéciale utilisant des méthodes utilisés par les plus grands du
    moment.

    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.