cancel
Showing results for 
Search instead for 
Did you mean: 

CX_SY_CONVERSION_NO_DATE_TIME exception

Louenas
Product and Topic Expert
Product and Topic Expert
0 Kudos

hello,

I have a problem using this service.

http://erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_empltimeeventerpcrtrc/version2?sap-client=800&...

if you try it on the Web navigator you get the exception below.

http://sr.esworkplace.sap.com/webdynpro/dispatcher/sap.com/tcesiespwsnavui/WSNavigator

CX_SY_CONVERSION_NO_DATE_TIME:XSLT exception.An error occurred when deserializing in the simple transformation program /1SAI/TXSAC09CA5318AB7CD2E251.Value yyyymmdd.... is not a valid date in accord with the XML format for ABAP

can you help please?

Accepted Solutions (0)

Answers (3)

Answers (3)

Louenas
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks, I'll try that.

Louenas

Former Member
0 Kudos

Since there were some details missing from the description, I'll add the steps that help us in our problem:

1. Start sproxy

2. Open the service interface

3. Go to external view tab

4. Expand the port, operation and input and for each xsd:datetime element do the following

5.In ABAP attributes change the Techn. Type from XSDDATETIME_Z to XSDDATETIME_ISO

Dagfinn

Former Member
0 Kudos

Hi Dagfinn::

Can you tell me little more in details what are the next steps:

1) After going to SPROXY which Service Interface to open?

Thanks

Kalinga

0 Kudos

Thanks Dagfinn

This helped me (SAP Release 731)

I got the cx_ai_system_fault error: „SOAP:1.027 SRT: Serialization / Deserialization failed" when running a call to the Service Consumer Proxy. In transaction STR_UTIL I saw the error:  "Value 0001-01-01T00:00:00 is not a valid date with time in accordance with the XML format for ABAP"

I fixed the problem as you descibed except I went to transaction SE80 / Enterprice services / Service Consumer.

Eyjolfur



Former Member
0 Kudos

We send & receive a timestamp through webservices, we had the same problem with that format, with timestamps,.

This is because this format is abap format XSDDATETIME_LOCAL, but its not selectable in sproxy when altering the field.

To be able to select it, you can add it yourself:

Put a breakpoint in program

SAPLSPRX_UI

FORM get_extintview

on statement:

IF lv_act_Tab = sesi_tab_extview

( = line 76 of include LSPRX_UIF12 in our system).

Now, in SPROXY, select the field which should be  XSDDATETIME_LOCAL.

Debugger pops up.

in  table

GT_DYN_FIELD_ATTR  take record with NAME = GS_EXTINTVIEW-OBJECT-ATTR_DT-R3_DATATYP_T

(the one having LISTBOX_VALUES entries)

and add entry to the LISTBOX_VALUES with values

XSDDATETIME_LOCALXSDDATETIME_LOCAL

now you can select it in the sproxy

select it and activate it.

Now you have correct datatype.

Former Member
0 Kudos

Hi Dagfinn,

I also have the same issue. In my case I tried the steps you mentioned. for me UTCCRTEATED_DATE_TIME is of type xsd:string and Techn. Type is STRING. I my program I changed all and dates variables to string and tired. Still I am getting the same exception.

Can you please suggest some solution.

Thanks

Arvind Patel

Former Member
0 Kudos

hi,

the XML representation of date is 2009-02-23, datetime is 2009-02-23T21:03:45Z.

anton

Louenas
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

This problem is caused by some types interoperability issues between the Date implementation in the backend and the date given by the client. The Date in the backend is TIMS in this case which takes only YYYY-MM-DD format. SAP will certailly cohis issue tthis very shortly.

Louenas

0 Kudos

Hi,

I solved same error by creating again the webservice and checking the name mapping box in the wizard. I hope this help you.

Ruben

Former Member
0 Kudos

hello,

i have the same problem.

the following error is occured:


SOAP:1,001 CX_SY_CONVERSION_NO_DATE_TIME:XSLT Exception aufgetreten.Im ST-Program /1SAI/TXS5533120238E001CD0CCB ist bei der Deserialisierung ein Fehler aufgetreten..Der Wert 20090223145008 ist kein gültiges Datum mit Zeit gemäÃu0178 des XML-Formats für ABAP.