on 10-01-2015 2:57 AM
Hi Experts,
I am using Sender file adapter (PI 7.31 version with SP 05)with Message Transform Bean(MTB).
But in some cases where file is not as expected format its not picking up the file and I see Error In adapter for same reason.
In such cases I would like to trigger an Alert and it should send a mail to responsible user.
I am new to Alerts, checked few blogs but need little clear understanding, please let me know the way to configure it.
Thanks in advance..
Regards
Siri
Hi Eng Swee\all
I have added java mail client settings as per blog.
But I am not sure on restart server again after these settings ..
I just did service restart but not server, is it OK or we need to do PI server restart only?
Also I am struggling to resolve one CVS file reading issue ,could you please look into it..
Regards
Siri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
Could you please help me to complete this, I need to raise email alert if File has wrong CSV structure or any other reason where sender file adapter is not able to pick the file.
Regards
Siri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghuram,
Thanks for your reply,Could you please eloborate..
I am using MTB as mentioned above.. I need to raise mail alert if I get invalid file (which is not as per out reading rules defined by channel)in my folder.
Regards
Siri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siri
On 7.31 system you can configure CBMA to trigger email alerts on errors. The steps involved are thoroughly covered in the following blog.
You can either setup a default rule which will cover all errors for all scenarios, or a specific one to target your specific interface. Try it out and if you have further questions, let us know.
Rgds
Eng Swee
PS: Any reason to use MTB on the file channel when the File Content Conversion feature of the channel also achieves the same functionality?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for confirmation..
I followed blog advised..
Placed wrong file in folder and I am getting channel error;but in Alert Job showing follwing message and no Mail is getting triggered.
I have choosen Sender agrement in Alert Rule as my scenario is classical.
Job status is "COMPLETED" with return code "0".
How to make sure that Channel error is captured..
Job AlertConsumerJob (ID: 415c05e9680e11e5ab5e0000003d8f92, JMS ID: ID:6E92010000000F07-000000000093) started on Thu, 1 Oct 2015 15:30:14:031 by scheduler: 29c39bc0c5e911dd94440016353ceade | Info |
0 alerts had been consumed and aggregated successfully. | |
Successfully perfromed an alert consumer task at Thu Oct 01 15:30:14 2015 | |
Job AlertConsumerJob (ID: 415c05e9680e11e5ab5e0000003d8f92, JMS ID: ID:6E92010000000F07-000000000093) ended on Thu, 1 Oct 2015 15:30:14:061 |
Hi Siri
I don't think the Sender Agreement rule is the correct category to get trigger the alert.
Try File Adapter instead.
If it still does not work, I'd suggest you try it with a Default Rule first to make sure that it is able to work correctly before fine-tuning it into a specific rule.
Note that you'd need to reproduce a new channel error after you have created the new rule and all associated settings.
Rgds
Eng Swee
Hi Eng Swee,
Thanks for reply ..
Can we raise mail alert in this case with this approach or as Raghu said do we need to go for custom beans?
I have already added config like this..
and created new Task for run Alert Consumer Job in Admin.
0 alerts had been consumed and aggregated successfully
Return code "0"
status COMPLETED
but no email triggered for me.
-Channel has error for file conversion and not picking the file.
Could you please let me know where I am missing..
Regards
Siri
Siri
No you don't need custom bean if you want the alert caused by content conversion in the channel.
Not really sure why you are not getting the alert.
Can you please delete all existing configuration, tasks and alert rule? Then recreate them from scratch using Default Rule.
If it still does not work, can you share screenshot of your rule and the job definition for the consumer.
Also, can you confirm that you have configured the Java Mail Client?
Rgds
Eng Swee
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.