I am new to creating the Umbraco package in local and install into local.I created the package and downloaded the zip file but the problem is when I install my local package I am getting below error.
"Server error: Contact administrator, see log for full details.
Failed to install package. Error during the step "InstallData"
First thing to do is check the log files to see if more information on the error is logged there. Looking in /App_Data/Logs/ - or you can install my Log Viewer package to help :)
I have installed the "Log Viewer package" in my local and found the below error when install my local package.
"Error installing businesslogic System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Coll"
I don't really know why this is happening, but the error seems to indicate there is an issue with a duplicate datatype definition. So do you somehow have two datatypes with the same name, maybe? Maybe look in the XML files created in your package (which you can open with any zip extractor) and see if you can spot a duplicate.
The source code for the Packaging Service is on GitHub. So the error seems to occur in the ImportDataTypeDefinitions method, presumably when an item with the same key is added to the dataTypes dictionary there.
Yes Dan Diplo, duplicate datatype was added to the umbraco database.I have removed the duplicate datatype when creating the package & re installed the package once again. But the problem is after installed the package, in umbraco back office there is no content elements.Do we need to create the pages under content menu OR By installing the package itself content may added?
You can package up content, if I recall. I think in the packager you can select a node and then opt to also include all children. This will then be included as part of your package.
Have you included all the doctypes for the content being imported?
One suggestion might be to create two packages - one with all the structure elements (doctypes, templates, datatypes etc). Install that. Then make sure you add permission so that these doctypes can be created under the home node and each other.
Then create another package with just content/media and try installing that second.
I'm not saying it will definitely work, just a suggestion :)
I have tired two ways as you suggested but couldn't get the pages under content menu. Is any other way to achieve this?
May be I did any wrong approach when create the package. So Could you please tell me that how to create the Umbraco package in umbraco back office of local project.And also can you please explain the package files needed to create the package.
I have successfully created the package & installed. When creating the package we should avoid the duplicate data types and choose the bin files & folder carefully. So that we can install the package without error.
Umbraco Package creation in local and install
Hi Friends,
I am new to creating the Umbraco package in local and install into local.I created the package and downloaded the zip file but the problem is when I install my local package I am getting below error.
"Server error: Contact administrator, see log for full details. Failed to install package. Error during the step "InstallData"
Please help me to solve this issue.
Thank you.
//Jansy
First thing to do is check the log files to see if more information on the error is logged there. Looking in /App_Data/Logs/ - or you can install my Log Viewer package to help :)
Hi Dan Diplo,
Thanks for the reply.
I have installed the "Log Viewer package" in my local and found the below error when install my local package.
"Error installing businesslogic System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Coll"
And refer the below screen shot.
Could you please help me to solve this issue.
Thank you.
//Jansy
I don't really know why this is happening, but the error seems to indicate there is an issue with a duplicate datatype definition. So do you somehow have two datatypes with the same name, maybe? Maybe look in the XML files created in your package (which you can open with any zip extractor) and see if you can spot a duplicate.
The source code for the Packaging Service is on GitHub. So the error seems to occur in the
ImportDataTypeDefinitions
method, presumably when an item with the same key is added to thedataTypes
dictionary there.Yes Dan Diplo, duplicate datatype was added to the umbraco database.I have removed the duplicate datatype when creating the package & re installed the package once again. But the problem is after installed the package, in umbraco back office there is no content elements.Do we need to create the pages under content menu OR By installing the package itself content may added?
Thank you.
//Jansy
You can package up content, if I recall. I think in the packager you can select a node and then opt to also include all children. This will then be included as part of your package.
Hi Dan Diplo,
When creating the package I have included all the child nodes. But the problem is the content menu is getting empty!!
Thank you.
//Jansy
Have you included all the doctypes for the content being imported?
One suggestion might be to create two packages - one with all the structure elements (doctypes, templates, datatypes etc). Install that. Then make sure you add permission so that these doctypes can be created under the home node and each other.
Then create another package with just content/media and try installing that second.
I'm not saying it will definitely work, just a suggestion :)
Hi Dan Diplo,
I have tired two ways as you suggested but couldn't get the pages under content menu. Is any other way to achieve this? May be I did any wrong approach when create the package. So Could you please tell me that how to create the Umbraco package in umbraco back office of local project.And also can you please explain the package files needed to create the package.
Thank you.
//Jansy
I'm not aware of any other way. Maybe a package like uSync could help you move content? See https://our.umbraco.org/projects/developer-tools/usync/
Thanks for your reply Dan Diplo.
I have successfully created the package & installed. When creating the package we should avoid the duplicate data types and choose the bin files & folder carefully. So that we can install the package without error.
//Jansy
Excellent, glad it worked for you in the end. Hopefully next it will be simpler :)
is working on a reply...