Tuesday, August 14, 2018

SAP CPI/HCI Exception java.lang.IllegalStateException: Element name [] not found in provided XML schema file

Hi friend,

Although the solution for this error is quite simple but it took me 2 hours to get. sometime we did mistakes which look bit silly but what if do the right thing and issue is from other side, then we look for hit and trial method. So let me Explain the situation and the Error and How to solve this.

Issue/error:
I was configuring the simple SAP CPI converter in my simple IFLOW as below










I am using simple CSV and add it in content Modifier body.


and I am using simple XSD as below for conversion


and my CSV to XML converter Configuration is as below

As it looks all good.
But!! there is an error when I run this and got Following Exception:

"Exception java.lang.IllegalStateException: Element name [] not found in provided XML schema file" it is quite strange as it looks all good. but something is missing. :( :(


But In the end I compare with other online solution with mine and see a tiny mistake which i was missing and that was XPATH i am adding in Converter.

Actually I have added "/root/row" instead of i need to add "root/row" without First Slash...


 


Although  solution is simple but it teach me good lesson " Newer think you know , until you do it by user-self"

Regards
GB