• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Data Merge: How to un-tag images?

Advocate ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

Hey everyone, 

im stumbeling over a either totally stupid user-mistake or a decent oversight, but maybe there is a script snippet for this, here is my problem:

I used an old data-merge document, edited some text values, but preview/export won't happen because there are still old data fields…

I checked...and then I saw it: image containers are to blame and were still tagged with values "from the past". 

Bildschirmfoto 2020-05-07 um 09.08.14.png

How can I get rid of the imagecontainer-tag and keep the imagecontainer for further use? This seems to be an oversight, if there is no context-menu for that. 

TOPICS
How to

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , May 11, 2020 May 11, 2020

Hi Jan,

I spent a good deal of my weekend solving your puzzle.

What you could do but with a couple of flaws, you could remove the corresponding hyperlinks:

 

01-BeforeRemovingHyperLinks.png

 

Result:

Flaws: Placed graphic was removed as well.

One object, the square, still has a remnant, a double bracket object you can see in the Layers panel:

 

02-AfterRemovingHyperLinks.png

 

I went along and tried to write a script that is removing the dataMergeImagePlaceholders.

It turned out that object dataMergeImagePlaceholders has no method remove(). Silly, isn't i

...

Votes

Translate

Translate
Community Expert , May 25, 2020 May 25, 2020

Colin Flashman said:

"…If I have a merge where I'm having difficulty working out what fields were/weren't used, I use the hyperlinks palette to remove any error-causing links. David Blatner wrote a good piece on it here:…"

 

Hi Colin,

I discussed the issue on in private with Jan. And yes, we found the solution by either removing the links associated with the data fields or we could remove the contents with the brackets in the Layers panel.

 

But what if a user was unaware that the document origi

...

Votes

Translate

Translate
Community Expert ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

Hi Jan,

simply select the frame's contents and remove it.

 

That's very easy from the Layers Panel:

Select the graphic frame.It's contents should show up like that: []

 

DataMerge-ContentsOfGraphicFrame-ImagePlaceHolder.PNG

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

Hi Uwe, 

good to hear youre well in corona times.

 

But I think I have to disagree. As you see, i removed the "empty" content, which defines the box-content as <image> (optional <text> or <nothing>). You should notice that the box is not crossed by lines (which indicate a image box).

No image inside, no content tag as imageNo image inside, no content tag as imagelayer palettelayer palettestill <<Logo-Sonder>> cant be found in linked dm-text-filestill <<Logo-Sonder>> cant be found in linked dm-text-file

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

Hi Jan,

if you still see the placeholder you did not remove the contents of the graphic frame.

As I said, best do this in the Layers panel.

 

Contents selected:

DataMerge-ContentsOfGraphicFrame-ImagePlaceHolder-1.PNG

 

Contents removed:

 

DataMerge-ContentsOfGraphicFrame-ImagePlaceHolder-2.PNG

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

Wow, now i'm confused: My layer-palette doesnt work like yours, and only shows that image-box, and Im unable to expand any arrows in the UI. I usually still work in CC18 (because of a plugin), but I checked in CC20 too:

ScreenFlow.gif

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

Hi Jan,

that's strange…

Can you put this document on Dropbox or a similar service and share the download link?

Or do an attachment here in the forum.

 

I like to have a look later in the day.

 

Thanks,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2020 May 07, 2020

Copy link to clipboard

Copied

Another question:
Did you do already a datamerge with this document as template?

If yes, did you save the document after the merging of data was done?

 

Currently I cannot reproduce your issue.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 08, 2020 May 08, 2020

Copy link to clipboard

Copied

I cant either: I just set up a new document, and the layer-palette does like you descirbed. 

This element came from a template I used 1-2 years ago, which I took as basis, linked new file, changed text, keept boxes. This behaviour sticks while copy/pasting into fresh documents.

 

I uploaded a testfile to wetransfer, you have 24hrs to download 🙂

https://we.tl/t-EYuJQyUw8i

 

Edit: the file has 3 frames for images. Top one <<image>> i just set up freshly. The other two come from copy/pasting, one is holding a imagelink from our DAM; dont bother, that doesnt seem to be the problem as the bottom box is empty)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 08, 2020 May 08, 2020

Copy link to clipboard

Copied

Hi Jan,

just looked into your document. Strange situation indeed.

 

You can workaround the issue the following way:

Create a new data source with the two problematic datamerge image placeholders.

Or perhaps load the one you have.

 

Assign the data source again from your Datamerge panel.

Then you should see the new contents in your Layers panel with the brackets: []

If visible in the Layers panel you can also remove them.

 

This worked when using InDesign 2020.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 08, 2020 May 08, 2020

Copy link to clipboard

Copied

Thank you for investigating. Sadly the document is quite complex and full of images, also the datasource has disappeared. 

But thats not all:
As i was waiting for your reply, i marched forward, and replaced all image farmes. Mööp, same Error. So I deleted everything step by step, still throwing the error. I am down to the last text box, which is one of many similar. 
After deleting the last piece of text, the error – but all the content too – is gone. I overwrote a part of the text, but the error did dissapear after i deleted the whole paragraph.

So, even if its cleary visible that no text has << >> brackets, there still residents something evil inside.

 

I file this incedent under broken-document and move on, but interesting nontheless how that happend.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 08, 2020 May 08, 2020

Copy link to clipboard

Copied

Why did that happen? Good question.

My guess is, but I did not test this, the document was saved after doing a successful merge.

I never do this with my template documents after merging the data.

I always close them after the merge without saving.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 08, 2020 May 08, 2020

Copy link to clipboard

Copied

Ill keep that in mind, but I dont think this caused that. But we have an ace up our sleves: Ill send Colin_Flashman a link to this thread, if hes interested in the error.

 

So, lets move on, the weather outside is delightful, 2hrs to go, working…

Have a nice weekend Uwe!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Hello there. I feel bad that I'm two weeks late to this...

If I have a merge where I'm having difficulty working out what fields were/weren't used, I use the hyperlinks palette to remove any error-causing links. David Blatner wrote a good piece on it here: https://indesignsecrets.com/problem-with-data-merge-and-ghost-hyperlinks.php

There's a connection between Data Merge and hyperlinks that I've written about elsewhere: https://colecandoo.com/2018/11/17/is-this-why-data-merge-pdfs-are-throttled-back/

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 08, 2020 May 08, 2020

Copy link to clipboard

Copied

At least, we can say this behavior, the missing contents with the brackets, is not the norm.

Just opened a datamerge template document from InDesign CS5.5 with InDesign CS6 and I can clearly see the nested contents of the graphic frame with the two brackets: []

 

Have a nice weekend,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2020 May 11, 2020

Copy link to clipboard

Copied

Hi Jan,

I spent a good deal of my weekend solving your puzzle.

What you could do but with a couple of flaws, you could remove the corresponding hyperlinks:

 

01-BeforeRemovingHyperLinks.png

 

Result:

Flaws: Placed graphic was removed as well.

One object, the square, still has a remnant, a double bracket object you can see in the Layers panel:

 

02-AfterRemovingHyperLinks.png

 

I went along and tried to write a script that is removing the dataMergeImagePlaceholders.

It turned out that object dataMergeImagePlaceholders has no method remove(). Silly, isn't it?

 

That lead to further, deeper investigation of the issue. Finally I found a way.

I will not share the script in the open here. You can contact me with a private message, if you are interested.

 

Before running the script:

04-BeforeRunningScript-200509-Remove-dataMergeImagePlaceholders.png

 

The result after running the script:

05-AfterRunningScript-200509-3-Remove-dataMergeImagePlaceholders.png

 

Still, there might be some cases where the script is not working. No idea if you have other samples that look like that:

 

06-Test-15.0.3.422-Variations.indd.PNG

 

For testing the script and debugging I need the real document.

Not only three sample frames.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Colin Flashman said:

"…If I have a merge where I'm having difficulty working out what fields were/weren't used, I use the hyperlinks palette to remove any error-causing links. David Blatner wrote a good piece on it here:…"

 

Hi Colin,

I discussed the issue on in private with Jan. And yes, we found the solution by either removing the links associated with the data fields or we could remove the contents with the brackets in the Layers panel.

 

But what if a user was unaware that the document originally was prepared for data merge and already moved on placing graphics to containers that are "tagged" as dataMergeImagePlaceholders?

 

Removing the links will also remove the placed contents.

 

Oh, and it is very tedious if you want just remove the data merge image placeholders and not the ones for texts and you have hundreds of them in the document. There might be some "regular" hyperlinks there as well. For that special case I developed a script, that would remove all dataMergeImagePlaceholders and put the placed graphics back to their containers.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

LATEST

About what David Blatner said in his article about "ghost hyperlinks" at InDesign Secrets:

 

My take is: In fact the hyperlinks David is seeing as "ghost hyperlinks" are actually real hyperlinks. InDesign's data merge is built around hyperlinks! The missing link, so to say, are missing data fields in the document that would complete a given hyperlink.

 

In the moment you remove a data source from a document all your hyperlinks in the Hyperlinks panel will turn into "ghost hyperlinks" ( if no other, "normal" hyperlinks are present in the document ) . In the moment you change and update a data source and there are fields in the document that are not listed in the data source anymore you break the hyperlinks to "ghost hyperlinks".

 

Another "strange" fact:

If the data fields are positioned on master pages, the merged document will suddenly contain an XML structure. Every contents that was injected by a data field will be tagged as XML. Not only the text fields, but also the image containers and the ones for QR codes.

 

Regards,
Uwe Laubender

( ACP )

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines