We’re using Umbraco 13 (Cloud) and programmatically setting images on nested block list items via the MediaService. This works correctly in our local environment. However, when we sync content to the live environment using the transfer queue, the media relation is lost.
Interestingly, if we manually set the image via the Umbraco backoffice, the transfer to the live environment works as expected.
We’ve compared the resulting JSON between programmatically and manually set images, and they appear identical — including distinct id and mediaKey values.
What could be causing the programmatically set media references to break during content transfer?
Do you have a code snippit on how you set the media in code? And when do you do this?, in a task? Or on boot? Can you tell a bit more about the functionality?
@Luuk I just tested by setting an image on root level and then transferring it, and this works as expected. However, when we set the image in a block list it does not work. Would you have any idea why this behaviour occurs? Or is this a bug
I have no idea unfortunately… the reason why I asked about the context, is that during certain migrations - like package migrations - notifications get suppressed and uSync doesnt update. But that doesnt swwm to be the case here.