Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anna 16 posts 110 karma points
    May 19, 2022 @ 08:56
    Anna
    0

    Element type not generated with models builder

    Hello!

    I have an element type that I need to use in a Nested Content property.

    However when I generate the models with models builder, the model for the element type is not generated, resulting in a build error.

    The Element type: enter image description here

    The Document type that uses the nested content proerty: enter image description here

    The build error comes because the faqQuestion element type is not generated: enter image description here

    Is there some setting or something that needs to be done so that also the element types get generated? Hope somebody can help me.

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    May 19, 2022 @ 09:16
    Nik
    101

    Hey Anna,

    Are you sure the model isn't being generated? Or is it that the file isn't being included in your Visual Studio project?

    Depending on how your project is set up, it's very possible that new model files aren't being automatically included so it's worth double checking.

    Thanks

    Nik

  • Anna 16 posts 110 karma points
    May 19, 2022 @ 10:00
    Anna
    1

    Aah, face palm!

    That was it! It wasn't included in the project, but hidden :)

    Thank you :)

    Anna

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    May 19, 2022 @ 11:50
    Nik
    0

    No problem, the amount of time I've lost to that same issue is absolute madness! :-D

Please Sign in or register to post replies

Write your reply to:

Draft