Skip to main content
The World's Best Known Brand for Microsoft Project and Project Server Expertise

Project Server Experts Community Site

Go Search
Project Server Experts Community Site
Project Server Help Blog
MSProject Experts
Training Schedule
Contact Us
  
Project Server Experts Community Site > Project Server FAQ KnowledgeBase > deletecancelledtasks  

Web Part Page Title Bar image
How do I delete cancelled tasks from each user’s timesheet?



Microsoft Project Server Frequently Asked Questions (FAQs): Overview



Microsoft Project Server Frequently Asked Questions (FAQs): Details

Background Information

When a project manager cancels a task by removing the resources assigned to the task, and publishes the changes to Project Server, each resource’s timesheet page displays a large X indicator to the left of the task name in Project Web Access. Note: Cancelled tasks also appear on the View resource assignments page in Project Web Access as well.

Resolution

Users can delete cancelled tasks from their timesheets in Project Web Access by selecting a task and clicking the Hide button on the toolbar above the timesheet grid. This approach hides the cancelled task but does not remove it from the Project Server database.

To completely remove cancelled tasks from the Project Server database, the Project Server administrator can run the following SQL Server script:

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
)

If the Project Server administrator wants to view a list of cancelled tasks before deleting them, he/she can run the following SQL Server 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

 

 

Stay Connected

Join Our
LinkedIn Network
Follow Us
on Twitter

About FAQs

Microsoft Project Server Frequently Asked Questions (FAQs) provide information about Microsoft Project Server 2002, Microsoft Project Server 2003, Microsoft Project Server 2007, and Microsoft Project Server 2010.

Topics include common errors and the Project Server queue, project manager and resource manager approvals, enterprise calendars, enterprise custom fields, enterprise projects and the enterprise resource pool, user access, reports and OLAP analysis, resource work, project costing, task progress reporting and timesheets, Project Web Access (PWA) and Project Professional, check-out check-in and the local cache, saving and publishing, and issues risks deliverables documents and project workspaces.

About This Site

Project Server Experts (www.projectserverexperts.com) is an online community that provides answers to Project Server Frequently Asked Questions, allows members of the Project Server community to connect with one another by uploading their Business Cards, provides links to online Project Server resources, and links to Microsoft Project and Project Server related jobs.

This site is brought to you by MSProjectExperts. If you find the information posted here useful, please consider visiting our commercial site (www.msprojectexperts.com) for Project Server books, Project Server training and Project Server consulting services. Please support our sponsors. Thanks. -- The MSProjectExperts Team

Submissions

We welcome content submissions. We give author credit and cross link on all accepted articles. Please send your articles and suggestions to info(at)msprojectexperts.com.

Copyright

Reproduction of content on this site is strictly prohibited without the express permission of MSProjectExperts. Copyright (c) 2009 CHEFETZ LLC. All rights reserved