Break link with external document MS Word

8

2

I'm using Word 2007. I created a massive (300 page) Word document by copy-pasting text, tables and images from various external (Word and Excel) documents. This might not have been the best way but I needed a quick sample document which I managed in the end.

The problem is, along with the text and data, some links got copied over to the new Word document too. I don't want any external links in my Word document; I want it completely separate from all the documents I copied data from. So I broke links by going to the 'Office Button' > Prepare > Edit Links to files, selected all links and clicked 'Break links'. All existing links got broken, but one remained:

enter image description here

I have NO idea what this NULL source file is and am not able to break this link. When I try to update all my fields by doing ctrl+A and F9, I get the following error message:

enter image description here

This is really frustrating, as I just cannot locate the faulty link. I've scanned through my entire (300 page) document and still couldn't find a way to locate where this 'chart' object is.

Has anyone else experienced a similar problem in Word 2007/2010? Any help on how to locate the faulty link or break it would be greatly appreciated!

prrao

Posted 2012-04-20T15:38:33.253

Reputation: 1 007

Have you tried to modify the link, save it and then remove it? Also, how about looking in the Visual Basic editor to see if you copied something there. Use Atl+F11 to access the Visual Basic editor. – CharlieRB – 2012-04-20T17:56:22.420

@CharlieRB what do you mean by "modify link"? I tried assigning some random source and then breaking it again, but that didn't work. I also accessed the Visual Basic Editor and it seems to be empty (there's nothing there that tells me an extra object is present). Any ideas? I'm perplexed – prrao – 2012-04-20T18:23:58.763

By "modify" I was thinking exactly what you tried. Other than just wanting it gone, is there any negative effect to leaving this one link? – CharlieRB – 2012-04-20T18:34:40.950

Every time I update my fields, I have to wait an additional few seconds because it takes that long for the "linked file not available" error window to pop up. The fields update perfectly fine, but the annoying faulty link window keeps appearing each time. I wish there was a way to locate the faulty object so that I could at least try manually fixing it (maybe recreate the table/figure) or something – prrao – 2012-04-20T18:42:43.563

@CharlieRB Do you know of any "field checker" similar to the spell check that can point to bad fields/cross-references? – prrao – 2012-04-20T18:43:47.213

1I don't know of a "field checker", but if my answer doesn't solve it, we can look for some VBA code to try to identify it. – CharlieRB – 2012-04-20T18:47:48.300

Answers

9

I fixed this problem relatively easily by going to to the 'Office Button' > Prepare > Edit Links to files, and selecting 'Change Source'.
enter image description here

I basically changed the source to a random blank Excel workbook within the same directory as the word document. After this, I carefully scanned through all Excel charts in my document. The faulty chart was caught red-handed and showed up as a blank Excel plot, as follows:
enter image description here

I just had to delete the chart and the link automatically broke.

SUMMARY: Break all links, find that there is one NULL source (or many) in the document, and then specify a pseudo-source Excel sheet. Only the chart with the external link shows up as a blank chart. All correctly copied charts that are clean (not linked to the external workbook) have no such issues.

prrao

Posted 2012-04-20T15:38:33.253

Reputation: 1 007

Great job documenting what you found. This will undoubtedly be helpful to others. – CharlieRB – 2012-04-24T15:13:25.013

5

This thread seems to describe a very similar problem : NULL Source file in my template.

Q: my template appears to have a link to a source file that when looking at File/Info/Links to Files shows a NULL source file and its name is CHART.

A: Found it was a pie chart linked to an Excel spreadsheet - deleted the pie chart and bingo link removed

One way to search your document is to do Find (Ctrl-F), "Go To" tab, and search for a chart object. For example :

image

harrymc

Posted 2012-04-20T15:38:33.253

Reputation: 306 093

That link doesn't explain how the pie chart that was causing the problem was found! Also, my document has no pie charts. All it has are tables (copied from Excel) and images (copied from PowerPoint) Since my document is so large is there a quick way I could pinpoint which (among hundreds of Excel tables/PowerPoint images) is causing the problem? – prrao – 2012-04-23T15:36:40.510

My guess is that you must have copied a chart without knowing it, and now it is close to invisible. I have added above one way to search for charts. – harrymc – 2012-04-23T16:43:09.513

Thanks for the tip. I used ctrl+F and looked for the chart as you showed, but no objects are present in the document!! I changed the drop-down from 'Excel Chart' to 'Any Object' and it does not find any objects in the entire document. All other entries (fields, headings, bookmarks etc.) are found with no problems. Do you think it is a bug? I've been stuck on this problem for a month. At this rate, I'd have been better off recreating the document from scratch – prrao – 2012-04-23T17:14:40.513

1This looks like a mess-up by MS. In such cases I usually try to SaveAs in an old format that doesn't have these newfangled objects. You could try to SaveAs (1) 97-2003 doc (2) OpenDocument (3) rtf (4) Works (in descending chronological order). If you get rid of the error you can SaveAs again as docx. – harrymc – 2012-04-23T17:38:00.023

Thanks! When I convert to Word 2003 (.doc) format the error vanishes since the definition of 2003 Word objects must be different. When I try to resave the file as Word 2007 however, all Word 2007 functionality is lost (even though the extension is .docx)! What am I doing wrong? – prrao – 2012-04-23T17:46:58.053

Any 2007-only functionality is lost when converted to 2003. If you need to keep it then this approach doesn't work for you. Try saving the 2007 doc in another format maybe OpenDocument. Otherwise, the only other method I can think of is binary search by deleting half of the file etc. until you find the bad spot which you can reconstruct, which is a big pain for a large document. – harrymc – 2012-04-23T18:23:03.197

Thanks a lot for the wide range of suggestions! I guess Word is doing everything it can to make life difficult for me :). I'd best just go about manually scanning and reconstructing my document rather than spend this much time searching online. – prrao – 2012-04-23T18:26:06.897

1I suggest the next round to take regular backups, because you might again copy the same bit and recreate the same link problem. Try to merge/copy without using links. – harrymc – 2012-04-23T18:36:45.037

I fixed the problem relatively easily and included it as an answer. Thanks for your help; it put me on the right track! – prrao – 2012-04-23T20:41:31.283

Using the advice by harrymc above (repeated below), I re-saved the linked 2013 doc in 2003-07. This removed the links. I then resaved again back to 2013, and checked the "maintain compatability" box. It worked - all links gone. – None – 2013-05-13T15:16:06.167

3

You can fix the NULL reference without affecting the usability of the chart in the document, but it requires some heavy lifting inside the DOCX or PPTX file. I haven't tested Excel.

  1. Make a backup copy of your file. The steps below have a real risk of rendering your file unreadable by Word/PowerPoint.
  2. Rename your file so it has a .zip extension. Example: mypaper.docx --> mypaper.docx.zip
  3. Open the ZIP file in Windows Explorer or your favorite ZIP tool.
  4. Inside the ZIP file tree, go to word\charts or ppt\charts.
  5. You will find one or more chart#.xml files representing each of your charts.
  6. Extract a chart file and open it in Notepad.
  7. Near the very end of the XML string, find the string <c:externalData r:id="rId3"><c:autoUpdate val="0"/></c:externalData>. It may have a different ID, but the tag name, <c:externalData>, is the important part.
  8. Delete the entire string.
  9. Insert the updated files back into the ZIP file. In Windows Explorer, you can simply drag it back into the charts folder inside the ZIP.
  10. Rename the file to remove the .zip extension.

When you open the file, you should no longer see a NULL link for the chart you updated. If you can't open the file, it's possible that your edits were not exactly as listed above. I've tested these steps in Word 2013 and in PowerPoint 2013.

Ethan T

Posted 2012-04-20T15:38:33.253

Reputation: 375

1Used this method with Word 2016, and it worked flawlessly. – hegearon – 2018-11-08T12:44:54.860

1

I know your document has a lot of pages, so I am hoping this will work because it's an easy fix. Hopefully the cut and paste wont choke on it.

  1. In the existing document, select all text using Ctl+a
  2. Right click and select copy
  3. Open a new document
  4. Right click and select the "Text Only" paste option.

This should paste only text (without links) into the new document.

CharlieRB

Posted 2012-04-20T15:38:33.253

Reputation: 21 303

Thanks for the suggestion, I really appreciate it. But the problem is my large document already contains tons of cross-references and hyperlinks for figures, tables and so on, so the text only option will make my life hell! – prrao – 2012-04-20T18:49:31.823

I guess the best way would be to use some VBA code to remove only external links and retain all internal links within the document. Do you happen to know of a way to do this? – prrao – 2012-04-20T18:52:29.650

Sorry. Misunderstood "I don't want any external links in my Word document" as no links at all. We'll have to look for the VBA code. – CharlieRB – 2012-04-20T18:59:41.873

I found the solution and posted it as an answer. I tried modifying the source to a blank Excel Workbook. This led me to the exact chart that was causing the problem; it showed up as a blank plot unlike the other (correctly copied) plots. Thanks for your help! – prrao – 2012-04-23T20:48:34.253

1

For me, replacing the source chart object with a blank chart did not work. The problem ended up being the fact that I was tracking all changes made in the document as part of a revision process.

If you are using track changes, a deleted chart object stays within the document, even though you can't see it anymore. This also means that the Link, NULL or not, will stay in the document, and give you those annoying warning messages if the link is broken.

The solution was to turn on visibility for all changes, find the chart deletion "change" and accept it, thus deleting the chart for good.

Ben

Posted 2012-04-20T15:38:33.253

Reputation: 11

0

FINALLY figured out a simple way to break the link!

Under the "Start Mail Merge" button, just select "Normal Word Document." I saved & closed the document and re-opened it, and this time there was no prompt about placing data from my database. The link had been broken.

Very simple to do, but it's ridiculous that Microsoft changed it so much from previous versions of Word that we couldn't find it at all.

Shireen

Posted 2012-04-20T15:38:33.253

Reputation: 1

0

I had the same problem and I fixed it by cutting every chart and pasting it back in with the correct paste option. Sometimes this didn't seem to work but repeating this procedure fixed it anyway.

huewil

Posted 2012-04-20T15:38:33.253

Reputation: 1

0

[The hard way] Follow these steps:

  • Make a copy of your file.docx: File-copy.docx
  • Open the copied file.
  • Remove the second 150 pagesand save.
  • Reopen to see if the link is in the second 150 pages.
  • If yes, make another copy of the original file and remove half of the second 150 pages.
  • Continue halving the pages to find which page the link is in.

Amin Darvand

Posted 2012-04-20T15:38:33.253

Reputation: 113

0

Once you have found which object has the null source, you can cut the object, then paste it back into the same spot.

After you paste select the drop down in the corner( "Paste Options") and select an option that does NOT link it to the original file, either of the options on the left with the red arrows under it.

screenshot

John

Posted 2012-04-20T15:38:33.253

Reputation: 1

-1

This may be helpful: The 'link'ed graphic causes the problem because Word is looking for a NULL link, and this cannot be removed from the Info/Links window. It turns out that a linked graphic is contained in a window with rounded edges. So, you might be able to find it by comparison with other graphic windows which have square windows. Fix by copying the offending graphic and then paste as 'Picture' in the Paste options.

Jan Hough

Posted 2012-04-20T15:38:33.253

Reputation: 1

How do you arrive at this conclusion? How do you know that rounded edges have anything to do with it? – user 99572 is fine – 2016-11-07T20:48:45.043