I think that's just the way Umbraco works. It stores a value. If you change the datatype it always returns the value of the previous datatype. Sometimes you don't notice this because the new datatype stores the value as ntext instead of nvarchar. In that case a different field is used in Umbraco and you don't get the old value back. This problem isn't related to uCompontents. It can happen with any datatype.
Umbraco or uComponents related error ?
I'm having the attached error on one of my documents.
It happens every time I attach a MNTP (MultiNodeTreePicker) to my document.
Changing the name and alias of the property doesn't have any effect.
So the question is, how do I fix it and is it related to Umbraco or uComponents ?
Hi Sebastian,
When you say that you attach a MNTP to your document, do you mean as a new property or an existing one?
From the error message, it appears that MNTP is trying to access a node/document that doesn't exist.
If you've changed an existing property field to use a MNTP, then the existing data/value might be causing problems?
Cheers, Lee.
Hi Lee
Yeah ... that was the exact problem. I changed a provperty from Textstring to MNTP.
Any ideas why it keeps the data from the old property, when I just deleted it ?
// Sebastian
Hi Sebastian,
I think that's just the way Umbraco works. It stores a value. If you change the datatype it always returns the value of the previous datatype. Sometimes you don't notice this because the new datatype stores the value as ntext instead of nvarchar. In that case a different field is used in Umbraco and you don't get the old value back. This problem isn't related to uCompontents. It can happen with any datatype.
Jeroen
is working on a reply...