Microsoft Knowledge Base Email Alertz

The data of the primary key column is not in the Data View of a SharePoint list when you export a table in Access 2007

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 926524 - Last Review: November 16, 2007 - Revision: 2.1

The data of the primary key column is not in the Data View of a list in Windows SharePoint Services 3.0 when you export a table in Access 2007

SYMPTOMS

You export a table from Microsoft Office Access 2007 to a list in Microsoft Windows SharePoint Services 3.0. When you do this, the original data of the primary key column is not in the Data View of the list.

This issue occurs when the data type of the primary key column of the Access 2007 table is one of the following data types:
  • Number
  • AutoNumber

CAUSE

This issue occurs because Access 2007 exports the data of the primary key column to a new hidden _ID column. By default, the _ID column is not added to the Data View of the SharePoint list.

RESOLUTION

To resolve this issue, add the hidden _ID column to the Data View of the SharePoint list. To do this, follow these steps:
  1. Connect to the Windows SharePoint Services 3.0 Web site that contains the exported table.
  2. In the View All Site Content pane, click Lists.
  3. Click the SharePoint list that contains the hidden _ID column.
  4. Click Settings, and then click List Settings.
  5. In the Views section, click All Items.
  6. In the Columns section, click to select the Display check box of the _ID column, and then click OK.

MORE INFORMATION

When Access 2007 exports the primary key column data of a table to a SharePoint list, a new primary key column is created. The new column is assigned the name "ID" and the AutoNumber data type. The original primary key column is assigned the name "_ID," and is not assigned the AutoNumber data type.

When the table is exported, each record is assigned a new unique key value in the ID column of the new SharePoint list. The original data of the primary key column is moved to the hidden _ID column. Therefore, the export process can be confusing, because the primary key column names are switched and because the original primary key column data is hidden.

For more information about how to export a table or a query to a SharePoint site, visit the following Microsoft Office Online Web site:
http://office.microsoft.com/en-us/access/HA012303141033.aspx (http://office.microsoft.com/en-us/access/HA012303141033.aspx)
For more information about how to add, to set, to change, or to remove the primary key, visit the following Microsoft Office Online Web site:
http://office.microsoft.com/en-us/access/HA100140991033.aspx?pid=CH100645681033 (http://office.microsoft.com/en-us/access/HA100140991033.aspx?pid=CH100645681033)
For more information about how to modify the columns in a Data View, visit the following Microsoft Office Online Web site:
http://office.microsoft.com/en-us/sharepointdesigner/HA100978911033.aspx?pid=CH100667641033 (http://office.microsoft.com/en-us/sharepointdesigner/HA100978911033.aspx?pid=CH100667641033)

APPLIES TO
  • Microsoft Office Access 2007
  • Microsoft Office SharePoint Designer 2007
  • Microsoft Windows SharePoint Services 3.0
Keywords: 
kbtable kbexport kbdatabase kbexpertiseinter kbtshoot kbprb KB926524
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate