Our Forum has Moved

This site is our old forum and is only here for achive until we get proper 301 redirects setup to make Google happy.

Please use our new community site - Our Umbraco - which contains an improved forum, documentation wiki, package repository and a member locator.

Go to Our Umbraco now

Learn everything about Umbraco
No node exists with id '1040' Options
sirmanson
Posted: Monday, May 11, 2009 8:08:15 PM
Rank: Newbie

Joined: 11/23/2008
Posts: 9
Location: Tucson, AZ USA
I get an error with the title "No node exists with id '1040'" when I click any document type in the tree. I did an upgrade from Umbraco 3 to 4. Everything else seems to be working beautifully on the site except for this.

Does anyone have any suggestions for me?
tim
Posted: Monday, May 11, 2009 8:23:31 PM

Rank: Umbracoholic

Joined: 2/19/2007
Posts: 1,056
Location: Belgium
What datatypes are you using ?

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
tim
Posted: Monday, May 11, 2009 8:24:02 PM

Rank: Umbracoholic

Joined: 2/19/2007
Posts: 1,056
Location: Belgium
Looks like a datatype might be using an id that is removed ...

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
sirmanson
Posted: Monday, May 11, 2009 10:27:53 PM
Rank: Newbie

Joined: 11/23/2008
Posts: 9
Location: Tucson, AZ USA
I honestly don't remember which data types we're using and since I can't click the nodes I don't see a way to get that for you. Would you expect that error to appear for every document type?

Thanks,
Aaron
sirmanson
Posted: Wednesday, May 13, 2009 9:11:10 PM
Rank: Newbie

Joined: 11/23/2008
Posts: 9
Location: Tucson, AZ USA
*BUMP* Does anyone have any suggestions for this?
psterling@homax
Posted: Wednesday, May 13, 2009 9:23:11 PM

Rank: Fanatic

Joined: 10/30/2007
Posts: 329
Location: Bellingham
I think you're going to need to do a bit of digging in the DB. Based on what you provided, I'd look in the tables:

cmsDocumentType
cmsContentType
umbracoNode

to try and determine if your Document Type is referencing a Node that doesn't exist. You can update to a Node that does exist but be careful to use one that has the the same nodeObjectType - else you may end up with some more strange behavior.

-Paul

motusconnect.com :: level-2 certified :: MVP 2008/2009
sirmanson
Posted: Thursday, May 14, 2009 2:33:01 AM
Rank: Newbie

Joined: 11/23/2008
Posts: 9
Location: Tucson, AZ USA
Thank you for the feedback. I've looked in the tables you suggested and I found that my "Projects" document type has a contentTypeNodeId of 1196 and a templateNodeId of 1197. When I look in the umbracoNode table there are nodes with id's that match the two I noted previously.

Did I follow your instructions correctly? It appears that there are nodes for both.

Thanks,
Aaron Eden
http://www.aaroneden.com
psterling@homax
Posted: Thursday, May 14, 2009 7:49:42 PM

Rank: Fanatic

Joined: 10/30/2007
Posts: 329
Location: Bellingham
Aaron -

Yes, that's good. The short version is that you need to:

1 - find which node is referencing 1040 (probably a datatype on a document type)
-- looking in the above tables may help with this :-)
2 - see if 1040 exists (i'm guessing 'no')
3 - update the 1040 reference to one that does exist

Hope that helps,
-Paul

motusconnect.com :: level-2 certified :: MVP 2008/2009
sirmanson
Posted: Friday, May 15, 2009 3:41:47 PM
Rank: Newbie

Joined: 11/23/2008
Posts: 9
Location: Tucson, AZ USA
I went through cmsDataType, umbracoNode, cmsContentType and cmsDocumentType, but the number 1040 does not appear in any of them. Is there somewhere else I should check?
tim
Posted: Friday, May 15, 2009 3:56:51 PM

Rank: Umbracoholic

Joined: 2/19/2007
Posts: 1,056
Location: Belgium
Hi, you can view what datatypes you are using by looking at the document type (settings sections)

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
dconlisk
Posted: Friday, May 29, 2009 12:23:28 PM

Rank: Aficionado

Joined: 10/19/2007
Posts: 161
Location: Glasgow, Scotland
I had this same issue, but in the exception details was the following line:

Quote:

treeMultiPicker.treeMultiPickerDataEditor.renderPickedNode(Int32 nodeID, String treeType)


So I figured the client had chosen a node using the one of the treepicker-based data types on the site. I looked in the database and sure enough in cmsContentXML there were references to the offending node id. However, updating this table didn't seem to work.

After some more digging I found references to the id in the cmsPropertyData table. A quick update to this table to remove the id (which could be a non-trivial task depending on what the existing data looks like) and we were good to go again.

If anyone can enlighten me as to how the cmsContentXML table works that would be great!

Cheers,

David

Certified Umbraco developer
sirmanson
Posted: Tuesday, June 16, 2009 6:09:57 PM
Rank: Newbie

Joined: 11/23/2008
Posts: 9
Location: Tucson, AZ USA
I think I'm hitting a different issue. I checked both the cmsContentXml and cmsPropertyData tables and did not find the number 1040 anywhere.

select *
from [umbraco].[dbo].[cmsPropertyData]
where id=1040 or contentNodeId=1040


select * from [umbraco].[dbo].[cmsContentXml]
where xml like '%1040%'

Here is the stack trace from the error. Maybe it will help shed some light. I also noticed that some nodes with this 1040 error and others give a null error which I will paste below.



Value cannot be null.
Parameter name: value
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.ArgumentNullException: Value cannot be null.
Parameter name: value

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:


[ArgumentNullException: Value cannot be null.
Parameter name: value]
System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic) +8835675
System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace) +93
System.Web.Caching.Cache.Add(String key, Object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback) +81
umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +250
umbraco.cms.businesslogic.template.Template.GetTemplate(Int32 id) +127
umbraco.cms.businesslogic.web.DocumentType.get_allowedTemplates() +98
umbraco.settings.EditContentTypeNew.bindTemplates() +49
umbraco.settings.EditContentTypeNew.Page_Load(Object sender, EventArgs e) +119
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053



Server Error in '/' Application.


No node exists with id '1040'
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.ArgumentException: No node exists with id '1040'

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:


[ArgumentException: No node exists with id '1040']
umbraco.cms.businesslogic.CMSNode.setupNode() +459
umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) +25
umbraco.cms.businesslogic.template.Template.GetMasterContentElement(Int32 masterTemplateId) +34
umbraco.cms.businesslogic.template.Template.ConvertToMasterPageSyntax(String templateDesign) +20
umbraco.cms.businesslogic.template.Template.SaveAsMasterPage() +16
umbraco.cms.businesslogic.template.Template.getMasterPageContent() +33
umbraco.cms.businesslogic.template.Template.setupTemplate() +178
umbraco.cms.businesslogic.template.Template.GetAllAsList() +223
umbraco.settings.EditContentTypeNew.bindTemplates() +210
umbraco.settings.EditContentTypeNew.Page_Load(Object sender, EventArgs e) +119
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627





Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
ProNotion
Posted: Friday, June 19, 2009 5:03:15 PM

Rank: Devotee

Joined: 4/22/2008
Posts: 80
Location: Plymouth, UK
I think this is possiblty an issue that was introduced in the original upgrade from 3 > 4 and I don't think now exists as I had it happen to me on 2 other sites and the problem still exists as I have not had the time to look into it further.

Did you ever resolve this? I have it happening on every datatype and all of my termplates are missing from the GUI which is something else that happened as a result of the upgrade.
ProNotion
Posted: Friday, June 19, 2009 6:14:49 PM

Rank: Devotee

Joined: 4/22/2008
Posts: 80
Location: Plymouth, UK
I have sorted the problem on the site I had an issue with and the table you actually need to be concerned with is cmsTemplate! Did you by any chance install the Website Starter Kit in v3?

See my blog post here on the topic:
http://blog.prolificnotion.co.uk/index.php/2009/06/19/umbraco-no-node-exists-with-id-1040/

The forum has moved

This forum is no longer in use, so you can't reply to this message - please go to Our Umbraco

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.