Skip to Content

iOS Assistant - OData metadata parsing error

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 16, 2017 at 12:10 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded