on 07-25-2016 11:37 PM
Guys,
I have a requirement to send success emails after transferring file from app server to SFTP. I used the below 2 methods
1. Created Comm channel to send E-mail, Added this in Integrated Configuration after the file transfer. It triggers no matter what the interface is success or failure.
2. I tried creating 2 Receiver Agreements, added them in both Receiver & Interface Determination. It still does not work. I am getting an error saying "Missing or Invalid Receiver Agreement".
- Created 1 Receiver Agreement(RA) from file to SFTP and the other for file to Mail.
In Interface Determination, Added source as File and Receiver as SFTP. Added SFTP and Mail in receiver interfaces.
Not sure where i am making the mistake. Any suggestions would be appreciated.
Thanks,
Kumar
Hi Kumar,
This requirement can be achieved in 2 ways.
Approach1: As suggested by other, create 2 separate scenarios. File to SFTP with Archive/Ack file and then in the second scenario pick the file and send email.
Approach2: Design only one scenario File to two receivers with EOIO. I would suggest this approach and here are the steps you need to follow.
---Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
As mentioned Nimrod it is not possible to send email after file is transfers to SFTP server as this steps happens as last step in PI and you cannot handle this at routing stage.
The alternative approach will be here to use archiving options on you local folder of file sent to SFTP server . Whenever there is file in that folder trigger an interface to send email to concerned team or people.
As per understanding archiving happens only if file transfer is successful to SFTP server..
Regards,
Yeshwanth R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nimrod,
Archiving is available in SFTP receiver channel to keep copy of processed file in local PI file server.
please refer to link below Configuring the SFTP Receiver Channel - SAP NetWeaver Process Integration, secure connectivity add-o...
Regards,
Yeshwanth
you cant carryout such process as the SFTP communication is the final step of the integration and if it fails and you are using receiver determination with additional end point ( in order to send the mail )you will be sending mail before the channel status is known to you...
The SAP monitoring concept is based on reporting errors only if they occure mostly aimed to the PI technical teams.
If a message success you wont get any alerts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Check "Maintain order at runtime" in interface determination. This will ensure that your second scenario executes only if the first one is successful.
Regards,
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Two separate scenarios you have to create.
1) Picking file and placing in SFTP.
2)File to Mail scenario.
Once files successfully placed in SFTP your file adapter will pick and send mail to respective email ids configured at mail adapter.
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Can you provide the ICO configuration screenshot?
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.