on 02-23-2013 7:38 AM
Hi All
I have requirement of reading excel file ,i chose the option of using the java mapping for the same
i built a java code using jxl.jar its working perfect when i run it in NWDS.
But when i upload it in PI as imported archive and run it in operation mapping intially it was throwing linkage error failed to load the class
but after loading the jxl.jar as one more imported archive, the error is resolved
but when i run the mapping it get executed succesfully but the xml is not getting built
Please correct me if i am wrong , the excel data which comes as stream data (looks like junk) will be executed through java mapping right.
or is there anything else which i need to do?
Regards
Sandeep
Hi Sandeep,
your questions
1. The excel data which comes as stream data (looks like junk) will be executed through java mapping right?
ans) If java mapping is the first mapping in the scenario (and you are not using FCC ) then yes your assumption is correct.
2. is there anything else which i need to do?
Ans) You wrote that in NWDS java mapping is producing result but not in PI. Now you need to add trace statement in your mapping and check the trace after exceution od each step. Test the mapping using the method described in this wonderful blog by Praveen Gujjeti. ( One small request , in case you find this blog helpful please kindly, if possible, rate the blog). Please check taget XSD properly to see if its meets xml structure as produced by java mapping.
Hope this resolves the problem.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
The input excel sheet in eclipse and to the PI server are same or different?
What is the version of the Excel you are using? Older version of jxl.jar will work only for Excel 97 version. I feel this exception can be avoided with correct version of jxl.jar as required by PI server java version.
Regards
Anupam
I concur with Anupam replay. Why dont you deal using adapter module instead of java mapping?any specific reason behind this?
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.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.