I'm getting the following exception when I try to publish a node in Umbraco:
Value cannot be null. Parameter name: attribute
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: attribute
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.
Thing is, that this exception only occurs when I have create a new document type and tries to publish a node of that type in my content section. When I create a new Textpage, it saves and publishes just fine.
I have tried the following:
- Restarted IIS - Recycled app pool - Deleted examine indexes (which automatically rebuilds) - Hit the "Republish entire site" button - Tried to republish root node and all childnodes (the exception occurs here aswell) - Touched the web.confg
I've tried to call the url without any luck aswell :-/ Also, I have tried to remove all properties (there were only three) from the document type and still get the exception.
*One* of my document types (not the one I just created) alias started with a leadin "-" (because I named it: 1-Folders) which lead to any new document type created after this causing this exception. Simply removed the leading dash and now everything works again.
So, for future reference: do not put any special chars in your document types aslias! :-)
Value cannot be null exception when publishing
Hi all,
I'm getting the following exception when I try to publish a node in Umbraco:
Value cannot be null.
Parameter name: attribute
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: attribute
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:
Thing is, that this exception only occurs when I have create a new document type and tries to publish a node of that type in my content section. When I create a new Textpage, it saves and publishes just fine.
I have tried the following:
- Restarted IIS
- Recycled app pool
- Deleted examine indexes (which automatically rebuilds)
- Hit the "Republish entire site" button
- Tried to republish root node and all childnodes (the exception occurs here aswell)
- Touched the web.confg
Without any luck..
Anyone know of a way to fix this? :-O
Thanks in advance!
All the best,
Bo
Hi Bo
Try the fix in this post:
http://www.simonantony.net/knowledge-base/articles/value-cannot-be-null-parameter-name-attribute-error-in-umbraco/
BAsically call /umbraco/dialogs/republish.aspx?xml=true and rebuild the xml
Si
Are you using any special datatypes on this document type ?
Hi Simon and Rasmus,
I've tried to call the url without any luck aswell :-/ Also, I have tried to remove all properties (there were only three) from the document type and still get the exception.
Starting to get at tad lost here I must admit ;-)
Thanks again !
I found the flaw:
*One* of my document types (not the one I just created) alias started with a leadin "-" (because I named it: 1-Folders) which lead to any new document type created after this causing this exception. Simply removed the leading dash and now everything works again.
So, for future reference: do not put any special chars in your document types aslias! :-)
Good you solved it ! :)
is working on a reply...