Deleted tasks in PWA

S

Shane

We use 2002 version. If I go into MS Project and remove a resource from a
task, when that resource looks at his/her tasks in PWA, the task is still
there, it just has an X next to it. Is there a setting that can be made in
PWA so that deleted tasks will just not show up in any views?
Thx
 
D

Dale Howard [MVP]

Shane --

There is no specific setting to force cancelled tasks to not show up in the
PWA timesheet. Therefore, you should probably teach your people how to
select a cancelled task and click the Hide button. Hope this helps.
 
B

Boris Key

I wrote some time ago about the same issue. This behaviour of MSP is really
inconvenient. So I had to find a solution and I found it. It assumes you
have access to MS SQL server, hosting your MS Project data.
------------

Hello!

Many of us surfer from issue on user's timesheet and resourse assignment
views, then "dead" tasks are always there (with X sign on the left). It
become when you reassign tasks to another resourse or delete it.

Looking on some advice here and with help of MS doc Pjsvrdb.htm, I prepared
small SQL script, which delete such kind of dead tasks (do not really know
to whom they may be useful)

delete from MSP_WEB_ASSIGNMENTS
where WASSN_ID IN (
select ma.WASSN_ID from MSP_WEB_ASSIGNMENTS ma
join MSP_WEB_PROJECTS mp
ON ma.WPROJ_ID = mp.WPROJ_ID
join MSP_WEB_RESOURCES mr
ON ma.WRES_ID = mr.WRES_ID
where
ma.WASSN_DELETED_IN_PROJ <>0
-- AND mp.PROJ_NAME like '25713%' --uncomment it for specific project
)

To make it automatically and to lose headache about it forever, you may
create scheduled job in MS SQL server to run this query every night or more
often

To see list of such tasks you may run next query:

select ma.WASSN_ID, mp.PROJ_NAME, ma.TASK_NAME,mr.RES_NAME, * from
MSP_WEB_ASSIGNMENTS ma
join MSP_WEB_PROJECTS mp
ON ma.WPROJ_ID = mp.WPROJ_ID
join MSP_WEB_RESOURCES mr
ON ma.WRES_ID = mr.WRES_ID

where
ma.WASSN_DELETED_IN_PROJ <>0

order by 1


to delete projects for specific project manager:

delete from MSP_WEB_ASSIGNMENTS
where WASSN_ID IN (
select ma.WASSN_ID from MSP_WEB_ASSIGNMENTS ma
join MSP_WEB_PROJECTS mp
ON ma.WPROJ_ID = mp.WPROJ_ID
join MSP_WEB_RESOURCES mr
ON ma.WRES_ID = mr.WRES_ID
join MSP_WEB_RESOURCES mrp
ON ma.WRES_ID_MGR = mrp.WRES_ID
where
ma.WASSN_DELETED_IN_PROJ <>0 AND
mrp.RES_NAME = 'Boris Tyukin'
)



I tested this trick on our server. Projects looks good after that and were
not corrupted

Hope this helps someone
 
E

Elvira

Hello Boris,

Does this also work for 2003?

Boris Key said:
I wrote some time ago about the same issue. This behaviour of MSP is really
inconvenient. So I had to find a solution and I found it. It assumes you
have access to MS SQL server, hosting your MS Project data.
------------

Hello!

Many of us surfer from issue on user's timesheet and resourse assignment
views, then "dead" tasks are always there (with X sign on the left). It
become when you reassign tasks to another resourse or delete it.

Looking on some advice here and with help of MS doc Pjsvrdb.htm, I prepared
small SQL script, which delete such kind of dead tasks (do not really know
to whom they may be useful)

delete from MSP_WEB_ASSIGNMENTS
where WASSN_ID IN (
select ma.WASSN_ID from MSP_WEB_ASSIGNMENTS ma
join MSP_WEB_PROJECTS mp
ON ma.WPROJ_ID = mp.WPROJ_ID
join MSP_WEB_RESOURCES mr
ON ma.WRES_ID = mr.WRES_ID
where
ma.WASSN_DELETED_IN_PROJ <>0
-- AND mp.PROJ_NAME like '25713%' --uncomment it for specific project
)

To make it automatically and to lose headache about it forever, you may
create scheduled job in MS SQL server to run this query every night or more
often

To see list of such tasks you may run next query:

select ma.WASSN_ID, mp.PROJ_NAME, ma.TASK_NAME,mr.RES_NAME, * from
MSP_WEB_ASSIGNMENTS ma
join MSP_WEB_PROJECTS mp
ON ma.WPROJ_ID = mp.WPROJ_ID
join MSP_WEB_RESOURCES mr
ON ma.WRES_ID = mr.WRES_ID

where
ma.WASSN_DELETED_IN_PROJ <>0

order by 1


to delete projects for specific project manager:

delete from MSP_WEB_ASSIGNMENTS
where WASSN_ID IN (
select ma.WASSN_ID from MSP_WEB_ASSIGNMENTS ma
join MSP_WEB_PROJECTS mp
ON ma.WPROJ_ID = mp.WPROJ_ID
join MSP_WEB_RESOURCES mr
ON ma.WRES_ID = mr.WRES_ID
join MSP_WEB_RESOURCES mrp
ON ma.WRES_ID_MGR = mrp.WRES_ID
where
ma.WASSN_DELETED_IN_PROJ <>0 AND
mrp.RES_NAME = 'Boris Tyukin'
)



I tested this trick on our server. Projects looks good after that and were
not corrupted

Hope this helps someone
 
B

Boris Key

yes, Elvira. I created it especially for MSP 2003. It works more than half
an year in my company without any complains (and complains on "X" tasks ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top