Copied to clipboard

Flag this post as spam?

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


  • Jeremias 53 posts 278 karma points
    Dec 19, 2017 @ 07:44
    Jeremias
    0

    NullReferenceException during Import

    Hi!

    I work with the CMS Import 3.7.3. Now I tried to import some data as contet. After asign the fields from the CSV to the content properties, I get the following ErrorMessage:

     [NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
       Umbraco.Core.Persistence.<Query>d__74`1.MoveNext() +436
       CMSImportLibrary.Helpers.DataHelper.GetPreValueByDataTypeDefinitionId(Int32 , Int32 ) +134
       CMSImportLibrary.TypeExtensions.PropertyExtensions.GetPreValue(PropertyInfo pt, Int32 index) +133
       CMSImportLibrary.AdvancedSettingControls.Controls.MNTP.UComponentsMNTPControl.IsMedia(String documentAlias, String propertyAlias) +60
       CMSImportLibrary.AdvancedSettingControls.Controls.MNTP.UComponentsMNTPControl.OnInit(EventArgs e) +46
       System.Web.UI.Control.InitRecursive(Control namingContainer) +139
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +185
       System.Web.UI.ControlCollection.Add(Control child) +86
       CMSImportLibrary.UIControls.ProperyMapping.PropertyMapping.() +124
       CMSImportLibrary.UIControls.ProperyMapping.PropertyMapping.OnLoad(EventArgs e) +32
       System.Web.UI.Control.LoadRecursive() +59
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +780
    

    Here the ErrorMessage in english:

    The object reference was not set to an object instance
    

    Does anybody has an idea?

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Dec 19, 2017 @ 08:06
    Richard Soeteman
    0

    HI Looks like it can't read any pre values from the database. Are MNTP prevalues stored correctly? No errors when opening or save the datatype?

    Best,

    Richard

  • Jeremias 53 posts 278 karma points
    Dec 19, 2017 @ 08:21
    Jeremias
    0

    Hi! I don't fill any of the MNTP with cms-import. Only Name, Title and Text (RTE). When I save the Page via Umbraco - everything is fine :)

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Dec 19, 2017 @ 08:33
    Richard Soeteman
    0

    Saving the page is something different than MNTP ;-) MNTP prevalues is throwing the error. SO must be something related to that.

  • Jeremias 53 posts 278 karma points
    Dec 20, 2017 @ 14:30
    Jeremias
    0

    Now I have one question: Can it be, that it is, because I use the obsolete MultiNode Treepicker? Becase I used a Documenttype for the Import, which don't have this obsolete Picker. And it worked. Then I added a new MultiNode Treepicker and it also worked. But when I added a property with the old one, it crashed with the same error-message like you can see above! If the problem is the obsolete MNTP, is there a workaround?

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Dec 20, 2017 @ 14:51
    Richard Soeteman
    0

    That is strange since there is nothing changed in for the legacy picker. So I am affraid this is something that is changed in the latest umbraco version.

    But why are you using legacy instead of the new pickers?

    Best,

    Richard

  • Jeremias 53 posts 278 karma points
    Jan 15, 2018 @ 08:02
    Jeremias
    100

    Hi,

    I went through all DataTypes and save them. Now the mostly "pre-value"-warning disappeared in the log. And the import worked!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies