Archive: July, 2010

An error occurred in the form’s rules or code

1 comment July 12th, 2010

The error is referring to a condition limit of 16, meaning there is a hardcoded limit of 16 changes that can be performed on a field without user interaction.  This is actually a very hard limit to hit.  One field would literally have to contain over 16 conditions set within a rule for this error to occur.

The error is likely occurring in the form because a condition of a rule has been applied that is causing an infinite loop that exceeds 16 and the error described is thrown.  The customer should check for multiple “or” statements within a condition that was set on a rule.

You should attempt to change one of the “or” statements to “and” to see if the form still throws this error.  This could be occurring with any condition that is set, but seems to happen a lot when someone uses a lot of “or” statements.

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

No comments July 8th, 2010

This error seems to pop up quite often, and it’s a little frustrating when your first encounter it. When I experienced it, I was attempting to schedule a crawl from the SharePoint 2007 Search Administration. I was able to manually run full and incremental crawls but not schedule them.

The issue was actually pretty simple to resolve. Since these scheduled events are scheduled much like any other windows task, using the windows scheduled tasks, we just need to insure SharePoint has access to add new jobs in there. We’ll do this by adding WSS_WPG with read/write permissions to C:\%windir%\tasks. Follow these steps:

  1. Open CMD, and RUN attrib –s %windir%\tasks (Changes the view of the folder so you can edit the ACL permissions)
  2. In Windows Explorer, browse to C:\%windir%, right-click the Tasks folder, and then click Properties.
  3. Add the WSS_WPG group
  4. Assign Read/Write Permissions
  5. Click OK
  6. attrib +s %windir%\tasks (This resets the Tasks Property back to the default view)

Once the above has been completed you should be able to schedule a full or incremental crawl.