Cannot delete property Options
imayat12
Posted: Monday, July 07, 2008 6:34:30 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Guys,

I have textpage document type with a load of properties. I can add new properties no problem and modify existing properties.

If i try to delete a property i get the following error:

Quote:

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.cms.businesslogic.propertytype.PropertyType.delete() +83
umbraco.controls.ContentTypeControlNew.gpw_Delete(Object sender, EventArgs e) +52
umbraco.controls.GenericProperties.GenericPropertyWrapper.GenericPropertyWrapper_Delete(Object sender, EventArgs e) +28
System.EventHandler.Invoke(Object sender, EventArgs e) +0
umbraco.controls.GenericProperties.GenericProperty.DeleteButton2_Click(Object sender, ImageClickEventArgs e) +31
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746





I am using v305. I can delete properties on all other document types no problem. Anyone seen this before?

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
tkahn
Posted: Thursday, July 10, 2008 10:42:29 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
Have you tried restarting IIS?

/Thomas

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
imayat12
Posted: Friday, July 11, 2008 12:39:58 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Thomas,

Yes. still get same error.

Level 2 certified. If it aint broke dont fix.
tkahn
Posted: Friday, July 11, 2008 8:51:37 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
Hmm, tricky.
Does this particular doctype contain a property that has a non-standard datatype? I'm thinking multiple content picker or something like that?

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
imayat12
Posted: Friday, July 11, 2008 11:18:03 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Thomas,

It used to have lefteris content and media picker. I also thought it may be something to do with those so i changed the type of the properties to textstring but i still cannot remove them. Maybe some residual stuff from the old types is still knocking around.

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
kalpa
Posted: Sunday, July 13, 2008 12:46:53 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
Ismail, two thoughts; are using IE or FF? or might the alias for the datatype be a duplicate with another doctype?

// ;) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
imayat12
Posted: Sunday, July 13, 2008 2:58:11 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Kalle,

The error occurs in ie and ff. The property with the same name does occur in another doc type but not the same doc type.

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.