Bartłomiej Mucha
  • Member for 5 years, 4 months
  • Last seen this week
Remove contact from contact list
Accepted answer
7 votes

We use code like this and it works fine. It is similar to yours however there are some differences: using (var client = SitecoreXConnectClientConfiguration.GetClient()) { try { var ...

View answer
There is no method 'GetResults' on type 'Sitecore.ContentSearch.Linq.QueryableExtensions' that matches the specified arguments
7 votes

I recently contacted Sitecore support regarding this and a few other issues with Solr. Regarding your exception I got this answer: The error is related to the fact that Solr provider is not ...

View answer
What is purpose of DB Browser(dbbrowser.aspx) under admin tool?
6 votes

It is also usefull in situations when Content Editor does not work because of broken item. You can use dbbrowser.aspx to navigate to that item and

View answer
What is the best way to store a single Sitecore field into two Solr index fields with different types?
Accepted answer
6 votes

I figured out that we have two options: 1. Use Solr to copy field The Solr documentation says: You might want to interpret some document fields in more than one way. Solr has a mechanism for making ...

View answer
Configuring Sitecore to display PDFs in browser
5 votes

You can also easily extend Sitecore to set Content-Disposition per file. To do this, add a new field on File template, located here /sitecore/templates/System/Media/Versioned/File. The best way is to ...

View answer
Delete Data sources without any referrers
Accepted answer
5 votes

You can do that in a few steps: Rebuild your link database Search for datasource items for example by template id For each item check if it has referrers Delete item The code can looks like this: ...

View answer
ClientScript.RegisterForEventValidation in a custom RuleAction class
Accepted answer
5 votes

Not sure if it is possible to call RegisterForEventValidation from inside RuleAction. You can try different approach. Instead of adding your values from javascript add all possible values into ...

View answer
Sitecore Publishing Service does not show the languages and seeing 404 errors
4 votes

I had the same issue, and it was because I turned on the Debug mode in Experience Explorer, and then I just closed the tab without changing back to Edit mode. After I opened Experience Explorer in ...

View answer
How to get MultiList selected items in SOLR search
4 votes

Value from your multilist field in solr will look like this: "multilistfield_sm":["c42546c15d30434b98bfa9f421165ea5", "3cf0df1b900147e88da7ab7c6fb5e236", "7185ea8a03474d95aacaf991917b7ed1", "...

View answer
Get Items by template id in a scheduled task
4 votes

If you don't want to install SPE module like @Michael West suggested, there is another way to do this. You can implement a custom class for your agent and add it to schedule with a config patch. A ...

View answer
Configuring Azure Application Insights for Sitecore 8.0
3 votes

According to the official documentation: There are two ways to enable application monitoring for Azure App Services hosted applications: Agent-based application monitoring (...

View answer
How to set the copy of Sample Workflow to items right way?
Accepted answer
3 votes

When you crated a copy of a workflow you copied all fields as well. Your workflow stores Initial workflow state and next steps in a fields. To fix it, go to your new workflow and update fields. ...

View answer
Unable to view message in Sitecore 7.2 ECM
2 votes

Version Note: This answer applies to EXM 3.5 or Sitecore 9.X only. You can configure EXM.RendererUrl in the Sitecore.EmailExperience.Core.config config file. In case the setting is empty, the ...

View answer
Moving whole Sitecore instance to another location using Sitecore 8.2.7
Accepted answer
2 votes

Change location of your Web folder on IIS and also update the path to a Data folder. It is configured via dataFolder variable. You can use patch file to udpate it: <configuration xmlns:patch="...

View answer
Effective way to resolve the EventQueue, CPU and memory load related issue
2 votes

You can optimize memory usage by enabling Sitecore Interning. To do this enable this two settings: <setting name="Interning.Enabled" value="false"/> <setting name="Interning....

View answer
Improve image compression using Dianoga
2 votes

Dianoga by default uses tools that offer lossless images compression. For example, for JPEGs, it uses the jpegtran tool. However in my recent project, after lossless Dianoga compression, Google's ...

View answer
How to Copy complete site from Production Slot to Staging slot in Azure PaaS?
2 votes

In our case we do this like this: Generate deployment package (with the fix) Deploy it to staging slot Test it on staging stot Swap the slots Test on live again So we do not copy manually any files ...

View answer
Should we source control Sitecore modules?
2 votes

The question is similar to the question: "should we source control NuGet packages". I'm on a 'add to source control' camp here. I've experienced a situation where NuGet package was removed from nuget ...

View answer
How to convert .update package into Sitecore Package or SCWDP package?
1 votes

According to documentation: You can use a Sitecore module ZIP package or a Team Development for Sitecore .update package and convert it into an equivalent .scwdp.zip package that is compatible with ...

View answer
Need to open a particular pdf file on sitecore link
1 votes

One possible solution is to create a new template _MediaHeaders with a checkbox field Content Disposition Inline: and extend File template with it: Then you have to overwrite MediaRequestHandler in ...

View answer
Securing the Sitecore client on a single server setup with CDN
Accepted answer
1 votes

You can setup CDN normal way, but block access to the /sitecore on the CDN level. Then add subdomain like cms.example.com that points to the same server but without CDN. And you can setup ip ...

View answer
Experience Editor Error - ExperienceEditor.getPageEditingWindow is not a function
Accepted answer
1 votes

I had exactly the same issue. In my case, it turned out that we had an old version of sitecore\shell\client\Sitecore\ExperienceEditor\ExperienceEditor.js file. After I replaced it with a new one ...

View answer
Sitecore helix pattern and where to place your business logic
1 votes

Put your business logic into a Feature or Foundation layer of your solution. For example, if you have a business logic for your Website's Newsletter, then crate a Feature.Newsletter project and ...

View answer
How to copy item A to item B without loosing the ID of B?
1 votes

You can use Sitecore.Data.Managers.ItemManager.CreateItem method. There is overloaded version that takes item id: public static Item CreateItem(string itemName, Item destination, ID templateId, ID ...

View answer
Switch to Solr - getting Unknown Field
1 votes

You have to configure your schema.xml for each core. You can do that by going to Control Panel and in the Indexing tab click Generate the Solr Schema file. Sitecore will add field definitions into ...

View answer
How to use TaskDatabaseAgent out-of-the-box way?
Accepted answer
1 votes

TaskDatabaseAgent The TaskDatabaseAgent gets tasks to execute from task database which is defined in Sitecore.config file like this: <TaskDatabase type="Sitecore.Data.$(database).$(database)...

View answer
Lucene for multiple server scenario
1 votes

Lucene does work. You will get separate copy of indexes on all your severs and they would be updated seprately on each server. There are alternatives: Solr or Solr Cloud, Coveo, Azure Search

View answer
Incorrect dynamic field type for Droptree
0 votes

In your mapping model, try to add [TypeConverter] attribute like this: [TypeConverter(typeof(IndexFieldIDValueConverter))] public virtual ID YourProperty { get; set; } With that it will correctly map ...

View answer
Sitecore PAAS Redis Exception
0 votes

inst - the number of commands that have been issued in the last time slice, mgr - operation that socked manager is performing, queue - it's a number of in-progress operations, qu - the number of in-...

View answer
Reattach images to media library items after optimization?
0 votes

I would recommend implementing optimisation inside the script. So for each image, you get media stream and optimise it in memory and then reattach to the same item. For this, you can use Dianoga (...

View answer