Solved

Cannot Publish Access Database to Database Services

Posted on 2011-09-29
12
1,374 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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
 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

803 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