Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pipelines]

Questions about working with all the Sitecore pipelines: custom processors, patching, configuring, ...

0
votes
0answers
14 views

Where can I put my custom pipeline to be executed right before Sitecore 8.2 Data Provider? [on hold]

I've already posted this question on StackOverflow : I have some external data to be populated before the Sitecore data provider is executed. Let say I have 2 functions call external data: ...
1
vote
0answers
32 views

Custom parameters in media URL query string - Sitecore render method/pipeline

I am using Sitecore's render method to construct the query strings for image assets, but I have a small challenge parsing custom parameters into the rendered query string in the HTML. It seems that ...
2
votes
2answers
246 views

Is there a way to debug an initialize pipeline processor

I've used JeffDarchuk's EPExpressTab in an exercise to show some custom data. I've used the quick & dirty part. It worked to certain extent, since I ported the code to my solution. I have my ...
8
votes
1answer
610 views

How to avoid logging an error when aborting a pipeline

By default an error is logged when I abort a pipeline in Sitecore XC9. For example; context.Abort("Abort pipeline", context); Sometimes I want to abort a pipeline without logging an error, i.e. ...
1
vote
2answers
332 views

Stop executing remaining processor of a pipeline

Suppose i have 5 processor in a custom pipeline. I want to abort the execution of remaining processor if certain condition is satisfied in one of the processor.
1
vote
1answer
67 views

Response.Redirect in Mvc.requestbegin processor does not end response

Im doing below in mvc.requestbegin processor if (!IdentityChecker.IsUserIdentityValid(args.RequestContext.HttpContext.Request.RequestContext.HttpContext.Request) && !args.RequestContext....
3
votes
1answer
58 views

Email notifications to all subscribers when the new document is published

I want to be able to send email notifications to list of subscribed users (<500 users) registered under membership provider as soon as a new document is published to content delivery. This can be ...
1
vote
1answer
81 views

How to add renderings programmatically when another rendering is added

Which pipeline should I use when a new rendering is added in the presentation? I have a scenario to add renderings programmatically if a particular rendering is added in the item. I will write a ...
0
votes
0answers
28 views

Removing Width and Height Attributes on Images added via Rich Text Editor [duplicate]

I have used the method seen here to remove the Width and Height attributes on an image generated using the HTML Helpers in Sitecore, and it works perfectly. Is there a way to apply this same ...
6
votes
2answers
369 views

Pipelines vs Event Handlers

What is the difference between Sitecore Pipelines and a Sitecore Event Handlers for a specific event? When should we customise a pipeline and when should we add a new handler?
1
vote
1answer
118 views

Replacing 404 errors with 410 Sitecore 7.2

This may be a little broad so I'd appreciate any pointers. Is there a way to replace the typical 404 response with 410 for pages that have been deleted? Obviously I'd like to keep 404 responses for ...
4
votes
1answer
118 views

How to add custom code on workflow state change?

Is there a pipeline / event available which I can plug into to execute custom code when workflow state changes for any item?
0
votes
0answers
16 views

Sitecore query customization doesn't display the correct datasource on Experience Editor

I'm using customization to allow Sitecore query on dataSource fields of components, by adding a custom pipeline processor to mvc.renderRendering pipeline. (was following the http://sitecorepro....
4
votes
2answers
86 views

Which pipeline is used to change the workflow state internally?

We are trying to add in additional code everytime an item moves into Editing state of the workflow. When does this happen? Would I add this code on item save? Version added? Admin users usually dont ...
0
votes
2answers
75 views

Could not create object from service provider - Registering service using Dependency Injection

I have created an ItemNotFoundResolver and injected it after ItemResolver pipeline as follows : public class ItemNotFoundResolver : HttpRequestProcessor { private readonly ISitecoreEntityService ...
1
vote
0answers
36 views

What are the benefit of pipelines? [closed]

I see several cloud providers offering pipeline services - GCloud with Dataflow. I am wondering how and when to use it in an complex application architecture. It doesn't seem adapted for serving ...
3
votes
1answer
53 views

Sitecore.Pipelines.HttpRequest.EnsureServerUrl Processor very slow

I have a multi-site Sitecore instance (Sitecore 8.2), and one of the sites is very slow to load. I enabled Pipeline profiling, and saw that the httpRequestBegin pipeline is taking a large majority of ...
1
vote
1answer
173 views

URLRedirection Custom HttpRequestProcessor

I am currently trying to build 301 redirect module in sitecore9.trying to receive requested URL .will be verifying in the content tree if requested URL has redirect URL then redirect to the URL with ...
1
vote
0answers
27 views

Getting ClientSide Piplines to fire

I am on Sitecore.NET 8.0 (rev. 160115) January 15, 2016 .NET Framework 4.0.30319.42000. I am trying to follow these instructions on how to fix a fixed position navigation So, I created the Js file &...
2
votes
0answers
45 views

Encrypt zip file while uploading to media library folder sitecore 8.2

i have followed the sitecore link and create my custom processor for (Sitecore.Pipelines.Upload.Save). i have faced issues while saving all media items. it gives error on file.SaveAs(filename); ...
0
votes
1answer
32 views

Pipeline issue while installing Sitecore Commerce 8.2.1

I am trying to install Sitecore Commerce 8.2.1 with Sitecore 8.2 (initial release 160729). I am following the instruction at Sitecore Commerce SDN. After I install Commerce Server 11.4.153 using exe, ...
2
votes
1answer
104 views

How to get Sitecore Pipelines to run along with /API calls

Our team is running Sitecore 8.2 Update 4 using a traditional MVC configuration. We wrote a pipeline that will inject CORS HTTP headers into the response that are configured via an item in Sitecore. ...
1
vote
0answers
77 views

Can we use Sitecore pipeline engine when implement a “Custom Form” on Sitecore platform?

Background We are trying to implement a "Custom Form"(not Sitecore wffm) on Sitecore platform. The form is a multiple-steps form. To make it simple, let's say 3 main steps: enter personal ...
1
vote
1answer
38 views

Can a sublayout/rendering trigger the item not found pipeline?

I have a sublayout/rendering that lives on a wildcard item within the content tree. For example, at /sitecore/content/home/news/news-features/*/*/*/*. The sublayout/rendering checks an external data ...
1
vote
1answer
396 views

Dependency Injection for Sitecore pipeline processor

We are using Castel windsor for DI in our Sitecore solution. Though we haven't done any IOC registration using Sitecore pipelines, It still resolves the Controllers. I'm fine with it. But the same is ...
2
votes
1answer
65 views

How to create a new InventorySku?

I am using the IGetInventorySkuPipeline to get hold of an InventorySku object. If I get one, then I want to modify and save it and if I don't get one (for the productId I send down the pipeline), then ...
0
votes
1answer
115 views

Setting Sitecore context language / Commerce price group from cookie

Typically I would go into Global.asax.cs and add the code to set context language / culture and commerce price group / currency from a cookie (if available) in the session_start event. I see multiple ...
0
votes
1answer
120 views

Pipeline For Media Library for CD

I'm new to Sitecore and I'm looking for the details of media library pipelines in CD. I'm trying to redirect media library link based on a flag. If the flag is checked for media library item then it ...
0
votes
1answer
380 views

Programatically render nested renderings/placeholders from an item [duplicate]

I am working on programatically rendering an item to html in code. I found this question https://sitecore.stackexchange.com/a/6256/1133 which almost serves the purpose of my request, except it isn't ...
9
votes
1answer
119 views

Initialize service in pipeline to be available through one httprequest

We're using Sitecore 8.2, habitat. I have a service that I need to use throughout a full HTTP Request. This service should be instantiated once (we use dependancy injection) and then be available ...
2
votes
2answers
127 views

URL encoding in HttpRequestArgs while unit testing

I'm putting together unit tests for item resolver running under httpRequest pipeline. One of the test is checking if the item is properly resolved using display name with asian characters (Japanese). ...
0
votes
0answers
319 views

After upgrade, getting “The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called”

After completing the upgrade from Sitecore 8.1 Update 3 to Sitecore 8.2 Update 6 on accessing the launchpad, getting the below error. "Message":"An error has occurred.", "ExceptionMessage":"...
5
votes
1answer
170 views

How do I add some JavaScript at the bottom of every layout using a pipeline?

I'm wanting to add some JavaScript to the bottom of every page, but I don't want to add it to the layout(s), so I'd like a way of doing it with a pipeline (or similar). I've tried a few of the MVC ...
1
vote
0answers
302 views

Sitecore 9 httpBeginRequest pipeline reuse?

In my content delivery instance I have user information that is used in multiple componentized view renderings, which is sourced from REST services (some of this I want to pre-fill, some will be done ...
0
votes
2answers
445 views

Failed to execute datasource query System.NullReferenceException while setting Datasource on Rendering

Has anyone seen this error before or know how to solve it? 996 16:35:46 WARN Failed to execute datasource query System.NullReferenceException: Object reference not set to an instance of an ...
0
votes
1answer
28 views

Reset Existing xDB Contacts Pipeline Dynamics Plugin not resetting values on xdb

I'm using Data Exchange Framework 1.4.1 (rev. 170818) and Dynamics CRM Connect 1.4.1 (rev. 170818). The Reset Existing xDB Contacts Pipeline doesn't remove marketing lists values from the xDB ...
3
votes
1answer
85 views

What is the correct syntax to run the startEnvironmentPipeline?

This is a follow-up question to the question asked here: How do I auto-start my Commerce Minions? In the line: startEnvironmentPipeline.Run("yourminion", _nodeContext.GetPipelineContextOptions()); ...
5
votes
1answer
140 views

Getting an instance of BaseCorePipelineManager

In the Sitecore doc Configuring Federated Authentication there are instructions to generate the URL links to initiate Federated Auth -- the lines are: using Sitecore.Pipelines.GetSignInUrlInfo; /* [.....
1
vote
2answers
67 views

Context.Site is null within LinkProvider code triggered from FileSystemWatcher callback

Scenario in our Sitecore 8.1 instance is that, we have a .NET FileSystemWatcher object that is initialized in Application_BeginRequest of global.asax. When a file is dropped in the watched folder, ...
3
votes
2answers
414 views

Request processor executing multiple times per page load

I have written a custom processor in Sitecore to set the context language and country code. I am calling this processor on httpRequestBegin pipeline. The problem I am facing is that the processor is ...
0
votes
0answers
391 views

Custom routes never matched in Sitecore request execution

I followed the steps below to define custom ASP.NET MVC routes. Created a custom processor for the initialize pipeline and defined custom route in the Process method similar to the following: public ...
3
votes
1answer
223 views

How does redirecting from within an MVC.RequestBeginProcessor differ from Web Forms?

I am porting some code from Web Forms to MVC. In order to handle a case where query string parameters on the URL can change the landing page, I have added a RequestBeginProcessor to the mvc....
6
votes
2answers
86 views

Unable to get policy object when running pipeline from Startup class Config method in Commerce Engine in Sitecore Commerce 8.2.1

I created a pipeline with only one block, on the block implementation I get a Policy object, something like this: var testPolicy = context.GetPolicy<TestPolicy>(); Condition.Requires(testPolicy)...
1
vote
1answer
208 views

Handling query strings from external sources

With Sitecore 8.2 MVC, what is the best way to intercept query string parameters from external sources site wide? For example, another site will link into our Sitecore site with a URL that may ...
6
votes
1answer
462 views

Sitecore.Analytics.Tracker.Current.Session.Contact Is Null

I'm currently trying to identify a contact using Sitecore.Analytics.Tracker.Current.Session.Identify(user) and an exception keeps being thrown "this.Contact should not be null". Debugging ...
1
vote
2answers
179 views

Cannot get current item from custom GetAllowedRenderings pipelines processor

I am writing a custom GetAllowedRenderings processor, but I cannot see how to obtain the current item that I'm editing in the experience editor. There doesn't seem to be a property on the ...
1
vote
1answer
351 views

MediaRequestHandler for missing images causes errors on Content Authoring

We've implemented error handling for missing images in Sitecore like so: https://nourestani.wordpress.com/2015/05/11/error-executing-child-request-sitecore-for-404-useserversideredirect-...
4
votes
1answer
214 views

Alternatives to using custom pipelines for improved unit testability

What are common or effective approaches for making Pipelines in Sitecore unit testable? I recently updated some code to use custom pipelines and then found I could no longer unit test it :-( In the ...
2
votes
1answer
114 views

Custom Pipeline to compare Sitecore records to Dynamics CRM in DEF

I'd like to have an idea on how to compare data in Sitecore that was created by Data Exchange Framework using Dynamic CRM Connect during Synchronization. I'd like to do this by running the ...
3
votes
1answer
227 views

Data Exchange Framework delete records in Sitecore if does not Exist in Source(CRM)

Just noticed the behavior of Data Exchange Framework that it does not delete the records that is already created in Sitecore upon Synchronization and run Sync again after deleting a record in CRM. Is ...