Quantcast
Channel: Optimizely Search & Navigation
Viewing all 6894 articles
Browse latest View live

Error when trying to create data store in custom big table

$
0
0

I keep getting the following error when my code tries to create a new data store in my custom big table. I have 10 nvarchar(max) columns available for data to be put into in that table so I have no idea why this is happening. Please see the stacktrace below:

System.InvalidOperationException: Could not map property MyProperty - table MyTable does not contain any columns that map to DbType.String
at EPiServer.Data.Dynamic.StoreDefinition.GenerateMappings(IEnumerable`1 typeBag, StoreDefinitionParameters parameters, Int32 version, IList`1 existingMappings, IDictionary`2 pendingRenames)
at EPiServer.Data.Dynamic.StoreDefinition.<>c__DisplayClass27_0.<InternalCreate>b__0()
at EPiServer.Data.Cache.Internal.LocalCache`2.Add(TKey key, Boolean cacheNullValues, Boolean overwriteExistingValue, Func`1 getAction, Action`2 setAction)
at EPiServer.Data.Cache.Internal.LocalCache`2.Add(TKey key, Boolean cacheNullValues, Boolean overwriteExistingValue, Func`1 action)
at EPiServer.Data.Dynamic.StoreDefinition.InternalCreate(String storeName, IDictionary`2 typeBag, StoreDefinitionParameters parameters)
at EPiServer.Data.Dynamic.Internal.EPiServerDynamicDataStoreFactory.CreateStore(String storeName, IDictionary`2 typeBag, StoreDefinitionParameters parameters)
at EPiServer.Data.Dynamic.Internal.EPiServerDynamicDataStoreFactory.CreateStore(String storeName, Type type, StoreDefinitionParameters parameters)


How to allow aspx files

$
0
0

I have a website running Episerver CMS hosted in an Azure webapp.

My goal is to display a 404 page when a user goes to www.mysite.com/test.aspx, This works locally on my IIS site, but when deployed to Azure instead of a 404 I get a 500 exception:

System.Web.HttpException (0x80004005): The file '/test.aspx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath
 at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate
 at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate
 at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound
 at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp
 at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath
 at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute(
 at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0(
 at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Any recommendations?

Order events - what to use?

$
0
0

Hi,

I noticed a while back that when implementing IOrderRepositoryCallback it is marked as deprecated and refers to implementing IOrderEvents.

However when implementing IOrderEvents it is marked as an unstable pre-release api.

Which is the safest way to go for the moment, is it simply an old summary that is set on IOrderEvents or should one use IOrderRepositoryCallback until IOrderEvents are stable?

Thanks!

Approval Sequence - sending an initial comment and tying to expiry date

$
0
0

Hello episerver,

We currently use our own custom workflow to approve webpages on the CMS.

However, i am looking into using the native episerver capability of Content Approval Sequence.

As far as I can see, there are two issues that stop me from using this and wondered if it would be possible to resolve:

1) When I start a new approval sequence, as a web editor i want to include a message telling the reviewers what has changed and what to look out for

2) I want the final reviewer to be able to set an expiry date for the page.

Can this be done?

I look forwrad to your response.

Thanks,

Tom

EOF exception during content indexing job.

$
0
0

The following error is occuring, when EPiServer Find Content Indexing Job is running:

  • The job is running. - Indexing job [Global assets and other data] [content]: ......: An exception occurred while indexing (Content): MapperParsingException[object mapping for [Catalog_Sku_SkuVariationContent] with array for [Prices$$nested] tried to parse as array, but got EOF, is there a mismatch in types for the same field?].

Is there is any possible solution to fix it?

How to – skip initial content item creation dialog

$
0
0

Starting with some of the new CMS version (guessing some 11 version) there is new creation dialog upon content item creation.

I want to get rid of Required properties dialog upon new page and block creation (via Blocks gadget).

This has some disadvantages:

Due reasons:

  1. There is need to quickly create new item but required properties does not allowing this. (E.g. during testing)
  2. Working around point 1 results in fact that “required” props are group to Additional properties group. That is not good.
  3. Not all props have so cogent names so they purpose can be easily identified without noting tab they belong to.

I wonder how to skip initial creation dialog on per content type basis. Also some general switch off could be interesting for me.

There is one more creation dialog type. Dialog for new block created via content area. There is always some dialog:

  • Required properties& Additional properties
  • Additional properties only

How to skip all kinds of thoose creation dialogs?

Link to proper documentation page will be sufficient.

Thanks a lot.

EPiServer Find (13.0.1) Sort by Date. The returned Hits is not properly sorted by the sort value

$
0
0

{
"_index": "index15455-en",
"_type": "SeriesNode",
"_id": "CatalogContent_70d204e7-487d-4a41-91d0-52affe791681_en",
"_score": null,
"fields": {},
"sort": [
1549027800000
]
},
{
"_index": "index15455-en",
"_type": "SeriesNode",
"_id": "CatalogContent_24073783-ba86-4c6e-8ac6-5153860f5f5b_en",
"_score": null,
"fields": {},
"sort": [
1548871200000
]
}

If you check the Hits from find. the sort value is not properly ordered by teh value. 1548871200000 < 1549027800000 for above case, then the document having sort value of 1549027800000 should be behind the document having sort value of 1548871200000 

automatic indexing of commerce pages (EventedIndexingEnabled / ScheduledPageQueueEnabled) results in wrong document type

$
0
0

When using scheduled task 'Episerver find content indexing job' commerce pages are correctly indexed with the correct document type :

-EpiWebsite.Models.Commerce.NonConfigurableProduct
-EpiWebsite.Models.Commerce.ConfigurableProduct
-EpiWebsite.Models.Commerce.ProductListCollectionFilter
-EpiWebsite.Models.Commerce.ProductListFilter
-EpiWebsite.Models.Commerce.CompositionBundle
etc.

But when EventedIndexingEnabled / ScheduledPageQueueEnabled is enabled

and I save a commerce page via _contentRepository.Service.Save etc.

Then the pages are automatically indexed with the wrong document type :

EPiServer.Commerce.Catalog.ContentTypes.ProductContent
EPiServer.Commerce.Catalog.ContentTypes.NodeContent


ImageProcessor Help Request

$
0
0

Hi Everyone,

I'm trying to take to take Vincent Baaij's ImageProcessor.Web.Episerver for a test drive, but I'm failing hard trying to get it to work. I've been trying for a couple of days now and I'm not sure what else to try.

The goal is to actually use the Azure version as we're running in DXC, but i've tried this and the local version in our codebase to no avail.

I had done little more than install the package and build to get:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Not sure where to start or what info to provide here so I'll start with the exception being thrown:

Exception thrown: 'System.NullReferenceException' in ImageProcessor.Web.Episerver.Azure.dll

The stacktrace shows the following:

at ImageProcessor.Web.Episerver.Azure.AzureBlobCache..ctor(String requestPath, String fullPath, String querystring)

These are the packages I have installed:

<package id="ImageProcessor" version="2.6.2.25" targetFramework="net461" />
<package id="ImageProcessor.Plugins.WebP" version="1.1.0" targetFramework="net461" />
<package id="ImageProcessor.Web" version="4.9.3.25" targetFramework="net461" />
<package id="ImageProcessor.Web.Config" version="2.4.1.19" targetFramework="net461" />
<package id="ImageProcessor.Web.Episerver" version="5.0.0.40599" targetFramework="net461" />
<package id="ImageProcessor.Web.Episerver.Azure" version="5.1.0.38549" targetFramework="net461" />

The web.config seems to have the all the entries it needs (pointers to the config files, imageprocessormodule etc).

I can successfully use something like:

PictureUtils.GetPictureData(Url.ContentUrl(Model.Image), ImageTypes.HeroImage, true);

to return a url like:

http://localhost:49945/siteassets/images/hero-banners/advanced_hero_reimagine_your_business_no_text_v001.jpg?width=1280&mode=crop&heightratio=0.5625&quality=80

but any image I attempt to GET that has the query string appended to it results in a 500 error. Remove the ?... and the image is retrieved correctly.

Any thoughts as to where to start?

Alex

Drag and Drop upload for some (most) .MSI-files fails silently (EPiServer 10.10.5.0)

$
0
0

By some reason drag and drop upload of .msi files fails silently.

After finding out that the same files uploads quite nicely by manually uploading through the plus-buttons and selecting it the old fashion way, we now have a workaround for the customer, so they can create their content on their pages as they wish.

We thought we had done something wrong with our configuration, web.config, mime-types, rewrites, request filtering etc. etc., a very time consuming investigation — but appearantly it's the drag and drop upload feature that fails.

Is this a real bug (that can be fixed) or a thing that can not be fixed due to browsers and API limitations?

Import content from different CMS into episerver database

$
0
0

I am working on migrating a legacy CMS onto EPiServer CMS. I want to move the content from legacy CMS into EPiServer's database. Anyone ran into a scenario like this? I followed their document on world.episerver.com, but it is not very clear. It says to configure EPiServer site under config tab in Admin section to define Content Channel. But they do not talk about exactly what APIs to use and how different fields map in their database to EpiServer's database. Any help would be much appreciated.

CategoryListEditorDescriptor is not being called

$
0
0

Hello everyone,

I have implemented the custom category list selector based on this thread:

https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2015/5/multiselect-category-picker-for-7.5/

(i have EpiServer version 11 and i did the update to the code, minor)

But..  when i am going for the selection of the category for one of the my properties:

I am somehow getting all the categories available and not the ones under the newly defined category root - AirTaxonTopicCategory for that property.

I am trying to set the breakpoint to 'ModifyMetadata' in my CategoryListEditorDescriptor but it never hits it...

so, the question I like to clarify in this post - is it possible to to use the debugger breakpoint for 'ModifyMetadata' method in my 'CategoryListEditorDescriptor' class?


Is this the method that being called very early in the process, sets up the roots for all the CategoryList properties according to the attribute's settings and not available in the run time?

another question (i think related) - is there some sort of caching for the categories list? Can I turn it off? As it seems the categories list and roots that appear for
my properties are very sporadic.

thank you for your help and suggestions,
HF

P.S. one of my properties of type CategoryList, which in editor when selected list ALL of the categories, and not the ones under the root specified:

        [Display(Name = "Topic", Description = "Topic categories to choose from", Order = 3, GroupName = CustomTabNames.Taxonomy)]        [AirCategorySelection(RootCategoryType = typeof(AirTaxonTopicCategory))]        [Searchable]        public virtual CategoryList TaxonomyTopic { getset; }



Dont index SKU during creation.

$
0
0

As I undestand from here: "https://world.episerver.com/documentation/developer-guides/find/Integration/episerver-cms-7-5-with-updates/Indexing/"

During process of sku creation it is being created in database and in Epi Find. It is correct?

If so, is there is possible solution to don't index sku during creation to improve performance?

Episerver - Automatically delete Properties from Episerver when deleted in code

$
0
0

I'm working on my first EPI Server project and I have noticed that when I create a property on a 'Page Type' in C# Code, compile it, I can see the properties in Episerver.

However when I then delete that property in code the property still appears in the back office, and I have to manually delete it in the admin section.

Is there a setting in Epi server that will automatically delete properties from the EPI server database when they are removed from code? It seems very strange that you would have to delete the properties one by one every time you make a change to a Page Type.

SignalR integration with EpiServer CMS

$
0
0

Hello,

I am trying to integrate SignalR with EpiServer CMS Solution but it is failing to create connection with Hub.

everytime i try it gives me this error at console log...

" Error during negotiation request."

Tried clear the .NET temporary files but no success

Regards,

Rajesh K


Modifying Crawled Content

$
0
0

Hi, I'm working on Find 13.0.1, CMS 11.9.1. We have Find crawling an external site and the results are included in our site search. We have an issue where the search returns too many results for certain search terms as they form part of the crawled sites navigation and footer, so they're repeated on almost every page.

One way we are trying to resolve this is via a scheduled job that will iterate each of the crawled WebContent objects and strip out all the content we don't want.

There's some good documentation here https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/Indexing/ which discusses updating the indexed objects if you have the items ID, the only ID I can find is the SearchHit.Id but I have a feeling this isn't what I'm supposed to be using as neither an Update or Delete works using it.

Below is what I'm using in the scheduled job.

I'm retrieving crawled content using SearchClient.Instance.Search() and iterating the hits (SearchHit)


If I try to update the indexed item I don't get an error but the index isn't modified.

ITypeUpdated updateResult = SearchClient
    .Instance
    .Update(hit.Id)
    .Field(x => x.SearchText, "New Clean Search Text");

Alternatively if I try to delete the item so I can replace it with a new 'cleaned' indexed item I get a "Not Found" error

DeleteResult deleteResult = SearchClient
    .Instance
    .Delete(DocumentId.Create(hit.Id));

Adding a new cleaned index item works OK but would only be a valid option if I can get the delete working.

IndexResult indexResult = SearchClient.Instance.Index(hit.Document);

Has anyone done this before, if so, where can I find the correct ID to pass? Or am I heading down the wrong path altogether.

Thanks,
Jason

Filter on class property type having issues

$
0
0

Hi,

I am facing issue while applying filter to episerver find.

I want to filter results based on condition that items found should be based on Document Class Property "HideDocumentInSearchResults" Value True/False.

If True should filter out from results, if False should be there in results.

My code is as below:

private string theQuery; //it is set as "08132.pdf"

private FilterBuilder BuildTypeFilters(string facet)
{
var filter = this.client.BuildFilter();

filter = filter.And(y => y.MatchTypeHierarchy(typeof(SiteBasePageData)) | y.MatchType(typeof(SiteBasePageData)));
filter = filter.Or(y => y.MatchTypeHierarchy(typeof(Document)) | y.MatchType(typeof(Document)));

filter = filter.And(q => !((SiteBasePageData)q).HideInSearchResult.Match(true)); //this works fine

filter = filter.And(q => !((Document)q).Name.Match("08132.pdf")); //this works fine

filter = filter.And(q => !((Document)q).HideDocumentInSearchResults.Match(true)); //this fails


return filter;
}

private IContentResult GetResult(int take = 10, int skip = 0) where T : class, IContent
{

this.theQuery = query;

var result = this.client.Search(Language.Swedish).For(this.theQuery)
.UsingSynonyms()
.InField(x => x.SearchTitle())
.InField(x => x.SearchText())
.InAllField()
.ApplyBestBets()
.CurrentlyPublished()
.PublishedInCurrentLanguage()
.Filter(this.typefilter)
.Filter(this.wherefilter)
.FilterForVisitor()
.ExcludeDeleted()
.Track()
.Skip(skip)
.Take(take)
.FilterFacet("document", x => x.MatchTypeHierarchy(typeof(Document)) | x.MatchType(typeof(Document)))
.FilterFacet("news", x => x.MatchTypeHierarchy(typeof(NewsPageType)) | x.MatchType(typeof(NewsPageType)))
.StaticallyCacheFor(new TimeSpan(0, 0, 0,CacheSeconds))
.GetContentResult(CacheSeconds)
;


return result;

}

Thanks.

BR/Rajesh K

Blocks with xhtmlstring not working after update

$
0
0

Hi,

After an update to tinymce 2.6.1 no blocks with xhtmlstring works anymore. Geting: "Cant show blockname".

Any ideas what the problem is?

How to restrict from creation of duplicate Page URLs in whole site

$
0
0

How to verify if (Page) URL is getting duplicated.
(it should check in whole website and not in just same folder whether it is duplicating or not).

Example, "http://www.domanin.com/PageFolder/NewPageCreationTest/" should be only 1 URL in whole site, if someone tries creating same URL it should restrict.

Regards,


Rajesh K

Need help to test Autoboost result

$
0
0

Hi,

i have implement Autoboost activity in my code but not sure how to test the result it is very dificult to verify the end result, Does anyone know how to test this functionaity?

Kindly do the needful for the same.

Thanks,

Chandrakant H 

Viewing all 6894 articles
Browse latest View live