Solved

LookupRecord action in Data Macros causes error in Access 2010 client but not on SharePoint

Posted on 2010-09-04
1
1,305 Views
Last Modified: 2013-11-27
I am building an application in Access 2010 that is publshed to sharepoint through Access Services. I am trying to write a simple Before Change Data Macro that looks up information from a separate table and writes it to a field in the original table.

After saving the macro, going back to the table to which it is attatched, and editing a record, I get the following error:

The Microsoft Access database engine encountered an error while communicating with SharePoint. More detailed information: 'Error executing validation macro: .'

This error seems to be present in every macro where the LookuipRecord action is used, no matter what the context.

 When I attempt to edit the data in the table directly, this error prevents the macro from performing the desired action

When the data in the table is edited through a datasheet form in the Access 2010 client, the same error is displayed. However, the macro appears to work as expected--the desired value is pulled from the lookup table and written to a field in the original table.

When that same datasheet is viewed in a browser through Access Services, the macro also appears to work as expected, except without the error.

Does anyone have an idea what is causing this error and how to fix it? Could it be a problem with my host? Here is the XML of the macro, which is attatchd the "Contacts" table and looks up to the "Companies" table:

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<DataMacros xmlns="http://schemas.microsoft.com/office/accessservices/2009/11/application">
<DataMacro Event="BeforeChange">
<Statements>

<LookUpRecord>
   <Data><Reference>Companies</Reference>
        <WhereCondition>[Contacts].[Referenced Company]=[Companies].[ID]</WhereCondition>
   </Data>
   <Statements>
      <Action Name="SetField">
         <Argument Name="Field">Contacts.Company</Argument>
         <Argument Name="Value">[Companies].[Company Name]</Argument>
      </Action>
   </Statements>
</LookUpRecord>
</Statements>
</DataMacro>
</DataMacros>

Open in new window

0
Comment
Question by:andrew_stegmaier
1 Comment
 

Accepted Solution

by:
andrew_stegmaier earned 0 total points
ID: 33632948
I've spoken with my hosting provider, and he explained that this behavior is due to a bug that Microsoft has confirmed to exist for Sharepoint 2010 when it is running in "Host Header Mode" (for multi-tenant hosting). The hotfix has apparently just been released today (9/8/2010), which should solve the issue.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
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…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

747 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

12 Experts available now in Live!

Get 1:1 Help Now