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.
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.
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?
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.
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.
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.
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.
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
Parent not published maybe? This is core cmsimport functionality that normally just works.
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.
Richard,
See image attached its triggering a save and publish however the item is not published.
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?
It's been 20 mins and still not published.
Ok so looking at the log i have
However when i publish item manually it does publish mandatory properties have been filled in.
Regards
Ismail
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
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
It's not mandatory. In fact none of the fields are mandatory.
Regards
Ismail
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.
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
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
Hi Ismail,
Great to hear. and indeed UI and server model is a bit different, great it's solved.
Cheers,
Richard
is working on a reply...