Hello,
i have a editable table with a duration element of type Edm.Time. it has internal format like "PT11H22M33S" and consumed well from oData model. the problem occurs when value in table is being changed so i need to update via PUT request in entity. for some reason a new conversion occurs and i'm getting following error in console:
2015-09-23 12:17:47 The following problem occurred: HTTP request failed400,Bad Request,<?xml version="1.0" encoding="utf-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>CX_SY_CONVERSION_NO_DATE_TIME/67AA6842BAA80B7DE10000000A15523C</code><message xml:lang="en">Value PNaNDTNaNHNaNMNaN.NaNS does not represent a valid date/time</message><innererror><transactionid>56000D86FEB4710DE10000000A10010C</transactionid><timestamp>20150923101746.8747220</timestamp><Error_Resolution><SAP_Transaction>Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details</SAP_Transaction><SAP_Note>See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)</SAP_Note><Batch_SAP_Note>See SAP Note 1869434 for details about working with $batch (https://service.sap.com/sap/support/notes/1869434)</Batch_SAP_Note></Error_Resolution><errordetails/></innererror></error>
object before sending looks like this
but i'm getting following in /IWFND/ERROR_LOG
--batch_7438-5ae6-12cd content-type: multipart/mixed; boundary=changeset_3b18-f97c-2b89 --changeset_3b18-f97c-2b89 content-type: application/http content-transfer-encoding: binary PUT modelData(pdsnr='000000000130') HTTP/1.1 Accept-Language: EN Accept: application/atom+xml,application/atomsvc+xml,application/xml MaxDataServiceVersion: 2.0 DataServiceVersion: 2.0 Content-Type: application/atom+xml Content-Length: 720 -<a:entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:a="http://www.w3.org/2005/Atom"> +<a:author><a:category scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" term="ns.type"/> -<a:content type="application/xml"> -<m:properties><d:pdsnr m:type="Edm.String">000000000130</d:pdsnr><d:fullName m:type="Edm.String"/><d:alias m:type="Edm.String">ABCD</d:alias><d:pernr>95000104</d:pernr><d:direction m:type="Edm.String">P10</d:direction><d:ldate m:type="Edm.DateTime">2015-09-21T00:00:00</d:ldate><d:ltime m:type="Edm.Time">PNaNDTNaNHNaNMNaN.NaNS</d:ltime></m:properties></a:content></a:entry> --changeset_3b18-f97c-2b89-- --batch_7438-5ae6-12cd--
how to avoid conversion for the second time? thank you