cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Create Sales Orders Error while parsing an XML stream

DAlpers
Explorer
0 Kudos

Within the Fiori APP “Create Sales Orders” we have a problem with creating Sales Orders. The SAP UI 5 Javascript generates a mal formed XML document for create sales order command. We receive the error “Error while parsing an XML stream”

Process in the app:

1.     Choose “Create Sales Orders” in the HOME page.


2.     Choose a customer, e.g. “TEST01”.

3.     Switch to “Products” tab and enter “P-” as search string.

4.     Choose any product and click on “Add To Cart” button.


5.     Choose the cart icon.

6.     Choose “Check Out” button.--> We get an error: “Error while parsing an XML stream”


In the Firefox web console, we found the http body for the create command.

The XML prolog <?xml version=”1.0” ?> is missing in the http body. The XML document from the web console:


<a:entry xmlns:a="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"><a:author><a:name/></a:author><a:content type="application/xml"><m:properties><d:SalesOrderSimulation m:type="Edm.String">true</d:SalesOrderSimulation><d:SingleShipment m:type="Edm.String">false</d:SingleShipment><d:PO m:type="Edm.String"/><d:RequestedDate m:type="Edm.String">20131121</d:RequestedDate><d:CustomerID m:type="Edm.String">TEST01</d:CustomerID><d:SalesOrganization m:type="Edm.String">1000</d:SalesOrganization><d:DistributionChannel m:type="Edm.String">10</d:DistributionChannel><d:Division m:type="Edm.String">00</d:Division></m:properties></a:content><a:link href="" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrderItemSet" type="application/atom+xml;type=feed"><m:inline><a:feed><a:entry><a:author><a:name/></a:author><a:content type="application/xml"><m:properties><d:Quantity m:type="Edm.String">1</d:Quantity><d:UnitofMeasure m:type="Edm.String">PC</d:UnitofMeasure><d:RequestedDeliveryDate m:type="Edm.String">20131121</d:RequestedDeliveryDate><d:Product m:type="Edm.String">P-100</d:Product><d:ItemNumber m:type="Edm.String">000010</d:ItemNumber><d:ProductName m:type="Edm.String">Pump PRECISION 100</d:ProductName></m:properties></a:content></a:entry></a:feed></m:inline></a:link></a:entry>

Here is the request data, displayed in the gateway error log:

Gateway Error Log

Do you have any idea how to fix this bug or do we have a mistake in our configuration??

Thanks for any hints!!!

Best Regards

Dominik


Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dominik,

What is SAP_BASIS SP level and Kernel patch level?

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masayuki,

We have the same issue. Has anyone found a solution to this problem?

Our SAP_BASIS SP level is 07 (release 731) and GW_CORE SP 06 (release 200).

Thanks for any hints!!!

Best Regards

Nicola

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nicola,

What is the kernel patch level?

Do you get same error with Google Chrome browser?

Regards,

Masa

SAP Rapid Innovation Group - RIG

DAlpers
Explorer
0 Kudos

Hi Masa,

the SAP GW Hub System is  SAP_Basis R 702  SP 14

Thu UI Cpmponent is UISRA017 Release 100 SP 0

THE ERP BAckEnd System ist SAP Basis R 731 L 0006

IW_BEP : R 200 L 0007

SRA017 R 600 L 0000

We have the error with Chrome, FF and Safari (OSX and iOS) as well.

Best regards

Dominik

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dominik,

You should apply SP01 for SRA017 and UISRA017.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masayuki,

Kernel SAP :  720_EXT_REL from SM51 Release Notes.

Yes, I  get the same error in Google Chrome.

I have copied the Chrome error and it is the following:

  1. POST https://80.88.161.55:48000/sap/opu/odata/sap/SRA017_SALESORDER_CREATE_SRV/SalesOrders 500 (Internal Server Error) /sap/public/bc/ui5_ui5/resources/sap/ui/thirdparty/datajs.js:17

  2. 2013-11-25 09:05:05 The following problem occurred: HTTP request failed500,Internal Server Error,<?xml version="1.0" encoding="utf-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>CX_SXML_PARSE_ERROR/001560AA0E081DEB8CA398CC1690D406</code><message xml:lang="it">Error while parsing an XML stream</message><innererror><transactionid>32A855E3BB4EF161A407BFC81CED0E9A</transactionid><errordetails/></innererror></error> -   sap-ui-core.js:41

Thanks for  your reply!!!


Regards,

Nicola


DAlpers
Explorer
0 Kudos

Hi Masa,

Thanks for your reply. The day I asked our admin if we are at the newest level was the day befor the SP was released.... and after this we just cheked all the other solution... sorry 😕

After upgrade I will give you an update.

Thanks!!!

Dominik

Former Member
0 Kudos

Hi Masayuki,

I have checked for new service pack and I have updated all the packages about this applicaiton and also the other ones.

After the update the Create Sales Order app works! Good! But now Track Shipments doesn't work

(Uncaught TypeError: Cannot read property 'length' of undefined ListBase.js:31)

and Track Sales Order app works incorrectly because there are areas where the application doesn't load

information even if are present.

Do you have any idea how to fix this bug or do we have a mistake in our configuration??

I should open a new task?

Thanks for any hints!!!

Best Regards

Nicola

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nicola,

Are you working on same project with Diminik? If not create new thread.

Regards,

Masa

SAP Rapid Innovation Group - RIG

DAlpers
Explorer
0 Kudos

Hi Masa,

Thanks a lot - now everything looks working and we already installed SP03 🙂

Dominik

Former Member
0 Kudos

Thank you so much Masayuki, now i will open a new thread.

Nicola

Answers (0)