Solved

Cannot Publish Access Database to Database Services

Posted on 2011-09-29
12
1,342 Views
Last Modified: 2012-05-12
Hi all,
I have been attempting to Publish my access database to our new installation of Sharepoint 2010 and am receiving the following error:
One or more of the site's Queries, Tables, or Macros were recently changed and failed to compile. The site is down to prevent data issues while these objects are in an invalid state.
Click here to view the errors in Microsoft Access.

When i view the table, i get only one error which is:
Compilation of 'UserInfo' failed.

This is a fairly simple database with two tables, 3 reports, 2 forms and only one uncomplicated relationship.

Any help would be appreciated.

Thanks!
0
Comment
Question by:rhenry-ez
  • 6
  • 4
  • 2
12 Comments
 
LVL 57
ID: 36815905

 Shot in the dark, but check the startup form you have specified.  Make sure it's a web form and you've specified it under the web form startup.

Jim.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36816233
Saw one article on the web that stated they missed:
"the web form under "File"-"Options"-"Current Database".
...and they referenced this link:
http://office.microsoft.com/en-us/access-help/set-the-default-form-that-appears-when-you-open-a-database-or-web-application-HA010341995.aspx?redir=0

Have any idea what "UserInfo" is?
0
 
LVL 57
ID: 36816258
<<Have any idea what "UserInfo" is? >>

 I believe it refers to the startup options, but I'm not positive.

Jim.
0
 
LVL 1

Author Comment

by:rhenry-ez
ID: 36816313
I actually rebuilt my DB from scratch and copied and pasted the data. When i did this i custom made a new web form and set the option under "current database" to auto launch that. No luck, I am thinking that "UserInfo" may be on the Sharepoint system side, maybe how they track changes is glitching?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36816413
What if you create another similar "Simpler" db, and test  that...?
0
 
LVL 57
ID: 36816429
<<No luck, I am thinking that "UserInfo" may be on the Sharepoint system side, maybe how they track changes is glitching? >>

 Possibly.  I found this:

http://kbalertz.com/983274/Microsoft-Office-Access-maintain-deleted-error-message-delete-database-table-named-Userinfo-Access.aspx

 which suggests that it's a table, but it doesn't say if it's on the Access side or the SharePoint side.

  Since you've already re-built the DB from scratch, I would think then it's something on the SharePoint side.

  Maybe try removing it completely in SharePoint and then publish again (or under another name and see if that works).

  I've played with this, but have done no real work with it yet, so this is just an educated (or un-educated?) guess.

Jim.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 1

Author Comment

by:rhenry-ez
ID: 36817386
Attempted to publish an access database with just 1 table with 1 entry. Same error.
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 36817426

 Can you try that again, but under a different login?

Jim.
0
 
LVL 1

Author Comment

by:rhenry-ez
ID: 36817606
That did it! Running Access 2010 as a farm admin caused it to public successfully.

Thanks for your help!
0
 
LVL 57
ID: 36817668
<<That did it! Running Access 2010 as a farm admin caused it to public successfully.

Thanks for your help! >>

  OK, here's the deal; SharePoint has a hidden UserInfo table that's only accessible to admins.  It seems like somehow the account you were using before is messed up or you didn't have sufficent priv to read that table.

  So we really haven't solved this yet...

Jim.
0
 
LVL 1

Author Comment

by:rhenry-ez
ID: 36892363
Interesting, the account i used first was a site admin but not a farm admin. Is there any way to test access to the userinfo table?
0
 
LVL 57
ID: 36892553
<<Interesting, the account i used first was a site admin but not a farm admin. Is there any way to test access to the userinfo table? >>

 Understand that I'm out of my league here, but I took a shot at the question because I know many are not using this yet, so you most likely were not going to get an answer.

  So short answer to your question is I don't know for sure.  Here's a description of the table:

http://msdn.microsoft.com/en-us/library/dd585246(v=office.11).aspx

  And here's a blog about the gotcha of simple un-registering and re-registering a user:

http://cakriwut.wordpress.com/2006/08/06/change-already-added-user-information-in-sharepoint/

  That blog post talks about editing the table directly, yet everything else I've seen always warns to only modify SharePoint data through the API.  So I'm not sure how risky this is.

  If you have an isolated test environment, then I'd try just deleting the record and then re-register the user and see if that works.

  If you don't have a test environment, then I would tred very carefully.  I'd first try and see if the user record can be viewed and modifed at all.  Simply re-writting it may clear up the problem.  I'd then go to the step of removing and re-adding the user, and see if that cleared it up.

  If that all failed, then I'd set up a TEST user in SharePoint, publish a DB as that user, then delete the user record with SQL and re-add.  Then see if I could still publish a DB and access the previosuly published DB.  I think you'll be able to do the former, but not the latter as it looks like SharePoint uses a GUID to track users.  But it also keeps the SID (Security ID), so that may still work.

  As I said, I'm out of my league at this point so be carefull with trying the above.

  In the meantime,  I'll post an alert to see if we can get anyone with more knowledge of SharePoint.

Jim.



0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now