Project Server 2013 - Reporting on Workflow Stages and Phases

I just received a requirement to build a report listing all the projects and their corresponding Workflow Stages/Phases in a chart.  I did a chart using cube with the Project NonTimephased Data, but how will I do this with workflow stages and phases.

Hi,
Further to Andrew's reply, just thought of sharing a sql query to fetch this data as i can see "NewB" in your Avatar :)
and since this data is also not stored in a straight forward manner.
hope this helps.
SELECT P.ProjectUID
, P.ProjectName
, WP.PhaseName
, WS.StageName
, WSI.StageOrder
, EPT.EnterpriseProjectTypeName
, WSI.StageEntryDate
, WSI.StageStatus
--, CASE WHEN WSI.StageStatus = 0 THEN 'Not Started'
--WHEN WSI.StageStatus = 1 THEN 'Waiting for Input'
--WHEN WSI.StageStatus = 2 THEN 'Waiting for Approval'
--WHEN WSI.StageStatus = 3 THEN 'Workflow Processing'
--WHEN WSI.StageStatus = 4 THEN 'Stage Completed'
--WHEN WSI.StageStatus = 5 THEN 'Completed with Errors'
--WHEN WSI.StageStatus = 6 THEN 'Workflow Completed' END AS [Stage Status Description]
FROM MSP_EpmWorkflowStage AS WS
INNER JOIN MSP_EpmWorkflowPhase AS WP ON WS.PhaseUID =WP.PhaseUID
INNER JOIN MSP_EpmWorkflowStatusInformation AS WSI ON WS.StageUID =WSI.StageUID
INNER JOIN dbo.MSP_EpmProject AS P ON WSI.ProjectUID =P.ProjectUID
INNER JOIN dbo.MSP_EpmEnterpriseProjectType AS EPT ON P.EnterpriseProjectTypeUID = EPT.EnterpriseProjectTypeUID
WHERE WSI.StageEntryDate IS NOT NULL AND (WSI.StageStatus != 0 AND WSI.StageStatus != 4)
ORDER BY P.ProjectName
Khurram Jamshed - MBA, PMP, MCTS, MCITP (
Blog, Twitter, Linkedin )
If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

Similar Messages

  • How to handle PSW approval task in project server 2013 through declarative workflow VS 2013

    Hello,
    Plz explain in detail handling PSW approval task in project server 2013 through declarative workflow VS 2013
    bcoz when using am posted on with this error when i try to approve the item
     "This list item  has not been created by the workflow.you cannot apply this content type"
    any help would be appreciated!!!!
    Thanks regards, Vignesh.

    I am also experiencing issues with this.  After the approval task is completed, the Workflow gets cancelled with the following message
    RequestorId: 60d96368-4cb4-b059-8086-604972a92e60. Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context)
    at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager
    bookmarkManager, Location resultLocation)
    All other desired workflow actions work as expected.  Emails are sent, project is moved from stage to stage, however as soon as the workflow approval task is completed, either Approved or Rejected, the Internal Status is changed to Canceled and the
    workflow fails.
    What is interesting is when the Approval task is completed, the approver will receive an email notification that the task was CANCELLED or DELETED....
    not COMPLETED, which is what would be expected.
    Has anyone seen this - any potential resolution?

  • Project Server 2013 reporting database change in Schema from Project Server 2010

    I have a current Project Server 2010 implementation, I am planning to migrate to Project Online.
    We have Customized Reports that consume from the PS 2010 Reporting DB.
    Are there differences in the Reporting DB schema  between PS 2010 and Project Online?
    My Question is: if we migrated to Project Online, will the reports crash?
    Another question is that, is PS 2013 Reporting DB schema the same as Project Online?

    Hi Atia,
    IN project server 2013 we have only one database instead of 4, it means draft, archive, published and reporting with in one database.Project Server 2013 reporting database schema tool that can be downloaded.
    http://blogs.msdn.com/b/project_programmability/archive/2013/01/28/project-server-2013-reporting-database-rdb-schema-reference.aspx
    There are differences in reporting of on-premises vs. Project Online
    The Project Server 2013 reporting schema includes three new tables, 27 new views, and a total of 33 tables and views that include new fields.
    Answer-1 : Yes there are some differences between PS 2010 and project Online.
    Answer-2 : Reports will crash as In Project Online you have to use ODATA to create report. You can not query project online data for reporting directly you have to have use ODATA. 
    http://msdn.microsoft.com/en-us/library/jj163015.aspx
    Answer-3 : NO, PS 2013 Schema and Project online Schema is different. 
    kirtesh

  • Project Server 2013 reporting security

    HI
    I have a question and I have seen a couple similar ones but nothing definitive on the topic of permissions/security for Project server 2013 (in project server security mode) for either Excel(Odata) reports or for SSRS reports. 
    Even setting security aside the Out of the box configuration is certainly not elegant or even usable.
    Situation:
    In PWA project managers and team members can only see projects they, own, are team members on, or have been granted permissions explicitly to. (Pretty standard - is using security templates and "my Projects"). We are using secure store
    and impersonation for access to reports. We do have report authors groups.
    As an example a PM needs to create a weekly  status report but should not have to pull all the data back to then filter for their one project.
    However, when a PM goes to either SSRS or Excel using oData they can see every project in the company.  This is just does not make a lot of sense. Why would I hit the database for 100projects when I only care about one and yet there seems
    to be a lack of information on the topic. In contacting Microsoft we were told there was nothing we could do that is how it was designed.
    REALLY???? (see above)
    What we have come up for our approach is  that we're currently using the UserID value to set parameters in our data sources, but are looking for more 'elegant' approaches
    to security (if they exist) as there are some liabilities with this approach (EX is a report author forgets to put the parameter in the users will get everything back.
    QUESTION:
    If there is not another approach then we will stay with it. We can't imagine there isn't a better way.
    Additionally, the Project user view only contains the identity of the project owner not the rest of the team members (including sponsors who might need to see the data.) so where are they in the database?
    Tasks

    Hi Paul,
    I have a similar situation only I'm using Project Online. I have setup Groups and Categories where there is a relationship between clients and groups, and projects and categories. 
    Only issue is that when running a report a user receives an error and then all the data shows for all projects irrespective of the group/category/project relationship and the fact that user only exists in one group (and therefore can't see
    or access the other projects in PWA outside of their group.
    Hope that makes sense.
    Regards,
    Conrad

  • Project Server 2013 Report Configuration

    Hi All,
    We are using project server 2013. We have configured the reporting server according to the below URL. But some default excel report (especially graphs) are not working i.e not showing the data. When we try to refresh the report getting the below error. is
    there any additional configuration needs to be done.
    Thanks in advance, Taj

    Hi
    Is it a Odata connection ? If it is then it might not work.
    Below is the information taken from the site
    http://office.microsoft.com/en-us/office365-suite-help/office-365-known-issues-HA102919011.aspx?CTT=5&origin=HA102901439
    Excel reports using OData connections can't be refreshed in Excel Services  
    In both Project Server and Project Online, when an Excel file is selected and displayed in the browser using Excel Services, if the Excel file has connections to the Project OData feed, a user may attempt to refresh data connections, but the refresh will
    not be successful.  
    Workaround    To refresh your data, open the file in Excel 2013, refresh the data, and then save the file back to the SharePoint document library where it resides. Next time the report is viewed using Excel Services, it will have the most
    recent data.

  • Project Server 2013 - Reporting ( Project publish ) Queue Job Error - 24006

    I am trying to publish a project and getting below error
    please provide me a solution your help greatly appreciated
    Reporting ( Project publish ) Queue Job Error - 24006 
    General
    Reporting message processor failed:
    ReportingProjectChangeMessageFailed (24006) - Object reference not set to an instance of an object.. Details: id='24006' name='ReportingProjectChangeMessageFailed' uid='5a10ad83-4736-e311-941a-00155d0c1708' QueueMessageBody='Project
    UID='eaf690a4-5fda-e211-af15-b8ac6f50f278'. PublishType='ProjectPublish'' Error='Object reference not set to an instance of an object.'.
    ReportingProjectChangeMessageFailed (24006) - Object reference not set to an instance of an object.. Details: id='24006' name='ReportingProjectChangeMessageFailed' uid='e412ad83-4736-e311-941a-00155d0c1708' QueueMessageBody='Project
    UID='eaf690a4-5fda-e211-af15-b8ac6f50f278'. PublishType='ProjectPublish'' Error='Object reference not set to an instance of an object.'.
    ReportingProjectChangeMessageFailed (24006) - Object reference not set to an instance of an object.. Details: id='24006' name='ReportingProjectChangeMessageFailed' uid='6e15ad83-4736-e311-941a-00155d0c1708' QueueMessageBody='Project
    UID='eaf690a4-5fda-e211-af15-b8ac6f50f278'. PublishType='ProjectPublish'' Error='Object reference not set to an instance of an object.'.

    If your farm is not updated please update it  from OCT  CU for 2013 project server.
    Please update it as cumulative update is having hotfix for this issue.
    http://www.intersoft.no/blogg/item/33-april-2013s-cumulative-update-for-project-server-2013
    http://www.datazx.cn/Fv7p5a/xw-US/dc6mbbt6-btss-fxi4-s8c4-8jsribt69m8x/nnn.projectserverexpertrs
    As per the 2nd link Oct Cu for 2013 is fix this issue hence i would suggest you to upgrade from OCT CU.
    kirtesh

  • Project Server 2013 : Report table not updated with Published tables

    Hello Team,
    We found the issue that Publish and Reporting table have difference in work attribute. is their any way that we can refresh the Reporting table in one go.
    Thanks.

    If this issue is specific to one or few projects, using Save for sharing would be much more easier.
    If this issue is for all the projects then as NicoOosthuysen recommended RDB refresh would be the option. Having said that  you have to take extra measure before you start RDb refresh , since it is very high system resource and time consuming activity
    Steps for Save for sharing
    1. Open MS Project Pro 2013.
    2. Open the project plan from the server.
    3. Now save it locally without making changes in the File Name, using File > Share > Save For Sharing. Provide local location. Do not close Project Professional
    4. Now save back the project back to server using File > Save As (Project Name should be grayed out)
    5. Save and then publish the project plan.
    Hrishi Deshpande Senior Consultant

  • Project Server 2013 Workflow Task Permissions Breaking Inheritance and Causing Workflow to Cancel

    I have an on-premise instance of Project Server 2013 with a workflow that includes an
    Assigned Task to assign users to Approve or Reject a WF phase. The workflow successfully assigns the task and notifies the user of the task. However, after (or possibly just prior) the user Approves the task, the workflow is automatically
    cancelled. 
    By default, the WF Task List is set to inherit permissions. After Approving an item, it appears that the list permissions automatically breaks inheritance, causing the workflow to cancel. This occurs somewhat regularly after resetting permissions to inherit
    from the parent site. Although there are stretches where the issue doesn't occur. I'm not sure what's causing the list permissions to change. 
    This issue occurs in both our Dev and Prod environments. Has anyone experienced this issue with permissions breaking inheritance automatically?

    Hi Vic,
    According to your description, my understanding is that the workflow was cancled when you created a workflow with Impersonation Step to break inheritance permissions.
    After breaking inheritance permissions, make sure the workflow initiator (the creator) still has least edit permission on the list.
    In addition, please check the workflow history list to find more information about this issue.
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Pull large amounts of data using odata, client API and so takes a long time in project server 2013

    We are trying to pull large amounts of data in project server 2013 using both client API and odata calls, but it seem to take a long time. How is this done
    In project server 2010 we did this creating SQL views in both the reporting database and for list creating a view in the content database. Our IT dept is saying we can't do this anymore. How does a view in Project database or content database create issues?
    As long as we don't add a field in the table. So how's one to do this with creating a view?

    Hello,
    If you are using Project Server 2013 on premise I would recommend using T-SQL against the dbo. schema in the Project Web Database for your reports, this will be far quicker that the APIs. You can create custom objects in the dbo. schema, see the link below:
    https://msdn.microsoft.com/en-us/library/office/ee767687.aspx#pj15_Architecture_DAL
    It is not supported to query the SharePoint content database directly with T-SQL or add any custom objects to the content database.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Project server 2013 olap database remains in processing state

    Hi,
    In an attempt to restore the Reporting Database in Project Server 2013, I did an archive and restore of Custom fields. Both of these events were successful, however, the Reporting database refresh kept on hanging in "Waiting to be processed status".
    Before this was noticed, the OLAP Database was configured and a build was initiated. Now the status of the PWAOLAPDatabase build just remains in the "Processing..." status.  What am I to do here? Thanks!

    Hi Jaco,
    It seems like your reporting database refresh has failed, so the OLAP DB cannot be generated either. It could be due to a large resource pool.
    See reference below:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/7ac3bb1b-6621-46f0-a6c5-d9a04f770418/reporting-database-refresh-project-server-2010?forum=projectserver2010general
    http://blogs.msdn.com/b/brismith/archive/2011/07/14/project-server-2010-reporting-database-refresh-failing-with-large-resource-pools.aspx
    Note also that you can click on "processing" (as per your screenshot) to have the OLAP DB creation log in order to have more information on the status.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Workflow in Project server 2013 online not going particular stage after Approval

    Hi All,
    i have created workflow using sharepoint designer 2013 for project server 2013 online. and i have also set the approver after the first stage. when i create a project using this workflow, project is created successfully and the approval task also go for
    a approval to specific user. and i have set the property that after approval it has to go on specific stage. but the problem is when user approve the task it shows approved but my stage in workflow is remain same. it is not going to any stage. 
    i don't know why this type of problem is occur. 
    FYI, i have created same workflow for Project server 2013 on premise(Which is installed in my server) and
    it is working fine but when i want to deploy this workflow in
    project server 2013 online its giving error.
    so please help me to solve this type of issue.
    Thanks

    I am also experiencing issues with this.  After the approval task is completed, the Workflow gets cancelled with the following message
    RequestorId: 60d96368-4cb4-b059-8086-604972a92e60. Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context)
    at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager
    bookmarkManager, Location resultLocation)
    All other desired workflow actions work as expected.  Emails are sent, project is moved from stage to stage, however as soon as the workflow approval task is completed, either Approved or Rejected, the Internal Status is changed to Canceled and the
    workflow fails.
    What is interesting is when the Approval task is completed, the approver will receive an email notification that the task was CANCELLED or DELETED....
    not COMPLETED, which is what would be expected.
    Has anyone seen this - any potential resolution?

  • The Stage Gate Workflow get suspended in project server 2013

    Hi,
    Getting following error when i am trying to create an stage gate project/workflow in project server 2013. The submit button in
    the ribbon gets disabled and when i see the workflow status it is suspended. and getting following error message. 
    RequestorId: d5f04432-bd27-3da1-0000-000000000000. Details: RequestorId: d5f04432-bd27-3da1-0000-000000000000. Details: An unhandled
    exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["d5f04432-bd27-3da1-bc57-8ce72d9f5e43"],"request-id":["d5f04432-bd27-3da1-bc57-8ce72d9f5e43"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["153"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer
    realm=\"2a5d48f2-f71d-4589-a6ae-ab6c0d30fafd\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,[email protected]0d30fafd\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4481"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Date":["Thu, 04 Jul 2013 11:20:43 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    Could anyone help me to fix this issue and reason why the Stage gate workflow isgetting suspended.
    Thanks,
    Sunitha

    Check your User Profiles and make sure that the user's domain is correct. We've seen workflows suspend with 401 errors when the User Profile Service syncs with AD and pulls the wrong domain name - for
    example if your FQDN is corp.company.com and the user logs in with company\username, UPS might have corp\username instead. Hence a 401 error...
    Here is a link that includes the steps to fix this:
    http://social.technet.microsoft.com/wiki/contents/articles/18060.sharepoint-20xx-what-if-the-domain-netbios-name-is-different-than-the-fqdn-of-the-domain-with-user-profile.aspx
    Neall

  • Workflow status web part gives error when going back to previous stage (using GO TO) in Project Server 2013 workflow

    Hi,
    Workflow status web part gives error when going back to previous stage (using GO TO) transition activity  in Project Server 2013 workflow.
    Please guide how to create a workflow which restarts from a desired stage.

    Thanks for your prompt reply....
    It gives following error
    Workflow Status
    This Web Part was unable to load.
    Information that may be useful in solving this problem was written to the Unified Logging Service (ULS) log on the Project Web App with the following ID: e95a9c9c-1f68-90d7-0a3e-5951df70fec6
    For more information, contact your Project Web App administrator.
    what do you mean to restart the Project Server 2013 with different project name, please elaborate....

  • Project server 2013 csom save and publish

    Hi,
    In Project server 2013 PWA when you edit project custom fields and save the queue job execute the following jobs: 
    - "Project Update from PSI"
    - "Project Publish Summary"
    - "Reporting (Project Publish Summary)"
    In my code (CSOM)  i can only use : " QueueJob Job = projChechedOut.Publish(true);"
    which is creating all these jobs:
    Project Update from PSI
    Project Publish Notifications
    Project Publish
    Project Checkin
    Prepare Project Web App Permission Synchronization For Projects
    Reporting (Project Publish)
    Project Workflow Check-in
    Synchronize Project Web App Permissions to Project Web App
    Synchronize Project Web App Permissions to Project Site
    Reporting (Project Sync)
    Is there way to "simulate" the save from PWA instead of fully publishing the project using CSOM,  because it is a lighter solution since my code is supposed to only set custom field value (if i only update, not publish it is written to the
    Draft) and secondly performance (less jobs) is better ?
    Thx in advance !!

    Hi,
    as an update to my post:
    - In PSI the method is project.queuepublishsummary(guid jobid, guid projuid)
    http://msdn.microsoft.com/en-us/library/office/gg200290.aspx
    the description says: Publishes the stage summaries of the specified project, in a partial publish operation.
    I am wondering if the equivalent method exists in CSOM. There is this method: PublishedProject.UpdateVisibilityCustomFields() but it seems doing exactly the same thing as publishing a DraftProject.
    Any ideas ?
    Thx

  • Help needed Regarding Project Server - 2013 Workflow

    Hi All,
    I am new to Project server 2013 Workflow, hence please help me regarding this. Pardon me if this question is too trivial. 
    I have created a project type associated with a workflow and my workflow is as follows :
    So I am not doing anything here, I am just testing the workflow as mentioned by technet site : http://technet.microsoft.com/en-us/library/dn458865(v=office.15).aspx
    But it is mentioned that, after a minute or 2, the workflow state will change, also they have mentioned to press the Submit button.
    But in my case, the workflow is not moving to next stage [It just says 'The workflow is still processing - which never changes after hours] or I am getting the submit button (Submit button is disabled on the ribbon). Below is the state of my workflow :
    PS : I have made the user added to Portfolio managers group as well. But still I am having this same issue. 
    The Workflow manager is installed properly, and it is working fine in case of List workflow. I am facing the issue only wrt Site workflow for Project server 2013.
    Please help me to solve this issue.
    Thanks,
    shanky

    Hi Kiran,
    I am now facing issue while assigning a task to a person in the workflow.
    I am having a person named say 'John' , who is included in Project Manager as well as Portfolio Manager.
    And I am using a workflow as :
    Stage : Conceptual
    Assign a task to John (Task outcome to Variable: Outcome5 | Task ID to Variable: TaskID3 )
    Transition to stage
    Go to Approval
    But this is again giving issue as :
    Workflow Internal status : Cancelled
    Details: System.ApplicationException: HTTP 401 {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have
    permission to perform this action or access this resource."}}}
    PS : I have used the same Sharepoint admin account for 'Account Name' in ‘User Profile Sync' , Is this causing the issue? Please let me know.
    Thanks,
    Shanky

Maybe you are looking for

  • How to setting the printing option in javafx 2.1 or later?

    Hi, We need to printing pdf document in our project, it's can use the open source to do it now, but it's has some problem when running the program in other pc. Step 1, It's setting the program with full screen in our program. Step 2, In the button ev

  • People Have Given Up on the "Hiss"?

    Hey Guys, Just got a week 21 Macbook Pro with glossy screen and I noticed the hiss. Less prominent on the AC, but you can easily hear it on the battery. I guess apple has not fixed this issue yet and people are just accepting this as normal? Let me k

  • Handling Multiple Result Sets

    Hi I have a problem while handling multiple result sets. To fix that problem i need to upgrade my JDBC version2.0 to 4.0. My Problem is that i dont know which jars need to be downloaded to upgrade my JDBC version.

  • Acrobat Pro 9 Download on New Laptop Won't Accept Serial No. for Program Downloaded in 2011

    Any suggestions other than walking the problem over a live chat?

  • Won't Launch?

    Ok so it opens but as it's loading all the filters and whatnot, it gets stuck on RP500. The RP500 is my guitar pedal so I don't know why that's getting involved with Final Cut. But I don't know what to do to make it open.