on 01-19-2016 5:18 AM
Hi All,
I am trying to Decrypt the file in PI by using Decryption module. I am getting the below error.
Error while sending message: Cannot send message to module processor com.sap.aii.af.lib.mp.module.ModuleException
Error: com.sap.aii.adapter.xi.routing.RoutingException: Unable to parse XML message payload to extract operation
below is my configuration details. Please help me in resolving this. I need this bit urgent.
Hi Gayathri
It might be the decrypted payload does not match your service interface definition. Make sure the root node of the decrypted XML payload is the same as the name of the message type used in the service interface.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eng,
Thanks for your quick Reply.
Can I ask the business user to send the xml file. I have one more doubt here the file which they placed in directory will be in Decrypted format right, how can I check the content whether it is matched to my Service interface root node.
Appreciate your quick reply.
Thanks,
Gayathri.
Hi,
Yes you may ask the XML file which business has encrypted and check if the XML is fine by putting it in message mapping , the file which business has placed in server is in PGP encrypted format ..OR another workaround take that encrypted file only then use some online tool to decrypt it using your private key and password.
Br,
Manoj
Hi Eng,
I have done the complete scenario and it is working for me. When it comes to real interface I am facing the error. Unfortunately due to sensitive data she was unable to send the file to me.
I got the below reply from the user:
what I can see it has always been sent as a comma delimited file. The only change is that I encrypted the file before placing the file onto our SFTP server.
Could the issue be that there is only a linefeed at the end of reach record instead of a carriage return/linefeed?
Suggest me how to proceed further on this.
Thanks,
Gayathri.
Hi Gayathri,
If the user is stating that the file is comma delimited then that means you would need to use the MessageTransformBean in the same way you would setup the FCC for a regular file channel to get it into the necessary XML format. Once you have that in place then your system will be able to recognize the message and route it appropriately.
Regards,
Ryan Crosby
I dont know whether repeated lines will come or not, but above is my source structure I should able to Decrypt it.
Sample Data is as below.
this is a dummy test file from Pilar Burg on the MGTI Data Transfer Team at Marsh/Mercer this is a dummy test file from Pilar Burg on the MGTI Data Transfer Team at Marsh/Mercer this is a dummy test file from Pilar Burg on the MGTI Data Transfer Team at Marsh/Mercer this is a dummy test file from Pilar Burg on the MGTI Data Transfer Team at Marsh/Mercer this is a dummy test file from Pilar Burg on the MGTI Data Transfer Team at Marsh/Mercer
Out put should come in the above format.
Gayathri,
i would suggest for safer side better you change the structure i.e include all your fileds under one header node records with this you can handle multiple as well as single line item .
Once done then include MTB module after your PGPdecrytpion module then convert the incoming CSV ( hoping as it is , delimited ) and convert to XML.
Br,
Manoj
hi,
gayathri, are you using fcc with sftp channel, if yes can u send the fcc configuration screenshot.
in case you do use fcc and cant give screenshot just replace fcc with messageTransformbean. in the below order-
1. pgpdecryption
2. mtb
3. callsapadapter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gayathri,
Generate private and public keys and encrypt and decrypt the data online tools are available.
For example : iGolder
using above online free PGP Key generator tool decrypt your encrypted data using private key and check that data match your service interface definition or not.
I am also facing same above mentioned issue because of mismatched data.
Regards,
Guruprasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guru,
I did a POC internally in my Development system for both Encryption and Decryption. I have generated source file with Encrypted data in one interface and I used the same data as input file and tried to debug it and it worked successfully. When it comes to my actual Requirement I am still facing the error.
I asked Business user to send the file as it was sensitive data she was unable to send it to me.
And she has replied one line:
what I can see it has always been sent as a comma delimited file. The only change is that I encrypted the file before placing the file onto our SFTP server.
Could the issue be that there is only a linefeed at the end of reach record instead of a carriage return/linefeed?
Could you help with her inputs.
Thanks,
Gayathri.
Hi Gayathri,
Request you to decrypt the file sent from the business and drop the file on to a temporary FTP folder using file receiver channel and see what is the actual content.
Based on this actual content develop your interface, such that it matches the structure and you will not receive the Unable to parse XML error.
Regards,
Nitin
Hi Nithin,
As part of this Interface, I have done one more POC where no ESR part in present.
Only by creating ICO i am trying to achieve this. I have placed one encrypted file in PI internal server ans was trying to decrypt with PGP Decryption Module.
I am facing the below error in PI.
Note: I am using the same server public key for encrypting.
Appreciate your quick reply!
Thanks.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.