Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm having problems pushing changes from our test server to our production server. All works find except for the Dropdown List Data Types. Once the new code is deployed if you try and edit a page all these dropdowns have no values in them. Even if I try add a new page the lists are still empty. When I edit the data type all the values are still there as before.
Does anyone have any ideas what could be causing this issue? I've also tried setting preserve="true" and dataTypes="false".
I'm using Umbraco 7.1.4 and 2.4.3.
Take a look at the generated usync file for that datatype looks like its not writing out properly, I had issue with data type grid on initial save it wrote file, i then added fields and saved however the updates did not appear so i was on my target getting blank. So i removed the usync file then clicked save again so it generated new file with all the data then deployed and it all worked.
Hi, I can't quite remember (i'll have to have a look at the code) but there has been an issue with pre-values not getting written out when the datatype save event fires (the umbraco save event fires before the pre-values are saved).
Some versions of uSync have a delay in them when saving datatypes (they wait around 3-4 seconds before saving) to capture these changes, but i can't rembember which version thats in (sorry)
goodnews is that the save event issue is fixed in umbraco. 7.2.2.
Edit: in uSync 2.4+ you can set a WaitAndSave="true" in the datatypes section of the uSyncSettings.config to make it wait (although the default should be true)
if you look in the usync config file for this datatype, it would be good to know if it has the values in it?
Yes my config file does have WaitAndSave="true" in it.
This doesn't sound likely to be my issue though. It's not that these datatypes are being changed frequently and the latest changes are not going through. These lists have fixed values which have been the same since I started working on the project several months ago. Do you think it's worth trying to save them all again and then try to deploy?
yeah and i would be looking at the configs for them in /usync/DataTypeDefinition and seeing if the pre-values are in those files - if they are not then uSync will delete the prevalues from the target site because it will think they don't exsit anymore.
Thanks I'll try that. The strage thing is that the values were not actually deleted. When editing the data type in the Developer section the values are still there. It's just when editing a page in the Content section that they are not.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted