Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 09:19
    Ismail Mayat
    0

    News not publishing

    Hello,

    I am using cmsimport 3.7.5 and for my import from csv i am setting value Autopublish to true . My record set of 111 records imports fine however the items are not published. I do not see any errors in umbraco log.

    Any ideas?

    Regards

    Ismail

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 27, 2018 @ 09:24
    Richard Soeteman
    0

    Parent not published maybe? This is core cmsimport functionality that normally just works.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 09:26
    Ismail Mayat
    0

    Parent is already published, there are already a few thousand items in there that are already published. One thing to note that parent has list view although that should not make a difference?

    After import you can publish item manually that works so its not like there is mandatory data missing.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 09:31
    Ismail Mayat
    0

    Richard,

    See image attached its triggering a save and publish however the item is not published.

    enter image description here

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 27, 2018 @ 09:31
    Richard Soeteman
    0

    Should not make a difference since it's just looking at objects. But a few 1000 items in a single folder. couldn't it be the issue that it's taking a long time to pubish?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 09:33
    Ismail Mayat
    0

    It's been 20 mins and still not published.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 09:36
    Ismail Mayat
    0

    Ok so looking at the log i have

    2018-03-27 10:13:20,785 [P3628/D4/T6] INFO Umbraco.Core.Services.ContentService - Call was made to ContentService.Publish, use PublishWithStatus instead since that method will provide more detailed information on the outcome 2018-03-27 10:13:21,005 [P3628/D4/T6] INFO Umbraco.Core.Services.ContentService - Content 'ODEON Banbury' with Id '125171' could not be published because of invalid properties.

    However when i publish item manually it does publish mandatory properties have been filled in.

    Regards

    Ismail

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 27, 2018 @ 09:41
    Richard Soeteman
    0

    Hi Ismail,

    Could be that the UI is updating the model with correct data when opening the UI. Any idea which property could cause this? If it's a custim property type maybe use a Fieldprovider to make sure the data is in a format the property editor understands. If it's a default property I would like to know which one. So I can add a Fieldprovider in CMSImport core.

    Cheers,

    Richard

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 09:52
    Ismail Mayat
    0

    So one of the properties is https://our.umbraco.org/projects/backoffice-extensions/google-maps-property-editor-w-google-places-autocomplete-lookup/ in the import we have blobbed json and it does import fine as a string into the datatype.

    The field is called mapLocation and in the csv its in as

    "{ ""coordinates"": { ""latitude"": 51.2036, ""longitude"": -1.48479 } }"
    

    It's not mandatory. In fact none of the fields are mandatory.

    Regards

    Ismail

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 27, 2018 @ 09:56
    Richard Soeteman
    0

    If the format is not ok Umbraco publishing will reject it compare property values before and after they are published in the propertydata table to see the difference that is how I would check this.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 10:45
    Ismail Mayat
    0

    Looking at records before and after publish other than formatting there is not difference. I also tried import by ignoring the map field still no joy.

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 27, 2018 @ 12:58
    Ismail Mayat
    100

    Ok sorted. So it was one of the date fields based on diplo date picker it was set to mandatory and its property was set to todays date. However I think it sets the date on load in the page and obviously we are doing things server side during import.

    So i added this field into the csv with todays date now it imports and publishes fine.

    Regards

    Ismail

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 27, 2018 @ 13:03
    Richard Soeteman
    0

    Hi Ismail,

    Great to hear. and indeed UI and server model is a bit different, great it's solved.

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft