Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"An unexpected error has occurred." when approving, saving or submitting a Timesheet in Project Time and Expense in Business Portal


View products that this article applies to.

Symptoms

In Business Portal Project Time and Expense you might run into the following issue when Approving, Saving or Submitting a Timesheet:


An unexpected error has occurred.  Please contact your system administrator.


↑ Back to the top


Cause

Typically this error is caused by:

• A damaged Timesheet Template. Templates can get damaged if the users do not remove old/closed Projects from the Templates. Once they delete the Template it should resolve the issue.

• A timesheet or template that use Projects that no longer exist or are assigned to them.

• A security issue due to a Windows Update recently installed. 

↑ Back to the top


Resolution

Review the methods below and test in between each one:


METHOD 1: TEMPLATE- What you can do is remove the Timecard Template for the user to see if this resolves the issue: (Insert in the employee ID for the XXXX placeholder before running the script in SQL Server Management Studio against the company database.)

Delete PDK00300 where EMPLOYID='XXXX'
Delete PDK00301 where EMPLOYID='XXXX'


METHOD 2: INVALID PROJECTS - This error can also occur if you have Projects that do not exist in the System, but they exist on the users Project Template/Timesheet. Here is a script to verify this:

1. Check for Projects that are in the Timesheet Line that do not exist in GP by executing this script in SQL Server Management Studio against the company database:

select * from PDK10001 where PAPROJNUMBER not in (select PAPROJNUMBER from PA01201)


2. Verify the Projects used on Templates exist in GP:

select * from PDK00301 where PAPROJNUMBER not in (select PAPROJNUMBER from PA01201)

If you find occurrences in the above select statements these will need to be removed either from the Timesheet (go into PDK and remove the line with the invalid Project) or Delete the Timesheet Template itself. Here are steps you would need to accomplish:

1. If you find results for script #1 you will need to log into PDK Modify that Timesheet and remove the invalid Project.
2. If you find results for script #2 you will need to delete the Template and have the user create a new one. To do this you can run the following deletes:

Delete PDK00300 where EMPLOYID='XXXX'
Delete PDK00301 where EMPLOYID='XXXX'

METHOD 3: WINDOWS SECURITY - Changes to a recent security patch from Windows Updates for .NET Framework may also cause this error. This issue is a currently 
known issue due to the following security updates, and it is being further investigated.

http://support.microsoft.com/kb/2894843

http://support.microsoft.com/kb/2894844

STEPS: The temporary work-around is to uninstall these security updates for .NET Framework, and BP Time & Expense will work properly again. Below are the steps to uninstall these updates:

1. On the BP server, go to Programs and Features in the Control Panel.

2. In the left margin, click on View installed updates.

3. Review the installed updates and click to select any updates with KB2894843 or KB2894844 or KB2894847 listed.  (f you don't see any of these listed, you can roll back any recently installed updates to determine which one is causing the issue.)

4. With the update selected, then click the Uninstall button at the top.

5. Now do an IIS Reset.

6. Test in BP again and the issue should be resolved. (You should not need to reboot the BP server, but could try that if it still doesn't work.)



*Note: This article will be updated as more developments with this issue are found, or you can follow the blog article below on this issue: 

https://community.dynamics.com/gp/b/dynamicsgp/archive/2014/09/16/an-unexpected-error-has-occurred-please-contact-your-system-administrator.aspx

↑ Back to the top


More Information


Please also refer to the below KB #889754 for other possible reasons for this type of message. The KB also makes sure the user is properly configured in GP, PDK and Business Portal:

http://support.microsoft.com/kb/889754

---------------------------------------------------------------------------------
The above article was also published externally in this blog:

https://community.dynamics.com/gp/b/dynamicsgp/archive/2013/06/11/an-unexpected-error-has-occurred-when-approving-saving-or-submitting-a-timesheet-in-business-portal.aspx


↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2860634
Revision : 1
Created on : 1/7/2017
Published on : 9/17/2014
Exists online : False
Views : 304