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

Change Item Template error Unicorn thrown exception #268

Closed
longvh92 opened this issue Dec 29, 2017 · 2 comments
Closed

Change Item Template error Unicorn thrown exception #268

longvh92 opened this issue Dec 29, 2017 · 2 comments

Comments

@longvh92
Copy link

longvh92 commented Dec 29, 2017

I got an error when changing item template. It happens on every template in my Sitecore instance, whenever I make a change, after the Next button in change template Popup, it shows the blank popup but my expectation is a popup with success text. See image below
The info popup show we change item template
image
After clicking the Next button
image
Totally blank.
And Sitecore logs has thrown an exception:

Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Unicorn
at Unicorn.Data.DataProvider.UnicornDataProvider.ChangeTemplate(ItemDefinition itemDefinition, TemplateChangeList changeList, CallContext context)
at Unicorn.Data.DataProvider.UnicornSqlServerDataProvider.ChangeTemplate(ItemDefinition itemDefinition, TemplateChangeList changeList, CallContext context)
at Sitecore.Data.DataProviders.DataProvider.ChangeTemplate(ItemDefinition item, TemplateChangeList changes, CallContext context, DataProviderCollection providers)
at Sitecore.Data.Managers.TemplateManager.ChangeTemplate(Item item, TemplateChangeList changes)
at Sitecore.Data.Items.Item.ChangeTemplate(TemplateItem template)
at Sitecore.Shell.Applications.Templates.ChangeTemplate.ChangeTemplateForm.ChangeTemplate()
at Sitecore.Shell.Applications.Templates.ChangeTemplate.ChangeTemplateForm.ActivePageChanged(String page, String oldPage)
at Sitecore.Web.UI.Pages.WizardForm.set_Active(String value)
at Sitecore.Web.UI.HtmlControls.Button.DoClick(Message message)

Iam using Sitecore 8.0 Update 3 and the latest 4.3 Unicorn version.

Please help,
Thanks.

@longvh92 longvh92 changed the title Change Item Template error because of Unicorn Change Item Template error Unicorn thrown exception Dec 29, 2017
@longvh92
Copy link
Author

longvh92 commented Dec 29, 2017

For more information, I am using transparent sync to restore content item and template from existing SQL Database, then put it into source control so I can setup the instance everywhere without restore database.

@cassidydotdk
Copy link
Member

Can you share the YML for the template, item and standard values in question please?

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

No branches or pull requests

2 participants