Skip to Content
0

iOS Assistant - OData metadata parsing error

Aug 15, 2017 at 11:55 AM

91

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member
Aug 16, 2017 at 12:10 AM
2

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.

Share
10 |10000 characters needed characters left characters exceeded