Copied to clipboard

Flag this post as spam?

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


  • Simon Czerwinski 14 posts 107 karma points
    Dec 12, 2022 @ 12:03
    Simon Czerwinski
    0

    Usync Content version 4.1.9.1 Import Media issues

    Hi,

    I am using USync core 6.0.15.0 and uSync Content Edition with version 4.1.9.1 for Umbraco 7.15.7. I am trying to importing lost data from one Umbraco instance to another. The data is exacly the same on the versions, but one of the versions I am importing from have some new chagnges in the grid editor layout that got lost, so I am trying to recover the lost content.

    The texts, macros and all the content settings gets importen with no problem at all. I´m using Full Export and Full Import: enter image description here

    But all the media and pictures keeps getting trashed in the content files. I have not changed anything in the usync folder. I have tested implemententing new content files and remove the media mapp etc. after this issue occured. but same issue keeps coming there. All the tests does the same, it trashes the media.

    This is what it looks like inside a content page:

    enter image description here

    When I´m pressing the "pencil" to go edit the picture,

    enter image description here

    I get this error inside the media map:

    enter image description here

    And this error in the console logs.

    enter image description here

    All the media files is there in the back office with the same IDs.

    enter image description here

    I have also controlled the guid key inside the config file for this page and the config file for this media picture that is trashed. The guid and ID for the picture is the same one in the page that has the picture.

    The uSync import is also succeded with no errors: uSync Import Complete 220184ms [1067 Items 1067 Changes 0 Failures]. The Umbraco logs have no errors either.

    This is my uSync Backoffice config now:

    enter image description here

    Anyone have a fix for this? This is very urgent!

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Dec 12, 2022 @ 12:10
    Kevin Jump
    0

    Hi Simon,

    I would turn the MediaHandler on - that might be needed to make sure the media ids get updated.

    I would potentially do a clean export which the "remove action file" ticked - as the action file has deletes in it,

    it looks like they are not trashed - more likely not found, so either the mapping between ids is failing, or they are missing on the target

    it looks like the media is ending up with an id of 0 which likely means its not mapping the IDs back from the guid values correctly - so media not being synced is a possibility

    Where are the media links are they 'inside' grid elements, or at the root of the document ?


    honour bound to say here that uSync for Umbraco 7 is like Umbraco 7 in a security update only phase - so happy to help try figure out if there is a config thing, but we won't be "fixing" any issues if there was one

  • Simon Czerwinski 14 posts 107 karma points
    Dec 15, 2022 @ 13:19
    Simon Czerwinski
    0

    Hi Kevin,

    Thank you for the fast response! I think I replied to my own question and not to yours, so I write my reply again.

    I see, that could be the problem to do a clean export. But I changed the export settings now and I still gets the same problem when I´m running Full Import after the Export.

    Good point regarding the media IDs.

    The media are linked both in the root of the document type with the "Media picker" and inside the grid elements with a macro that is using "Media picker" aswell.

    What do you mean by the media not being synced? Is it the media handler who needs to be "true"? I also tried to set that to "true" inside "uSyncCore.config", but that didn´t change anything.

    There are some custom Extension classes and Html Helpers inside the project that fixes some issues with Related Links for partial views for macros. Could those Extensions cause problems with uSync maybe?

    One thing I thought could be the problem is that the media folder in using virtual patch for a server in applicationhost.config. But I get the same problem when I remove that and change the media patch to point inside the project as normal.

    Have this issue that the media getting trashed occurred at all for Umbraco 7 uSync?

    Best regards, Simon

Please Sign in or register to post replies

Write your reply to:

Draft