Lost links to content control fields


I'm a Word user (not a programmer). I've been using the CCT for Word 2007 to link XML data from about a dozen separate files to several hundred content control fields in a Word 2007 document. I'm running into some bewildering (perhaps buggy?) behavior that seems related to saving the Word document from the CCT. Although the CCT interface still shows all the data links to the various content control fields, when I quit the CCT and open the Word document from Word 2007, only those fields most recently saved from the CCT are filled in. The rest have lost their former content. When I dig down into the XML content fields for the Word document itself (a tedious process!), I see that the links indeed appear to have been lost. My only theory about this at this point is that the tool (although displaying the links correctly in its interface), rewrites the entire Word document with only the newly added XML links, losing all the links added at earlier session(s). I don't know if this is by design, or a bug, or a flaw in the design of the CCT.

Has anyone encountered similar problems? Is there a solution? Workaround? Am I doing something wrong here to cause this? Any help is greatly appreciated.


file attachments

Closed Jan 4, 2010 at 7:51 PM by mrscott
Closing due to no repro.


mrscott wrote Apr 11, 2008 at 2:08 PM

sajeanp - please upload or send me the document so that I may debug.

wrote Apr 15, 2008 at 5:01 AM

sajeanp wrote Apr 16, 2008 at 12:05 AM

Thanks for getting back to me so quickly. Unfortunately, I can't send you the document in question (proprietary information). I noticed that most of the XML files I was linking to failed to declare a schema. I've been working on fixing this but can't yet tell if this is making any difference in the Word document. Certainly, it hasn't helped the linked data to reappear (but I haven't yet relinked things, saved and then reopened to see if anything works better).

Also, after digging around in the Word ML more, it now appears that I was mistaken about the links being deleted in Word. They do indeed appear to be there, just not displaying their data.

Would lack of a schema cause such behavior? If so, it would help if the tool had a warning message of some kind. Or if the user documentation had some information about troubleshooting.

I'll see if I can figure out how to create a dummy document that displays the same behavior and then send that to you. Would you need the external XML files and schema as well? I don't know how quickly I'll be able to do this, so please be patient! Thanks again.

mrscott wrote Apr 25, 2008 at 6:59 PM

You raise some good points. But to know for sure if this is a schema issue I would need to test this. I am patiently waiting for the dummy document to minimally repro the issue. If the issue repros without the XML files \ schema that would be optimal, otherwise I would need dummy XML \ schema.

Thanks for your contribution.

elsawood wrote Jun 10, 2009 at 5:33 PM

I am having the same problem. I have bound this document twice already and the same thing happens. Very few controls remain bound, while the vast majority loose their dataBinding elements. What could be the problem?

wrote Jun 10, 2009 at 5:33 PM

wrote Jan 4, 2010 at 7:51 PM

wrote Feb 21, 2013 at 11:32 PM

wrote May 16, 2013 at 11:02 AM