Skip to Content

Annotation Modeler - Annotation Structure ​Cannot read property 'attributes' of undefined

Hello SAP Web IDE Team,

I'm using the SAP Web IDE Full Stack on my SCP Trial account. In the Features I've enabled the Annotation Modeler which currently shows me Version 1.31.1:

When I now clone my FioriElementsDemo Project from GitHub and try to open the annotation files with the Annotation Modeler I get the following error message:

Annotation Structure
Cannot read property 'attributes' of undefined

Running the application itself works without any issues. So I would guess the Annotation is correct as it can be interpreted by SAPUI5.

Hope for help. Perhaps Former Member can help as he did here.

Best regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 06, 2018 at 03:10 PM

    Hi Gregor,

    thanks for providing the project, this helped to find out the root cause of your problem.

    Your localAnnotations_1.xml contains the annotation property value that is not correctly defined.

    The Property Description of the annotation UI.HeaderInfo in your file contains the record of type UI.DataFieldWithNavigation,

    whereas it should contain the record of type UI.DataField instead:

    Please substitute the fragment

    <PropertyValue Property="Description">

    <Record Type="UI.DataFieldWithNavigation">

    <PropertyValue Property="Value" Path="SupplierName"/>

    <PropertyValue Property="Target" Path="SupplierName"/>

    </Record> </PropertyValue>


    <PropertyValue Property="Description">

    <Record Type="UI.DataField">

    <PropertyValue Property="Value" Path="SupplierName"/>



    And this will fix the problem.

    If you always add annotations with annotation modeler, you can avoid such problems in future.

    Hope this helps

    Best Regards,


    Add comment
    10|10000 characters needed characters exceeded