Copied to clipboard

Flag this post as spam?

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


  • Damien (Slipoch) 62 posts 346 karma points
    Mar 13, 2017 @ 03:13
    Damien (Slipoch)
    0

    Member types not being generated by model builder

    I added a bunch of fields to my member type. Umbraco will not regenerate the model now, just produces an error telling me to check the u log.

    I checked the log in the db and nothing. I checked the txt log files and got the following information below, which had no model problems, I also tried generating from the models builder on the dev tab and it did not throw any errors but also did not regenerate the member model.

    --edit--

    Initially it would not show any form of error message, I changed to livedll model mode and this is what I got:

    2017-03-13 16:28:28,371 [P11112/D4/T13] ERROR Umbraco.ModelsBuilder.Umbraco.LiveModelsProvider - Failed to generate models.
    Umbraco.ModelsBuilder.Building.CompilerException: Duplicate 'PublishedContentModel' attribute
       at Umbraco.ModelsBuilder.Building.Compiler.ThrowExceptionFromDiagnostic(IDictionary`2 files, Diagnostic diagnostic) in X:\Projects\Umbraco\ModelsBuilder\Zbu.ModelsBuilder\Umbraco.ModelsBuilder\Building\Compiler.cs:line 154
       at Umbraco.ModelsBuilder.Building.Compiler.Compile(String assemblyName, IDictionary`2 files, Stream stream) in X:\Projects\Umbraco\ModelsBuilder\Zbu.ModelsBuilder\Umbraco.ModelsBuilder\Building\Compiler.cs:line 131
       at Umbraco.ModelsBuilder.Building.Compiler.Compile(String assemblyName, IDictionary`2 files, String binPath) in X:\Projects\Umbraco\ModelsBuilder\Zbu.ModelsBuilder\Umbraco.ModelsBuilder\Building\Compiler.cs:line 79
       at Umbraco.ModelsBuilder.Umbraco.ModelsBuilderBackOfficeController.GenerateModels(String modelsDirectory, String bin) in X:\Projects\Umbraco\ModelsBuilder\Zbu.ModelsBuilder\Umbraco.ModelsBuilder\Umbraco\ModelsBuilderBackOfficeController.cs:line 134
       at Umbraco.ModelsBuilder.Umbraco.LiveModelsProvider.GenerateModels() in X:\Projects\Umbraco\ModelsBuilder\Zbu.ModelsBuilder\Umbraco.ModelsBuilder\Umbraco\LiveModelsProvider.cs:line 103
       at Umbraco.ModelsBuilder.Umbraco.LiveModelsProvider.GenerateModelsIfRequested(Object sender, EventArgs args) in X:\Projects\Umbraco\ModelsBuilder\Zbu.ModelsBuilder\Umbraco.ModelsBuilder\Umbraco\LiveModelsProvider.cs:line 82
    

    I presume it is getting hung up on models that already exist?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Mar 13, 2017 @ 11:13
    Dave Woestenborghs
    0

    Hi Damien,

    Models build is able to generate models for members. Does your member type have the same alias perhaps as one of your content types ?

    That could be the issue ?

    Dave

  • Damien (Slipoch) 62 posts 346 karma points
    Mar 14, 2017 @ 22:01
    Damien (Slipoch)
    0

    it's interesting, I can use the updates to the models when I make them editbale by the user.

    Model generation still fails though.

    I had the same thought as you and I went through everything and no other node has the same value. Maybe I have a property somewhere.

Please Sign in or register to post replies

Write your reply to:

Draft