4

I have configured the sample plugins provided by SDL Tridion, please see below: Link to sample world server plugins, required login.

Everything done as suggested to deploy the plugin. Link for how to configure the world server plugins

When we are going to get emails for failures or is there any other configuration or checks needs to be done?

2

Basically there are three things that can fail (well, I am sure a computer somewhere can come up with number four that I didn't think about):

1) The plugin is not loaded

This is easy to verify - set the log to verbose and restart the TM service. In the log file should now contain an entry that will be either (assuming English logging) Loading plugin with the assembly name: X Loading the plugin from the file path: X If you do not see one of these lines identifying your plugin, there is most likely an error in the TranslationManager.xml configuration file.

2) The plugin is loaded - events do not reach it

On a development environment this is easy to check: Just attach a debugger to the Translation Manager service and let a job fail. An easy way to fail it is to have a user check out one of the components being translated. Make sure to check it out in a target publication, and do not use the same user the Translation Manager service use. You can use Retry Retrieving to clear the error and regenerate it on next retrieval attempt - this way you do not have to generate new test jobs for each test.

If you can't hook up a debugger then you can add logging information at the entry point to the event handlers.

If your event handler is not called, then check you have hotfix TT84775 or newer installed. If this is not the case, contact SDL customer support to get the hotfix.

3) The plugin is called and compose the email - no email.

If this is the case you should see the following in the log: Sending error notification email to:...

If you see this log entry then the plugin is attempting to deliver the email. The problem would then most likely be in the configuration of the SMTP server in Translation Manager.xml - or configuration on the SMTP server itself (it might not be configured to allow your server to send email). I assume you already checked the email address the email is being send to is correct :)

2
  • I can see my plugin is loaded in the log file, please see below: 2013-06-20T10:24:00 Tridion.TranslationManager.Service SendForTranslation Loading the plugin from the file path: F:\Tridion\Plugins\ErrorEmailNotifications.dll 2013-06-20T10:24:00 Tridion.TranslationManager.Service SendForTranslation Instantiating plugin: ErrorEmailNotifications.ErrorEmailNotificationsPlugin Now how we can attach a debugger to the Translation Manager service and let a job fail.? Jun 20 '13 at 10:41
  • I already outlined a way to let a job fail, if it is not clear please let me know where you get stuck. Attaching a debugger is easy if you are on the same box and have the right version of Visual Studio (I believe it needs the Pro or better but I am not sure). Just select Debug/Attach to process. If you are not on the same box, either use remote debugging (google how to do that, I can't remember all the details) or simply add a log output line at the start of the event handler - then you can see if that line is written and you do not need a debugger. Jun 20 '13 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.