Try our conversational search powered by Generative AI!

Problem with export of content items



I'm using EPiServer 7.5.394.2

On some page types, I have the following property:

[Display(Name = "Website", Order = 210)]
public virtual Url WebsiteUrl { get; set; }


In edit mode, if I leave WebsiteUrl empty, export works fine. If I select an external link, then I get the following exception during export:

The following warnings have been generated:
[Exporting content 457] Failed to export property WebsiteUrl, exception: Object reference not set to an instance of an object.

Any suggestions?

Apr 04, 2014 14:36


I have reported a bug for this. The issue is that at during export it compares the url with SiteDefinition.Current.SiteUrl. And since the export package is created in a background thread it has no httpContext to resolve SiteDefintion from. It will then try to fallback to the SiteDefintion with wildcard host '*' but if no such host mapping exist it will get back a SiteDefintion where SiteUrl is null which cause the exception.

So a workaround for you is to add host '*' to any of your sites (in admin mode under "Manage WebSites".

Apr 07, 2014 13:19

Hi Johan,

Unfortunately, I can't use this workaround because the client has purchased the license for only one website. I'm getting the following message under 'Manage Websites':

The number of licensed sites 1 has been reached, no more sites can be added without upgrading the license.

Apr 07, 2014 14:40

You do not have to create any new site. Just click Add under host section on your existing site, and fill in '*'.

Apr 07, 2014 14:42

Ah, of course. Thanks.

That did the trick but now I'm getting another error message:

[Exporting content 269] Property "FacebookPage" has a value that is not a well formed URI: "ö/190076057674790?fref=ts"

Apr 07, 2014 14:48

That should be just a warning message, the package should be ok anyway.

Apr 07, 2014 15:25


Apr 07, 2014 16:15

Fix released in EPiServer.CMS.Core 7.7.0

Apr 29, 2014 9:24
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.