srakatogether.blogg.se

Mypublisher technical error
Mypublisher technical error







“If you intend to use this service in a trigger to process published documents, the input signature for this service needs to contain a document reference to the publishable document type. Here is an extract of the note at the bottom of the “webMethods Developer User Guide.pdf” on page 126: My mistake was that I was using a dummy name, eg “myEmployeeUpsertFile (OctoTargetFile.docType:employeeUpsertFileSchemaDT)” Make sure that the NAME of the input document you specified for your subscribing service is the fully qualified name of the DOCUMENT TYPE, such as “OctoTargetFile.docType:employeeUpsertFileSchemaDT (OctoTargetFile.docType:employeeUpsertFileSchemaDT)”. In my case the problem was due to the fact that I incorrectly named the input of the subscribing service: I previously encountered a similar issue. Still I feel this is a very basic problem and anyone who has used publish/subscribe should be knowing where I am going wrong. I am sorry if I have given too much details. I need to know why I am not getting the value of first name in the subscriber service. I am mapping the 3 fields (fname,lname,status) to the adapter service input and since it is null my service fails. “Copy failed: No source data available: to=/message, from=/requestDoc/TXLife/TXLifeRequest/FIRST_NAME” First I have a debuglog to check if first_name is received properly and that is where I get THe document is published to the broker and the trigger also invokes the subscriber service.

mypublisher technical error

I run the subscriber service independently and it works fine.Now I run my publisher service and check the document just before publishing it contains all the values. I have this architecture working absolutely fine for a simple document type say with 2 fields. My service just takes 3 inputs (firstname,lastname,status) and returns back the person details from an oracle database as a document which is replied back to the waiting publisher service. Now I had to write my subscriber services and triggers.For that I need the document types so I have created publishable document types from the broker document type ( PublishSubscribeDev Guide). One IS is my publisher in other words I have a flow service which receives a SOAP request and converts it to a document and provides it as input to publishAndWait.So this IS has only the publishable documents and a single service which publishes them. The PublishWithResult method on MyPublisher does what the built-in version does only without raising the publish events.Let me give you some more details.I have 2 Integration servers( IS s) and one broker. PublishResult = publisher.PublishWithResult() Now use MyPublisher instead MyPublisher publisher = new MyPublisher(publishOptions) PublishResult result = PerformPublishWithResult() Public override PublishResult PublishWithResult() Public MyPublisher(PublishOptions options, IEnumerable languages) Public MyPublisher(PublishOptions options) There is a method in the Publisher class called PerformPublishWithResult that doesn't instigate the publish events however it is protected so you'll need your own publisher class to use it. Not sure that will stop that event happening though.

MYPUBLISHER TECHNICAL ERROR CODE

Your code works for me (not much help, I know :) ) but if there is something in the publish:end event listener that is throwing the error then you could try using an EventDisabler in your code as well as the SecurityDisabler you have using (new SecurityDisabler()) I changed the publishing statement to this & it worked: Sitecore.Handle handle = PublishManager.PublishItem(sourceItem, new, publishSubItems, true) īut I would like to get the published statistics like items created/updated/skipped.

mypublisher technical error

When published manually, the item gets published.ĭo we need to modify any config setting, when publishing items programmatically. One or more exceptions occurred while processing the subscribers to PublishResult = publisher.PublishWithResult() ///exception here Item sourceItem = (sourceItemPath, targetItemLanguage) ĭatabase targetDatabase = GetDatabase(targetDatabaseName) String targetDatabaseName, bool publishSubItems) I'm using Sitecore 8.2 and trying to publish an item to 'web' like this: public static PublishResult PublishItem(string sourceItemPath, Language targetItemLanguage,







Mypublisher technical error