Copied to clipboard

Flag this post as spam?

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


  • Shane 40 posts 193 karma points
    Feb 17, 2015 @ 11:37
    Shane
    0

    Problems with Dropdown List Data Types

    Hi,

    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.

    Thanks

  • Ismail Mayat 4330 posts 9335 karma points MVP 2x admin c-trib
    Feb 17, 2015 @ 12:29
    Ismail Mayat
    0

    Shane,

    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.

    Regards

    Ismail

  • Kevin Jump 1486 posts 9550 karma points MVP 3x c-trib
    Feb 20, 2015 @ 15:03
    Kevin Jump
    0

    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? 

  • Shane 40 posts 193 karma points
    Feb 21, 2015 @ 11:53
    Shane
    0

    Hi Kevin,

    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?

    Thanks

  • Kevin Jump 1486 posts 9550 karma points MVP 3x c-trib
    Feb 21, 2015 @ 13:28
    Kevin Jump
    0

    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. 

  • Shane 40 posts 193 karma points
    Feb 22, 2015 @ 09:08
    Shane
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft