Tuesday, March 29, 2016

Sitecore : All about MultiList and Search

I was doing bit of R&D around implementing, writing custom multilist with search while doing my bit of research I understand sitecore has not unified the multilist with search in a way so that it can be used widely to solve problem for content author. May be there is less documentation out there where developer ends up writing custom implementation which can very well handled using right query.
Below I tried to sum up by putting some of the cool links a kind of reference to begin with.
Simple problem solved
By Raul- Nice explanation
Query Bug



Customize Multilist with search

StartSearchLocation=query:..&Filter=_latestVersion:*|-_templatename:Saved Query

By Fish Tank

Add Selected Item at top in the multilisthttp://www.bugdebugzone.com/2015/07/add-selected-item-in-multilist-at-top.html


Wednesday, March 2, 2016

Azure Webjobs with some known Facts.

Recently we successfully migrated worker role Queue jobs to Web jobs and below are the set of issues we encountered.

Special thanks to Kanivalan Raju who got this compiled.

When you deploy web jobs in azure cloud, you may come across the following errors.

Error 1
Error :Command cmd was aborted due to no output nor CPU activity for 121 seconds.


add key = "SCM_COMMAND_IDLE_TIMEOUT" value = "100000"

add key = "WEBJOBS_IDLE_TIMEOUT" value = "100000"


Error 2 : Certificate with website_load
Its important to load your certificates with this key appsetting.



Add key ‘Add WEBSITE_LOAD_CERTIFICATES’ with thumbprint values as below
X509Certificate2 certificate=null;
X509Store certificateStore =new X509Store(StoreName.My, Storelocation.CurrentUser);

Error 3: Long file name
While publishing the webjob from VS, below error occurred and publish failed

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Resolution :

As mentioned in error, make sure the path and file name of the web job not exceeds 250

Hope these resolution comes handy for folks working on similar problem statement.