关于ProjectServer调用PSI 报Error GeneralReadOnlyColumn (20005) - column TS_ACT_FINISH_DATE错的解决方案

TimesheetDataSet

Table Actuals

Row: TS_LINE_UID=‘f4b970f8-fb03-44d1-9997-cd31da42cb09‘ TS_ACT_START_DATE=‘07/29/2014 00:00:00‘

Error GeneralReadOnlyColumn (20005) - column TS_ACT_FINISH_DATE

常规

Queue:

GeneralQueueJobFailed (26000) - TimesheetUpdate.UpdateTimesheetMessage. 详细信息: id=‘26000‘ name=‘GeneralQueueJobFailed‘ uid=‘47fe2fdc-0ab6-4dfc-989e-767b242adc04‘ JobUID=‘b97052fe-4ddb-4ebd-a0ef-c49cbd833a31‘ ComputerName=‘WIN-FK1G0HEBTD3‘ GroupType=‘TimesheetUpdate‘ MessageType=‘UpdateTimesheetMessage‘ MessageId=‘1‘ Stage=‘‘. 有关详细信息,请查阅机器 WIN-FK1G0HEBTD3 上的 ULS 日志中带有 JobUID b97052fe-4ddb-4ebd-a0ef-c49cbd833a31 的条目.

原因如下:

if (actualsRow == null)

{

//WriteLog.recordLog("进?入¨?时º¡À间?表À¨ª汇?报À¡§页°3面?4");

TimesheetDataSet.ActualsRow newRow = timesheetDataSet.Actuals.NewActualsRow();

if (newRow != null)

{

newRow.TS_LINE_UID = TSLineId;

newRow.TS_ACT_START_DATE = StartDate;

newRow.TS_ACT_FINISH_DATE = StartDate.AddDays(1).AddMilliseconds(-1);

newRow.TS_ACT_VALUE = Convert.ToDecimal(workDay.ActualWork * 60000);

//newRow.TS_ACT_COMMENT = item.Comment;

timesheetDataSet.Actuals.AddActualsRow(newRow);

//TimesheetDataSet.ActualsRow actualsRow1 = timesheetDataSet.Actuals.FindByTS_LINE_UIDTS_ACT_START_DATE(TSLineId, StartDate);

//actualsRow1.TS_ACT_VALUE = Convert.ToDecimal(workDay.ActualWork * 60000);

}

}

就是因为这句话newRow.TS_ACT_FINISH_DATE = StartDate.AddDays(1).AddMilliseconds(-1);

按道理,如果员工没有特别设置,管理计划任务的计划完成时间是每天的18点,而你更改为23:59:59,这样就会涉及到修改实际完成时间的操作,而管理类任务实际完成时间是不能修改的,最终导致队列堵死报错。

 

找到原因后就好解决了:

newRow.TS_ACT_START_DATE = StartDate.AddHours(8);

newRow.TS_ACT_FINISH_DATE = StartDate.AddHours(17);

最好的是取管理类任务的计划开始时间和计划完成时间。

 

参考文献有:

http://www.msprojectnow.com/Blog/tabid/142/entryid/254/Default.aspx

http://social.technet.microsoft.com/Forums/projectserver/en-US/ac9c2f0a-633d-48bd-ba33-12e0ee515fa5/pwa-2010-timesheet-update-or-submit-error?forum=projectserver2010general

http://social.technet.microsoft.com/Forums/projectserver/en-US/d81c0661-88fe-4a74-a1f4-359e4243e5d9/pwa-2010-timesheet-error?forum=projectserver2010general

http://social.microsoft.com/Forums/ru-RU/f77ebc8b-6567-4ce2-ac6f-5848a584ca31/ps-2010-timesheet-error-on-save-error-generalreadonlycolumn-20005-column-tsactfinishdate?forum=projserv2010setup

 

关于ProjectServer调用PSI 报Error GeneralReadOnlyColumn (20005) - column TS_ACT_FINISH_DATE错的解决方案

时间: 2024-11-05 15:50:21

关于ProjectServer调用PSI 报Error GeneralReadOnlyColumn (20005) - column TS_ACT_FINISH_DATE错的解决方案的相关文章

C#调用Excel报 error CS1969: 找不到编译动态表达式所需的一个或多个类型。是否缺少引用?

转自[http://blog.csdn.net/bodybo/article/details/43191319] 程序需要读取Exel文件,有如下代码段 [csharp] view plaincopy object oMissing = System.Reflection.Missing.Value; Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Applicati

ORACLE11.2.0 SQLPLUS 报 error while loading shared libraries

mnesia在频繁操作数据的过程可能会报错:** WARNING ** Mnesia is overloaded: {dump_log, write_threshold},可以看出,mnesia应该是过载了.这个警告在mnesia dump操作会发生这个问题,表类型为disc_only_copies .disc_copies都可能会发生. 如何重现这个问题,例子的场景是多个进程同时在不断地mnesia:dirty_write/2 mnesia过载分析 1.抛出警告是在mnesia 增加dump

php调用webservice报错Class 'SoapClient' not found

原文:php调用webservice报错Class 'SoapClient' not found php在调用webservice时,报告如下类似错误: ( ! ) Fatal error: Class 'SoapClient' not found in E:/WebSrv/CI/system/libraries/WebService.php on line 17 解决方法: 打开php.ini,找到php_soap.dll , 把前面的分号去掉 ;extension=php_soap.dll

php调用webservice报错Class 'SoapClient' not found(转)

php在调用webservice时,报告如下类似错误: ( ! ) Fatal error: Class 'SoapClient' not found in E:/WebSrv/CI/system/libraries/WebService.php on line 17 解决方法: 打开php.ini,找到php_soap.dll , 把前面的分号去掉 ;extension=php_soap.dll 前提是,已经安装了 php_soap.dll php调用webservice报错Class 'So

串口总是报'Error opening serial port'

Comm1.CommName := '//./' + Trim(combx_Port.Text); 目前串口大于20  用上面方法解决的 网上也有上面方法解决如下错误的. 若是您已会应用SPCOMM且涌现10个以上的串心题目 请改一下串心名 COM1.CommName='//./com18'; 便如许减'//./'就好了我也没有晓得甚么回事....... 比方 Comm1.CommName := '//./'+ComboBox1.Text; //./com18是win] 如果你已经会使用SPCO

RMAN备份报Error occurred getting response - assuming NO response错误处理

1.一个RMAN备份脚本报错信息 Do you really want to delete the above objects (enter YES or NO)? Do you really want to delete the above objects (enter YES or NO)? "exit;" is an invalid response - please re-enter. Do you really want to delete the above objects

编译是报error: 'EVNET_COME_TO_FOREGROUND' was not declared in this scope

Compile++ thumb  : game_shared <= main.cpp jni/hellocpp/main.cpp: In function 'void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv*, jobject, jint, jint)': jni/hellocpp/main.cpp:25:10: error: 'CCDirector' has not been declared jni/hellocpp/

主库报 Error 12154 received logging on to the standby PING[ARC2]

主备网络配置存在问题 一系列报错 [[email protected] bin]# ./srvctl  start database -d devdbPRCR-1079 : Failed to start resource ora.devdb.dbCRS-5017: The resource action "ora.devdb.db start" encountered the following error: ORA-00119: invalid specification for

Jenkins使用jenkins-cli.jar进行远程调用时出现“ERROR: No such job &#39;test&#39;”的问题解决(Windows)

网上最提倡的解决办法是用SSH的key进行登录,但是我发觉Linux上非常容易实现,但是Windows压根不知道在哪里设置. 原文:https://issues.jenkins-ci.org/browse/JENKINS-12543 国外参考:http://stackoverflow.com/questions/21609589/jenkins-cli-build-on-cloudbees-no-such-job 国内参考:http://www.lai18.com/content/6214326