cancel
Showing results for 
Search instead for 
Did you mean: 

iOS Assistant - OData metadata parsing error

0 Kudos

Hi Experts,

I'm trying to generate a simple app using OData API from SAP Business Hub. I have downloaded metadata and stored in local file and at the end of the application setuo in assistant, when I provide the file, I'm getting following error:

It seems that the given metadata is invalid.Error Domain=SAPOData Code=0 "CSDLError: Invalid identifier leading character '/' in Schema Namespace="/BAO/XC_ACCOVR_SRV". See the definition of TSimpleIdentifier in the OData EDM XML Schema (http://docs.oasis-open.org/odata/odata/v4.0/os/schemas/edm.xsd)." UserInfo={NSLocalizedDescription=CSDLError: Invalid identifier leading character '/' in Schema Namespace="/BAO/XC_ACCOVR_SRV". See the definition of TSimpleIdentifier in the OData EDM XML Schema (http://docs.oasis-open.org/odata/odata/v4.0/os/schemas/edm.xsd).}

It looks like it doesn't like the / character at the beginning of the namespace.

I'd appreciate your help!

Tomasz

Accepted Solutions (1)

Accepted Solutions (1)

Finally I've resolved this by manually modifying metadata file to make it OData grammar compliant. I've replaced namespace /BAO/XC_ACCOVR_SRV with BAO.XC_ACCOVR_SRV and did similar edits with other generated identifiers inside the definition file.

While this works, I'd assume many APIs with underlying ABAP implementation will suffer from the same issue. It would be great if the iOS Assistant tool could handle such transformations.

Answers (0)