Need Help in Deleting Relational Lists

I created custom relational lists through List Definitions using Visual Studio 2010,when i open the lists it shows error window as below.

I checked the Logs file following errors were found.

1- Failed to determine the setup path of the list schema for feature {0F2F886B-CE56-41A1-BB98-A44F05BF8D6A}, list template 10001.    77e67235-6bad-43c7-843e-6bbe27759cbd

2- DelegateControl: Exception thrown while adding control 'ASP._controltemplates_metadatanavtree_ascx': Feature '0f2f886b-ce56-41a1-bb98-a44f05bf8d6a' for list template '10001' is not installed in this farm.  The operation could not be completed.    77e67235-6bad-43c7-843e-6bbe27759cbd

3- System.ArgumentException: Feature '0f2f886b-ce56-41a1-bb98-a44f05bf8d6a' for list template '10001' is not installed in this farm.  The operation could not be completed.    at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass19.<GetFeatureRootAndListSchemaPaths>b__18()     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPFeatureManager.GetFeatureRootAndListSchemaPaths(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, Guid featid, Int32 ltid, String& sPathToFeatureRoot, String& sPathToSchemaXml)     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNee...    77e67235-6bad-43c7-843e-6bbe27759cbd

I used the below code to delete the lists in order to create all the lists but it shows the error message "This list cannot be deleted because one or more lists are related to it. A relationship between two lists occurs when one of the lists contains a lookup column enforcing a relationship behavior on the other list."

                SPWeb mySite = SPContext.Current.Web;

                SPListCollection lists = mySite.Lists;

                SPList list = lists[TextBox1.Text];

                System.Guid listGuid = list.ID;

                lists.Delete(listGuid);

Also,i followed the article at http://blog.falchionconsulting.com/index.php/2007/11/delete-list-forget-about-forcedeletelist/ but it doesn't work either.

Finally,I used the code to cascade the lists deletion behavior by using below code which also didn't do the trick.

                SPList lookupList = mySite.Lists.TryGetList("InnerHeading");
                SPList relatedList = mySite.Lists.TryGetList("Description");

                if (lookupList != null && relatedList != null)
                {
                    string strPrimaryCol =  "InnerHeading:ID";
                    SPFieldLookup primaryCol = (SPFieldLookup)relatedList.Fields.GetField(strPrimaryCol);
                    primaryCol.LookupField = lookupList.Fields["ID"].InternalName;
                    primaryCol.RelationshipDeleteBehavior = SPRelationshipDeleteBehavior.Cascade;
                    primaryCol.Update();
                }

I need urgent help.Prompt response will be highly appreciated.

Regards,

July 5th, 2013 6:14am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics