Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7445931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:10:20+00:00 2026-05-29T12:10:20+00:00

I have a problem that i’ve struggled with for a long time. This problem

  • 0

I have a problem that i’ve struggled with for a long time. This problem manifests itself in the test environment, but not in my dev environment.

I have a document library template. In a event handler I attach several content types (which all inherit from a base content type which in turn inherits from Document). The base content type has a custom document template, and event handlers defined in xmldocuments on the contenttype definition.

The Doc-ID feature is switched on in the site.

When uploading a file to the document library, the document is assigned a document ID as expected. When saving a file from Word however, the doc-ID is blank. Apparently the value is set on the item, because when changing the content type of the item afterwards, the doc-ID appears with a number indicating that it was assigned when the file was first saved. When setting the contenttype back to the original value, the Doc-ID remains displayed in the view.

To clarify: This is not the ID field of the Item content type, but the Doc-ID that is created by the doc-ID feature in SharePoint 2010.

Any ideas to why this value is not set when promoting values from Word?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:10:21+00:00Added an answer on May 29, 2026 at 12:10 pm

    It seems that the solution lied in the base Document content type in the site collection. When the document-id feature is activated, event handlers are added to the content type definition as xmldocuments. When a regular document library is created, the content type in the library inherits from this content type, and thus gets a copy of the event receivers.
    My custom document library with custom content types did not inherit from the site collection document content type, but rather from the base document content type (0x0101), and did not get a copy of the event receivers.
    Copying the xmldocuments into my base content type seems to do the trick.

    <XmlDocuments>
            <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/events">
              <spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">
                <Receiver>
                  <Name>Document ID Generator</Name>
                  <Synchronization>Synchronous</Synchronization>
                  <Type>10001</Type>
                  <SequenceNumber>1000</SequenceNumber>
                  <Assembly>Microsoft.Office.DocumentManagement, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
                  <Class>Microsoft.Office.DocumentManagement.Internal.DocIdHandler</Class>
                  <Data>
                  </Data>
                  <Filter>
                  </Filter>
                </Receiver>
                <Receiver>
                  <Name>Document ID Generator</Name>
                  <Synchronization>Synchronous</Synchronization>
                  <Type>10002</Type>
                  <SequenceNumber>1001</SequenceNumber>
                  <Assembly>Microsoft.Office.DocumentManagement, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
                  <Class>Microsoft.Office.DocumentManagement.Internal.DocIdHandler</Class>
                  <Data>
                  </Data>
                  <Filter>
                  </Filter>
                </Receiver>
                <Receiver>
                  <Name>Document ID Generator</Name>
                  <Synchronization>Synchronous</Synchronization>
                  <Type>10004</Type>
                  <SequenceNumber>1002</SequenceNumber>
                  <Assembly>Microsoft.Office.DocumentManagement, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
                  <Class>Microsoft.Office.DocumentManagement.Internal.DocIdHandler</Class>
                  <Data>
                  </Data>
                  <Filter>
                  </Filter>
                </Receiver>
                <Receiver>
                  <Name>Document ID Generator</Name>
                  <Synchronization>Synchronous</Synchronization>
                  <Type>10006</Type>
                  <SequenceNumber>1003</SequenceNumber>
                  <Assembly>Microsoft.Office.DocumentManagement, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
                  <Class>Microsoft.Office.DocumentManagement.Internal.DocIdHandler</Class>
                  <Data>
                  </Data>
                  <Filter>
                  </Filter>
                </Receiver>
              </spe:Receivers>
            </XmlDocument>
          </XmlDocuments>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(I have a problem that I illustrated in this question but had no correct
this is my regex for digital dnumbers: \d+(.\d+)+(,\d+) but now i have problem that
I have this problem that I probably understand but don't know how to handle,
I have problem that seems to be rather trivial but I was not able
I have a problem that I have not seen addressed in this particular way
i have a problem that i can't solve ! (sqlite3, but i think it
I have a problem that I thought I knew how I can fix, but
I have this problem that is driving me insane. I have a project to
I have a problem that I have not managed to solve. I developed a
I have a problem that seemed quite trivial to me, but since hours I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.