Problem with bulk duplicating documents in another language

Hello community,

I have a long list of documents that I want to copy over to other locales. I have 6 total locales, and about 50 documents... which is a lot of boring manual work. I'm following this guide to try and bulk duplicate documents into other languages, but I run into two issues:

  1. "The document already exists for this lang within the group"

  2. "Unable to locate or analyze image" - even though when I search the url in my browser, I do find it.

By deleting the document in the target language, I can solve 1. Though I shouldn't have to do that, according to the guide.

Does anyone have a solution for this?

1 Like

Hey Sam, Welcome to the community forum!

If you're following the guide step by step then, at first glance, I'm not sure what the problem could be.

We can try and solve this together, you can send me in a private dm the URL of your repository and the zip file with the imported documents. That way I can reproduce the error on my side :star2:

Hey @Paulina :wave:

@sam1 and I work together and were looking at this yesterday. I can DM you with those now.

Hi @Paulina – have you received the files that my colleague @sean has sent you? :slight_smile:

[Update] A related issue causing errors was related to how SVGs were imported. Heres the article were we talk about this in detail.

What's happening is that, we changed the way we're handling SVG files and for security reasons we had to move that file extension away from using the Imgix integration. This featured added editing parameters at the end of the image URLs, and now they have to be removed for SVGs, like your file with the ID of: X0a1_hAAACgARqRb in the image:

https://images.prismic.io/commercial-helios/ac3c4588-fec2-46fa-99f2 03e1facfb3a6_CITY+PANTRY.svg?auto=compress,format&rect=0,0,333,194&w=667&h=388

You'll need to remove the ?auto=compress,format&rect=0,0,333,194&w=667&h=388 part.

We're currently working on developing a new feature that will come next year that includes bulk actions!
This will come in handy when trying to make this sort of changes in a repository.

This issue has been closed due to inactivity. Flag to reopen.