Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move, Copy & Change Doc Type functionality doesn't work #3686

Closed
Shazwazza opened this issue Jun 18, 2018 · 2 comments
Closed

Move, Copy & Change Doc Type functionality doesn't work #3686

Shazwazza opened this issue Jun 18, 2018 · 2 comments
Labels

Comments

@Shazwazza
Copy link
Contributor

This is due to the logic that is used to copy the values across, it doesn't take into account the new variations structure so you'll probably end up with a YSOD like:

Server Error in '/' Application.
Variation InvariantNeutral is invalid for property type "content".
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.NotSupportedException: Variation InvariantNeutral is invalid for property type "content".

Source Error: 


Line 248:                if (throwIfInvalid)
Line 249:                    throw new NotSupportedException($"Variation {variation} is invalid for property type \"{Alias}\".");
Line 250:                return false;
Line 251:            }
Line 252:            return true;

Source File: C:\Users\Shannon\Documents\_Projects\Umbraco\Umbraco_8.0\src\Umbraco.Core\Models\PropertyType.cs    Line: 250 

Stack Trace: 


[NotSupportedException: Variation InvariantNeutral is invalid for property type "content".]
   Umbraco.Core.Models.PropertyType.ValidateVariation(String culture, String segment, Boolean throwIfInvalid) in C:\Users\Shannon\Documents\_Projects\Umbraco\Umbraco_8.0\src\Umbraco.Core\Models\PropertyType.cs:250
   Umbraco.Core.Models.Property.SetValue(Object value, String culture, String segment) in C:\Users\Shannon\Documents\_Projects\Umbraco\Umbraco_8.0\src\Umbraco.Core\Models\Property.cs:274
   Umbraco.Core.Models.ContentBase.SetValue(String propertyTypeAlias, Object value, String culture, String segment) in C:\Users\Shannon\Documents\_Projects\Umbraco\Umbraco_8.0\src\Umbraco.Core\Models\ContentBase.cs:273
   Umbraco.Web.UI.Umbraco.Dialogs.ChangeDocType.ValidateAndSave_Click(Object sender, EventArgs e) in C:\Users\Shannon\Documents\_Projects\Umbraco\Umbraco_8.0\src\Umbraco.Web.UI\Umbraco\Dialogs\ChangeDocType.aspx.cs:242
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +141
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5445
@Shazwazza Shazwazza changed the title Change Doc Type functionality doesn't work Copy & Change Doc Type functionality doesn't work Jun 18, 2018
@Shazwazza Shazwazza changed the title Copy & Change Doc Type functionality doesn't work Move, Copy & Change Doc Type functionality doesn't work Jun 18, 2018
@clausjensen clausjensen transferred this issue from another repository Nov 15, 2018
@bergmania
Copy link
Member

@Shazwazza, this does not seems to be a problem anymore. Can we just close the issue?

@Shazwazza
Copy link
Contributor Author

yup i think so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants