SharePoint By Yagya Shree

SharePoint, WSS & MOSS: “Central Administration Page–Application Management–Manage Form Templates” and we got the following error message “Object reference not set to an instance of an object.”

with 3 comments

PROBLEM:
———-
–After deploying Custom InfoPath Form template in SharePoint farm we started getting error message on all the site collection and the event handler for the custom InfoPath templates were crashing abnormally
–When we click on the link in the “Central Administration Page–Application Management–Manage Form Templates” we get the error message “Object reference not set to an instance of an object.”

SYMPTOMS:
—————–
–The event handlers running on the site collection will crash
–“Manage Form Templates” link will not work in Central Administration Page
ERROR MESSAGE:
————————–
Object reference not set to an instance of an object.   at Microsoft.Office.InfoPath.Server.Administration.FormTemplate.SolutionDeploymentFailed()
   at Microsoft.Office.InfoPath.Server.Administration.FormTemplate.get_FormTemplateStatus()
   at Microsoft.Office.InfoPath.Server.ApplicationPages.FormTemplatePropertiesPage.GetStatusString(FormTemplate template)
   at Microsoft.Office.InfoPath.Server.ApplicationPages.ManageFormTemplatesPage.AddTemplateToTable(FormTemplate template, DataTable table, SPWeb web)
   at Microsoft.Office.InfoPath.Server.ApplicationPages.ManageFormTemplatesPage.FillDataTable(DataTable table)
   at Microsoft.Office.InfoPath.Server.ApplicationPages.GridViewPageBase.GridViewDataSourceView.FillDataTable(DataTable table, DataSourceSelectArguments selectArguments)
   at Microsoft.Office.InfoPath.Server.ApplicationPages.GridViewPageBase.GridViewDataSourceView.Select(DataSourceSelectArguments selectArguments)
   at Microsoft.SharePoint.WebControls.AdministrationDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at System.Web.UI.WebControls.GridView.DataBind()
   at Microsoft.Office.InfoPath.Server.ApplicationPages.GridViewPageBase.RefreshDataGrid()
   at Microsoft.Office.InfoPath.Server.ApplicationPages.ManageFormTemplatesPage.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
CAUSE:
———–
–you have installed custom form template incorrectly
–you tried to uninstall template from the site and central admin and it failed
 –Farm had been made Quiesce
RESOLUTION:
————–

–we need to delete the problem IP templates from the global deployment under the Central admin

–In order to do this we need to run the command

stsadm -o removeformtemplate -formid
–searched on the internet  and VKB found a blog
<http://geekswithblogs.net/HammerTips/archive/2007/12/07/unable-to-manage-form-templates.aspx>

–according to this blog we can find out the IP template “fileid” by following the method

1) Open the form in InfoPath design mode.
2) From the File menu, choose properties
3) Copy the form id
4) On the SharePoint server execute the following statement in a command window:

stsadm -o removeformtemplate -formid <enter copied id here>

–we found all the IP templates form ID

urn:schemas-microsoft-com:office:infopath:020221-DITQ:-myXSD-2008-07-11T16-02-21
urn:schemas-microsoft-com:office:infopath:NWBT-020221-Version-2-Waiver-Request-Form:-myXSD-2008-07-30T21-05-14
urn:schemas-microsoft-com:office:infopath:T02-DM-V4-FINAL:-myXSD-2008-07-11T19-40-02

–Run the command

stsadm -o removeformtemplate -formid <enter copied id here>

–You Might get an error

“this form template was deployed as part of the FT-01-65a1d9ae-868d-f975-ddce-cacf6e4d703d feature. This form template should be removed only by uninstalling that feature.”

–searched for the error message in the VKB and internet and found a blog

<http://blog.qumsieh.ca/sharepoint>

–this blog says

stsadm -o uninstallfeature -id idoffeature -force

stsadm -o uninstallfeature -id f97dd99b-7ea7-1c56-25e5-eddf7ff6099 -force

To determine the id, navigate to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\FT-01-f97dd99b-7ea7-1c56-25e5-eddf7ff6099b and locate the feature.xml file. The id will be located inside of this file.

–we went to the respective locations and found the “Feature ID” for the IP templates

65a1d9ae-868d-f975-ddce-cacf6e4d703d
c453e964-8844-7d44-ea83-c7f031288338
c9c0e1f2-f707-c6de-9fdd-37b5fa17b035

–we ran the command

stsadm -o uninstallfeature -id 65a1d9ae-868d-f975-ddce-cacf6e4d703d -force

–it completed successfully with the following message
“Operation completed successfully”

–we did an IISRESET /NOFORCE

–Opened the CA–application management–manage form templates and it opened fine
ENVIRONMENT:
———————–
Windows Server 2003 Enterprise (32-bit)
MOSS 2007 with SP1 (32-bit)
SQL Server with SP2 (32-bit)

KEYWORDS:
———————
Manage Form Templates InfoPath custom event handler site central administration

Written by Yagyashree

May 1, 2009 at 6:12 pm

3 Responses

Subscribe to comments with RSS.

  1. I solved this problem. Here is what I did:

    Step 1: Ran stsadm -o enumformtemplates > c:\formlist.txt to output all the InfoPath form templates uploaded in SharePoint Central Administration

    Step 2: Due to the fact that I didn’t know which of the form templates is generating the issue I had to delete them all, one by one, by executing the following command:
    a. stsadm -o removeformtemplate -formid (eg: urn:schemas-microsoft-com:office:infopath:T02-DM-V4-FINAL:-myXSD-2008-07-11T19-40-02)
    b. I got the following error while trying to remove some form templates: “this form template was deployed as part of the FT-01-65a1d9ae-868d-f975-ddce-cacf6e4d703d feature. This form template should be removed only by uninstalling that feature.”
    c. To solve this error then I removed the solution also. So I had to execute: stsadm -o uninstallfeature -id -force (e.g.: stsadm -o uninstallfeature -id f97dd99b-7ea7-1c56-25e5-eddf7ff6099 -force)
    In order to determine the id, I navigated to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\FT-01-f97dd99b-7ea7-1c56-25e5-eddf7ff6099b and locate the feature.xml file. The id will be located inside of this file.
    Here we should find something like Feature Id=”50d541c7-d5f4-fa2c-8449-7f3e4e6eaebe” so this is the id we need to use for the stsadm command

    After I removed one InfoPath form I performed an iisreset and try to open the Manage InfoPath forms page. This way I did refresh the page after removing each form and after removing one particular form the Manage Forms page came up without any error. The form I removed last before the page came up without any error was deployed 2 years back. From this I have to conclude that there was some issue with this forms deployment or some timer job that was supposed to activate or deploy this form was stuck.

    manoj

    July 29, 2010 at 10:41 pm

  2. Thank you so much Yagyashree and Manoj. Both your articles helped me in resolving my problem.

    Regards
    P

    POOJA

    November 15, 2011 at 3:59 pm

  3. […] SharePoint, WSS & MOSS: “Central Administration Page–Application Management–Ma… May 2009 1 comment […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: