Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Create portal from template: Create portal from template: 'Error creating Profile Definitions'
Previous
 
Next
New Post
4/18/2007 9:21 AM
 

I have created a backup / template from a DNN 3.3.7 site (that was upgraded from 2 to 3 to 3.3)

When I create a new portal on my completly fresh installed DNN 4.5.1 site I get the error

Error creating Profile Definitions

and no portal is created. Since this is a largish site & template, I don't want to wade through all the XML. However, I briefly checked and found no "Profile" string used within the template. Can anyone shed some light? TIA

 

 
New Post
4/24/2007 7:27 AM
 

Hi,

I'm having a similar problem. I get the message "Error creating Profile Definitions" when trying to create a 4.5.1 portal based on a previous version template (4.4). How can I solve this problem? The alterative would be to build the whole site from scratch which is a big task!

Thanks in advance.

Regards,

Nuno

 
New Post
4/24/2007 2:18 PM
 

DotNetNuke Modules from Snapsis.com
 
New Post
4/24/2007 6:40 PM
 

While the corrected template schema may help some, it did not help me... My template was created by DNN 3.3.x and did not contain any profile definitions (they were introduced with DNN 4.3).

Here is how I fixed my problem:

The code that creates a portal adds default profile definitions, if none are found in the template. This code fails on my system (I have actually tried3 hosts and about 6 templates) , causing the first mentioned exception/error:

from ... \Library\Components\Users\Profile\ProfileController.vb

Private Shared Sub AddDefaultDefinition(ByVal PortalId As Integer, ByVal category As String, ByVal name As String, ByVal strType As String, ByVal length As Integer, ByVal types As ListEntryInfoCollection)
Dim typeInfo As ListEntryInfo = types.Item("DataType." + strType)
If typeInfo Is Nothing Then
typeInfo = types.Item("DataType.Unknown")
End If

Dim propertyDefinition As ProfilePropertyDefinition = New ProfilePropertyDefinition()
propertyDefinition.DataType = typeInfo.EntryID

This last line is where the exception occurs (it is caught in the caller of the above routine). Although strType is passed in as "text" the type info lookup is not working and gets type "Unknown" resulting in the subsequent exception.

I am thinking of raising a bug in Gemini, but maybe it is isolated to my test systems, since no-one else has posted?

Anyway the solution turns out to be simple: Go to the default DotNetNuke template, locate then cut and paste the XML profile definition block into your DNN 3.x template.

 
New Post
5/31/2007 8:47 AM
 

I had the same problem on 4.5.2 -  thanks to your tip on the profile definitions I was able to proceed.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Create portal from template: Create portal from template: 'Error creating Profile Definitions'


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out