on 05-07-2015 6:48 AM
sender system is sending date in this format
2013-04-22 11:13:05.000
in PI i gave the format like this yyyy-mm-dd hh:mm:ss:mmm
the same format i gave for both input and output format
in the mapping i am getting this error
Mapping "urn:xxxxxxxx" failed to execute: MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_yyyyyyy_; Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /ns0:ggggggggg/date; root message: Unparseable date: "2013-04-22 11:13:05.000"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the problem is it's working when the sender system sends in the same format
yyyy-mm-dd hh:mm:ss.SSS
however at times the sender system sends like this
2013-12-24 ::.000
then it is failing in PI..
is it possible to take it and post it like 2013-12-24 00:00:00.000
or should i ask sender system to send it in the exact format without hh mm and ss missing
Hi Midhun,
You can follow Praveen suggestio, it should work.
If you want to learn more about dateTrans function you can check this Sarvesh Singh's blog
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
PI should give the format like this to database.
yyyy-mm-dd hh:mm:ss.mmm
Thanks,
Sateesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.