Welcome to MSDN Blogs Sign in | Join | Help

Friends don't let friends delete their cache or cancel queue jobs

Inspired by Brian Kennemer's e-mail tag line of "Friends don't let friends assign resources to summary tasks" I thought I would get back on my soapbox about the cache and queue.  I do appreciate that there are some early bugs around custom field display that require the occasional local cache deletion - and there are a couple of rare scenarios that will leave the queue in a bad way and things need canceling.  But generally many of the situations our customers run into can be resolved without recourse to either of these actions - which can both lead to DATA LOSS!

A couple of examples from the queue:-

Project Save from Project Professional - Getting Queued

This means the data is flowing from the client cache to the server queue - and once it is all in the queue it will then be loaded into the Project Server database tables.  If the client goes away while this is happening (and this can be our fault as we don't handle Project closing very well) or the network goes down, or you hibernate your laptop as you race out of Starbucks, then the queue will just sit in this state.  If you cancel the queue job then the good data in the client cache will never see the light of day.  The correct approach is to identify from the queue where the save is coming from (the owner will display from the queue) and then get that person to re-connect their client and the getting queued should continue.  In some cases you will see the original save show as canceled but if you look in the ULS logs it will have a message along the lines of:-

PWA:http://server1/PWA, SSP:SharedServices1, User:DOMAIN\username, PSI: WinProj.PreSaveProject [T:abf8f56f-e3d1-4139-9355-55ef33aa1378][U:079d778a-2a14-455a-a52e-3141b57e75ea][S:6521e25f-5c1c-41d3-a224-7a868e161c42][D:CLIENT1\ProjConf 2][J:abf8f56f-e3d1-4139-9355-55ef33aa1378][PS_AC][3] Cancelling correlation 2439f848-3966-44b7-a645-1ff7b6914f10 as it has 1 send incomplete winproj save jobs.

which indicates the original save hadn't got very far so it cancels it from the server and starts again.  This was in fact the project that should have demonstrated this recovery at the project conference - but I didn't leave Project Professional connected to that profile for long enough (my fault - trying to present 3 hours of stuff in 75 minutes).  Another interesting tip from this queue job - CLIENT1\ProjConf 2 is the server name and the Project Server account (not user account but the "profile") used on that machine to make this queue request.

So the queue shows something like this:-

image

with the important fact that I didn't cancel anything and the save came from my client cache - and nothing was lost.

Timesheet Update - Failed and Blocking Correlation

This next example shows a couple of things - the sleeping state and that the retry does work.  As long as you fix the underlying problem.  The queue is all data driven and if the data stays the same then it will behave exactly the same.  (One definition of insanity is doing the same thing over and over expecting a different outcome - same thing with the queue).  If I submit a timesheet with administrative time then when the update is processed it puts a calendar exception in to my calendar for the non-working time.  If as a resource I am checked out then this update can go into a sleeping state (Waiting to be processed (Sleeping)) - and it wakes up every 2 minutes and tries again.  If I happen to get checked in in the meantime then all is good and the process completes.  If not then eventually it will fail.  The error shown in the queue even gives you a reasonable clue to why it failed (if you know the secret language - CICO = Check-in check-out):-

Error summary/areas:
Array
CICOAlreadyCheckedOutToYou
Queue
GeneralQueueJobFailed
Error details:

<?xml version="1.0" encoding="utf-16"?>
<errinfo>
  <array name="Array" type="System.Guid">
    <item value="079d778a-2a14-455a-a52e-3141b57e75ea">
      <error id="10101" name="CICOAlreadyCheckedOutToYou" uid="ce366c36-421b-4c47-8fa0-d68f42ba63d6" />
    </item>
  </array>
  <general>
    <class name="Queue">
      <error id="26000" name="GeneralQueueJobFailed" uid="385171b0-3ee9-4087-b308-859cb62fea53" JobUID="702e81a6-4f0e-4faf-ab78-2ab81fe60972" ComputerName="SERVER2" GroupType="TimesheetUpdate" MessageType="UpdateTimesheetMessage" MessageId="1" Stage="" />
    </class>
  </general>
</errinfo>

To recover from this error you do not need to cancel - just fix the underlying problem, which in this case was that I had my account open in Manage Users on another IE session, and then select the job and click retry.

image

This time it all works fine - even the blocked jobs can continue and other related jobs get spawned to update the reporting DB.

image

So please, please, please - deleting the local cache and canceling queue jobs should be a last resort.  There is usually a better way.

Technorati Tags: Project Server 2007

Published Friday, November 02, 2007 11:45 PM by BriSmith

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Monday, November 05, 2007 12:45 PM by James Fraser

# nice in theory...

This is great in theory, but almost all of the blocking queue jobs I run into do not fall into the above two problems:

How about a Project Publish failed and blocking at 95%? Client has been connected to the Project server with Proj Pro running for hours after the publish failed, so I know it's not a client connectivity or client disappearing problem.

I would love to retry or not delete the job, but I really have no options, that I know of. I'd be happy to learn I'm wrong...

(part of the Queue Job Error Details below for the most recent instance of this failure. I've seen this on a couple of different servers.)

error id="23000" name="ProjectPublishFailure" uid="512ab003-062b-4800-b00a-2fc0c9d19ca7" projectuid="417dfaa4-e157-49ba-8bd3-3520fabbb5b5" messagetype="Microsoft.Office.Project.Server.BusinessLayer.QueueMsg.ConflictResolutionMessage" messageID="180" stage="" blocking="Block"

Tuesday, November 06, 2007 10:59 AM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Great feedback James, and I agree that there certainly isn't a one size fits all.  

The publish jobs are less of a risk to cancel as in fact there is no data to lose - and the client really plays no part in the publish apart from making the request (once the data is saved).  When you request a publish the queue job contains no real data (nothing gets "enqueued" - there is no real payload) but just a record requesting that the draft data be copied to the published database (in simple terms). Failure at 95% in this case probably relates to a data error and I would suggest turning up the ULS logging to Verbose for the queue and then search for SRA in the logs after the failure. I'm guessing an issue with Summary Resource Assignments.  In some cases errors like these can be resolved by cancelling (nothing to lose) then delete the project from the published store ONLY (Server Settings, Delete Enterprise Objects) and then re-publish. But again - no silver bullet, we build up a set of resolutions as we come across different failure modes.

Brian.

Wednesday, March 12, 2008 6:12 PM by Kevin F

# re: Friends don't let friends delete their cache or cancel queue jobs

I have two projects that were created in Project 2003 and managed through Project Server 2003.  I saved the files locally and converted them in Project 2007 Professional.  When I initially saved and published the projects, I was successful.  When users submit changes to tasks, I can approve them.  However, I can't publish the changes.  Through Project Server 2007 I just receive a message indicating that there were errors.  When I try to publish the changes through Project Professional, I receive a 23000 error.  The only solution I can seem to find is to completely delete the projects and recreate them.  I've done that three times with no success.  I would really appreciate any help with this problem.  Thanks.

Wednesday, March 12, 2008 6:29 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Kevin,

It would help to know what the errors are.  If they keep coming back are you starting from the same template?  Does it happen with new projects from 2007?  One thing that can cause this issue is blank lines right under a summary task - but without detailed error messages from the ULS logs I can't tell if this is the problem for you.  Also some of these types of issues are resolved in SP1 and the post SP1 rollup hotfix - so best to get updated to these if you haven't already.  Both for the client and the server.

Best regards,

Brian.

Thursday, March 13, 2008 3:17 PM by Kevin F

# re: Friends don't let friends delete their cache or cancel queue jobs

Brian, Thanks very much for your assistance.  We're actually experiencing a couple of issues related to Project Server 2007.  But specific to the publishing problem, the following XML message that is generated when I try to publish changes to the project plans.  Thanks again for your help.

---

<?xml version="1.0" encoding="utf-16"?>

<errinfo>

               <general>

                               <class name="">

                                               <error id="23000" name="ProjectPublishFailure" uid="f7c183d3-04f0-4077-be0f-fe11d13995a3" projectuid="a86562d5-e459-4cb1-bdda-ac69e476aece" messagetype="Microsoft.Office.Project.Server.BusinessLayer.QueueMsg.CheckWssSiteExistsMessage" messageID="8" stage="" blocking="DontBlock"/>

                               </class>

                               <class name="Queue">

                                               <error id="26000" name="GeneralQueueJobFailed" uid="33b82d22-f628-4ddc-a50f-ab9004ced3f1" JobUID="9383f36f-37a4-4a16-bc4d-6d03ca3f51bc" ComputerName="SFGSHAREPOINT1" GroupType="ProjectPublish" MessageType="CheckWssSiteExistsMessage" MessageId="8" Stage=""/>

                               </class>

               </general>

</errinfo>

Thursday, March 13, 2008 4:18 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Kevin,

You would need to look at the ULS logs in c:\program files\common files\microsoft shared\web server extensions\12\logs (default location) to get more information.  See my posting on the logs at http://blogs.msdn.com/brismith/archive/2006/12/14/finding-your-way-around-the-sharepoint-logs.aspx. The 23000 and 26000 errors are just generic "queue job failed" messages - but seem to be poiting to problems with checking the existence of the WSS sites.

Best regards,

Brian

Friday, March 14, 2008 2:55 PM by Kevin F

# re: Friends don't let friends delete their cache or cancel queue jobs

Brian,

Thanks for the additional information.  I will check out the logs and see what I can find.  Thanks again.

Kevin

Monday, March 17, 2008 1:09 PM by Kevin F

# re: Friends don't let friends delete their cache or cancel queue jobs

Thanks for the follow up Brian.  We installed both service packs and I manually recreated the project plans that came from Project Server 2003.  Those two events seemed to resolve both issues we were experiencing.  Thanks again for your help.

Kevin

Friday, March 28, 2008 6:07 PM by Kevin F

# re: Friends don't let friends delete their cache or cancel queue jobs

Brian,

I have had many problems opening projects in Professional 2007 through Server 2007.  The problem is related to editing a project from the server through Professional 2007.  It doesn't seem to hand checkout rights back to the server.  What strikes me is that the only way to fix the issue is by clearing my local cache.  Any thoughts?

Thanks.

Kevin

Saturday, March 29, 2008 2:44 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Kevin,

If you have SP1 and the post SP1 rollup hotfix applied (Client and Server) and have started with a new cache (creating another account with the Start, Microsoft Office, Office Office Tools, Microsoft Office Project Server Accounts) will acheibe this - you can use the same details, just a different name for the account) then hopefully you should not be seeing this issue still.

Best regards,

Brian

Monday, April 14, 2008 1:57 PM by Dave

# re: Friends don't let friends delete their cache or cancel queue jobs

These are very good information.  However this has gotten to a point that's very frustrating.  For example, I check out a project, made some changes and saved it.  I went to publish the project and it said on the bottom that the status of checking in with 0% and the expected wait time 5s. I waited 10 minutes and the status was never changed.  I login to the PWA as admin and canceled the project on the queue. Now the Job State is 'canceled' instead of 'waiting to be processed'. From the Force Check-in, I'm not able the check in the project.  I am using microsoft office project 2007.  Why does it take a long time for a project to process?

Tuesday, April 15, 2008 11:28 AM by Kevin F

# re: Friends don't let friends delete their cache or cancel queue jobs

Dave and Brian,

We installed SP1 and the hotfix.  It worked for about a week.  Now I'm experiencing the same problem again.  I open the project through the server, which launches Project 2007 Professional.  I make changes, save them and publish them.  I close the project and it prompts me to check it back in, which I do.  I then verify on the server that the project is checked and it is.  I then examine my local cache and it also lists the project as checked in.  But when I try to open the project again--either through Project Web Access or through Project Professional 2007--I receive a message stating that I can only open the file as Read-Only because it's checked out in another instance.  All I can do is clear my cache.  Hopefully they will address this with SP2.

Tuesday, April 15, 2008 11:35 AM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Dave,

There can be a number of reasons why a process takes a while - and cancelling will not make it work any faster.  I am guessing in your case that there is an older "save" job already in the queue - so no new saves or check-ins will not work until this completes - or is cancelled.  Change the history settings to see if there are any old jobs for the same project.  Dealing with that problem should then make other things work OK.

Best regards,

Brian.

Tuesday, April 15, 2008 11:47 AM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Kevin,

I am not aware of a regression coming on this one - so would love to get some reproducible steps to make this happen.  Certainly opening from Pro v PWA will use different cache directories - so can lead to this kind of behavior.  Did you start with a brand new cache after applying SP1 + rollup hotfix?  

Best regards,

Brian.

Wednesday, April 16, 2008 5:10 PM by Kevin F

# re: Friends don't let friends delete their cache or cancel queue jobs

Brian,

Thanks for your continued assistance with this.  Yes, after we installed SP1 and the hotfix, I created a completely new account on the Project server.  The fix worked for about a week.  I feel what's contributing to this issue is accessing the site through an internal wireless connection.  I can reproduce the error on demand, using either cache.  For now, I've just been removing the one file I'm having difficulty with from local cache before opening.  Thanks.

Kevin

Thursday, July 31, 2008 3:41 PM by lsolano

# re: Friends don't let friends delete their cache or cancel queue jobs

I hace this situation....any idea???

Your ProjectUpdate job failed.Its current state is Failed.It was 100% complete.It entered the queue at 07/29/2008 12:33:33.

To get more information about the job failure, please go to Project Web Access.Select Personal Settings from the left menu.Then select My Queued Jobs.

The errors returned from the queue are as follows:

Error ID: 9133

Error ID: 26000

Detailed error below - send it to the administrator for more detailed troubleshooting.

<?xmlversion="1.0"encoding="utf-16"?>

<errinfo>

<general>

<classname="Project">

<errorid="9133"name="ProjectSchedulingEngineException"uid="dbf6c94d-9b8e-4353-b9a9-7b3d0f601a8b"exception="System.NullReferenceException:Objectreferencenotsettoaninstanceofanobject.atMicrosoft.Office.Project.Server.BusinessLayer.ProjectSchedule.Schedule()atMicrosoft.Office.Project.Server.BusinessLayer.ProjectMain.HandleProject(ProjectDataSetdataset,GuidprojectUid,GuiduserUid,StringuserName,BooleanisNew,BooleanaddColumns,ProjectLocksprojectLock,BooleanfCheckReadOnly,BooleanfCheckProtectedActuals,BooleanfAllowAddEntRes)"/>

</class>

<classname="Queue">

<errorid="26000"name="GeneralQueueJobFailed"uid="9ed5759b-bdcc-40fc-8c52-f235ed0182ca"JobUID="e7839d1d-885e-4397-9a22-9536714d2a1c"ComputerName="BCR0106PMO41"GroupType="ProjectUpdate"MessageType=""MessageId=""Stage=""/>

</class>

</general>

</errinfo>

You can do the following:

1. Try troubleshooting using the error IDs, error XML.

2. Contact administrator with your jobID (e7839d1d-885e-4397-9a22-9536714d2a1c) and error XML.

Monday, August 04, 2008 9:59 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Isolano,

What service pack and hotfixes have you loaded?  I know one hotfix has addressed that error.  I would suggest getting on to the latest hotfix and the Infrastructure Update.

Best regards,

Brian

Monday, August 04, 2008 9:59 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Isolano,

What service pack and hotfixes have you loaded?  I know one hotfix has addressed that error.  I would suggest getting on to the latest hotfix and the Infrastructure Update.

Best regards,

Brian

Monday, October 20, 2008 10:41 AM by Colby Africa

# "Friends Don't Let Friends Delete Their Cache or Cancel Queue Jobs"

I thought I would repost something Brian Smith wrote.&#160; Believe you me when I say follow his advice:

Wednesday, October 29, 2008 2:33 PM by Kevin

# re: Friends don't let friends delete their cache or cancel queue jobs

Brian,

Well it happened again.  I'm really getting tired of this.  I've been working in a project plan for several weeks.  The check-in/out and publish process has been working fine.  Then I went to open the project plan this morning and received the same annoying error message stating that I could only open the project in Read-Only mode because a previous check for this project is not complete.

When I examine my local cache, it shows the project with a status of Ready for processing.  I have SP1 and the hotfix loaded on my computer and it still happens.  I've just about had my fill of Project Server 2007.

Wednesday, October 29, 2008 2:55 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Kevin,

I am sorry you are getting frustrated by this - and I can understand why.  Does the queue show that the save and check-in worked OK in for this project?  We are working on check-in pending issues and as soon as I have some good news I will share it.

Best regards,

Brian.

Wednesday, October 29, 2008 5:15 PM by Kevin

# re: Friends don't let friends delete their cache or cancel queue jobs

Thanks for your quick response Brian.  The reason it's so frustrating is because I don't know what's happening to cause it.  If I knew that, I would just stop doing it.

It's good to hear that you are working on check-in pending issues.  Thanks again for the update.

Kevin

Wednesday, November 26, 2008 5:24 AM by Mshayeb

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi

im facing a problem with our project server , when some resources try to submit the time sheet they got the red message at the butom if the page

"While communicating with the Project Server an error occured. Check connectivity with your administrator to determine if further action is necessary. "

Then they recive this email

Your TimesheetUpdate job failed.  Its current state is Failed.  It was 0% complete.  It entered the queue at 11/26/2008 10:14:57.

To get more information about the job failure, please go to Project Web Access.  Select Personal Settings from the left menu.  Then select My Queued Jobs.

The errors returned from the queue are as follows:

Error ID: 20010

Error ID: 26000

Detailed error below - send it to the administrator for more detailed troubleshooting.

<?xml version="1.0" encoding="utf-16"?>

<errinfo>

 <general>

   <class name="User is attempting to update an assignment they do not own">

     <error id="20010" name="GeneralSecurityAccessDenied" uid="aea39d66-9024-48d5-bc76-12e93126c407" />

   </class>

   <class name="Queue">

     <error id="26000" name="GeneralQueueJobFailed" uid="fa6fac8e-8545-4733-b381-9daa53f782de" JobUID="43a712a5-0978-4660-8088-c4500040dc4d" ComputerName="SV-PSU-EPM" GroupType="TimesheetUpdate" MessageType="UpdateTimesheetMessage" MessageId="1" Stage="" />

   </class>

 </general>

</errinfo>

Then the changes never got reflected to the cubes !!!!

This is a new problem we didnt have it befor could you please help me .

Thursday, November 27, 2008 12:19 AM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Mshayeb,

The error appears to be related to an assignment update from a resource who does not own the assignment.  As this is coming apparently from a timesheet entry I assume you are using the tied mode sample - or there are some steps happening between submission of the timesheet - such as import to My Tasks?  I would check the assignment and see who the assignment owner is - and if it is incorrect then make the resource the assignment owner.  

Best regards,

Brian.

Monday, April 06, 2009 4:18 AM by Kevin Nicholas

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi we are getting a similar problem with our Timesheet returns as the system randomly rejects input after a save the timesheet status reverts from "in progress" to "processing" then to "error" and sends an error message as shown below.

sometimes you can be lucky and the change will be OK but make a second update within the same session and it will almost always fail in this way especially if adding administrative time.

Is this a server timeout problem?

Your TimesheetUpdate job failed.  Its current state is Failed.  It was 0% complete.  It entered the queue at 03/23/2009 14:30:57.

To get more information about the job failure, please go to Project Web Access.  Select Personal Settings from the left menu.  Then select My Queued Jobs.

The errors returned from the queue are as follows:

Error ID: 26000

Detailed error below - send it to the administrator for more detailed troubleshooting.

<?xml version="1.0" encoding="utf-16"?>

<errinfo>

 <array name="Array" type="System.Guid">

   <item value="d280500c-7a88-49bf-86bf-defb43e06426">

     <error id="10100" name="CICOCheckedOutToOtherUser"

uid="60844319-a39f-4833-ac6d-07fd67387a01" />

   </item>

 </array>

 <general>

   <class name="Queue">

     <error id="26000" name="GeneralQueueJobFailed"

uid="9f54c23e-4d52-4830-9f1c-a1f1d530fd49"

JobUID="8e65cb1e-04c0-4320-ae3b-bedbf7ff981d" ComputerName="AMR10SRV004"

GroupType="TimesheetUpdate" MessageType="UpdateTimesheetMessage"

MessageId="1" Stage="" />

   </class>

 </general>

</errinfo>

You can do the following:

1. Try troubleshooting using the error IDs, error XML.

2. Contact administrator with your jobID

(8e65cb1e-04c0-4320-ae3b-bedbf7ff981d) and error XML.

To turn off these notifications, go to Project Web Access, click Personal Settings on the left menu, and then click Manage My Alerts and Reminders.

>From this page, you can clear the check box for those notifications you

>no

longer want to receive.

Message from: Microsoft Office Project Server

Wednesday, April 15, 2009 6:13 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Kevin,

It doesn't look like a timeout, but possibly a clash.  The CICOCheckedOutToOtherUser message may mean it cannot update something as it is checked out.  Could be a calendar - as admin time can get inserted as a calendar exception.  The ULS logs may give more information.

Best regards,

Brian

Monday, April 20, 2009 8:45 AM by Marnus

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Brian,

I have a very strange error, related to this post. I have a user who saves her project - simply save, not publish - the save nearly immediatly gives her and "error 42" in her Project 2007 client.

When one checks the queue after this error occured, one finds that the save job is still in the "Getting Queued" state, and remains that way untill it gets cancelled.

If you check the sharepoint logs, you find something really interesting in there:

Exception occurred in method WinProj.SaveProject System.ArgumentException: An item with the same key has already been added.     at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)     at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)     at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)     at Microsoft.Office.Project.Server.BusinessLayer.WinProjUtility.P12Deserializer.AddBaselineProperty(ContainerInfo cntrInfo, Row row, Property protoProp, Int32 pid, Object propval)     at Microsoft.Office.Project.Server.BusinessLayer.WinProjUtility.P12Deserializer.ReadIntrinsicNullValuedProps(P12ContainerHeader cntrHeader, RowType rowType, Int32 intrinsicDataEndOffset, Row row)     at Microsoft.Office.Project.Server.BusinessL...

Now the thing that grabs my eye is that An item with the same key has already been added. Could it be that she had a network problem, like you explained in the post, the project save didn't quite go through and now when one tries to save it again, it recognises the key from the failed save?

How can I fix this problem?

Wednesday, April 22, 2009 12:45 PM by BriSmith

# re: Friends don't let friends delete their cache or cancel queue jobs

Hi Marnus,

There was a fix in the October CU for one specific "Error 42".  Do you have that fix loaded?  If so then this may be another variant.  One potential workaround would be to delete the project from the server then re-save (making sure you have the mpp safe beforehand).  Obviously if you have reported work through PWA you may also need to re-enter.

Best regards,

Brian.

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker