cancel
Showing results for 
Search instead for 
Did you mean: 

CPI Message Mapping Issue with Simulate

Supreet_Sekhon
Explorer
0 Kudos
330

Hi,
I am facing the blank output when Simulating the Message Mapping. 

I am simulating the message mapping by uploading the xml file. The source fields gets populated after uploading of the file but when I click on the Test button, The target side is blank. 
Message shows that the mapping is successful but the output side turn out to be blank.
I would like your guidance on the same.  

Please refer to the screenshot attached below.


Thankyou.

 

SAP Cloud Platform, industry edition, client librariesSAP Integration Suite 
@Sriprasadsbhat @daviddasilva @gautham_krishna 

View Entire Topic
Ryan-Crosby
Active Contributor

Remove the xmlns & targetNamespace attributes in the root xsd:schema tag (you can also remove elementFormDefault & attributeFormDefault) because that is causing the message mapping to expect all xml tags in your payload to have the ns1 prefix which is why the map doesn't produce the desired output.  Changing elementFormDefault to "unqualified" almost solves the problem, but the mapping still expects the root tag to include the prefix which does not exist in your payload.

 

Regards,

Ryan Crosby

Ryan-Crosby
Active Contributor

@Supreet_Sekhon the schemaLocation attribute in the root tag AgileData is fouling up the execution of the mapping. Simulation is successful with the updates that I have mentioned and the removal of that one attribute at the root (it's causing the system to try and read that schema during execution I believe).

Supreet_Sekhon
Explorer
0 Kudos

Hi Ryan,

I made the changes you mentioned as shown below: 

My .XSD File now looks like: 

Supreet_Sekhon_0-1728408912282.png

My .xml Payload now looks like: 

Supreet_Sekhon_1-1728409384573.png

I am using this combination and still my mapping is blank at the output end. 

Can you please let me know if you are referring to this kind of change? 

Thankyou so much for your time 🙂

 

Supreet_Sekhon
Explorer

Hi @Ryan-Crosby , 

Your advice worked like a pro. The issue was firstly with the .xsd file and you recommended to remove few tags. 
Secondly, at least few of the 1:1 elements were supposed to be mapped and I was not doing so but that helped resolve the issue right away.  

I would like to thank you for helping me resolve the issue. 
I really appreciate you spending your precious time on my problem and coming out with a solution. 

It is people like you that we learn from. I am new into Integration world, and I learnt alot from you today. 

Thankyou so much 🙂

Regards

Ryan-Crosby
Active Contributor
0 Kudos
@Supreet_Sekhon you are welcome 😄