Project Server 2013 : How to Change Project owner Using PSI

Hi,
I have the following sets of codes for changing the project owner but both of them have not worked.
1>
private static bool UpdateProjectOwner()
   bool projUpdated = false;
   try
     User newOwner = projContext.Web.SiteUsers.GetByLoginName(Username);
     Guid ProjectGuid = ProjectUID;
     //Console.Write("\nUpdating owner to {1} on project: {0} ...," ProjectGuid, Username);
     DraftProject draftProjectToUpdate = projContext.Projects.GetByGuid(ProjectGuid).CheckOut();
     draftProjectToUpdate.Owner = newOwner;
     QueueJob qJob = draftProjectToUpdate.Update();
     projContext.Load(qJob);
     projContext.ExecuteQuery();
     JobState jobState = projContext.WaitForQueue(qJob, timeoutSeconds);
      QueueJob qJob2 = draftProjectToUpdate.CheckIn(false);
      projContext.Load(qJob2);
      projContext.ExecuteQuery();
      JobState jobState2 = projContext.WaitForQueue(qJob2, timeoutSeconds);
     catch (Exception ex)
       Console.ForegroundColor = ConsoleColor.Red;
       Console.WriteLine(ex.Message);
       Console.ResetColor();
   return projUpdated;
2>
String projectOwnerIDstrNew = Convert.ToString(dr["ProjectOwnerUID"]);                        
String projectOwnerIDstrOriginal = Convert.ToString(project_Ds.Project[0].ProjectOwnerID);
if (!projectOwnerIDstrNew.Equals(projectOwnerIDstrOriginal))
 Guid ownerID = new Guid(projectOwnerIDstrNew);
 project_Ds.Project[0].ProjectOwnerID = ownerID;
 project_Ds.AcceptChanges();
bool managerChanged = true;
Is there any mistake in these above functions ?
If Not, then is there any other way of updating the project owner with help of PSI.

Hi Steve,
Are you talking about PWA or Project Pro?
In PWA: the project has to be checked in first, then go to the "options" tab in the ribbon and unselect the checkbox that allows displaying time with the date.
In Project Pro, it is up to users to set in the date format without the time in file\options\schedule, date format.
In the PDP, date custom fields are displayed by default with time, the only suggestion I could make would be to create an associated custom field equal to your date field with a formula displaying only the date.
Hope this helps.
Guillaume Rouyre - MBA, MCP, MCTS

Similar Messages

  • How to change the owner of business rules

    Hi,
    How to change the owner of the business rule's in hyperion 11.1.2.1.
    When i changed the owner name from planning to xxxxx i get "User not found reverting to nothing".
    Kindly help me with what id should i login to EAS (essbase administration services console) and the detailed process of changing the owner of business rule in properties tab.
    Cheers
    Praveen
    Edited by: Praveen on Nov 7, 2011 8:43 AM

    No....
    There is no 'ownership' of a tablespace. No such thing.
    UserA.tbl1 is owned by UserA, which is the same as saying it is in the schema UserA. It might be in tablespace USERS. If you want to change which tablespace it lives in, you can 'alter table' it to the new tablespace such as BIG_USERS. It would still be UserA.tbl1. I think you can move it online using Oracle's online reorg abilities.
    If you want the table to be owned by UserB, then you have to either export/import or CREATE TABLE AS SELECT it into UserB's schema. However doing so means that the table can no longer be referenced as UserA.tbl1. If you want that reference to work, you have to create a synonym in UserA's schema that points to UserB.tbl1. At no point does the ownership of the tablespace come in to question.
    I think you meant 'schema' instead of 'tablespace' in your original quesetion.

  • How to change application owner of EPM11 planning application ?

    Hi Gurus,
    How to change application owner of EPM11 planning application ?

    Using this query i can find the application owner in backend :
    SELECT A.OBJECT_NAME AS APPLICATION_OWNER
    FROM HSP_OBJECT A, HSP_USERS B
    WHERE A.OBJECT_ID = B.USER_ID
    AND B.ROLE = 3;
    now i want to change Application owner ....please share if you know

  • Update project description using PSI

    hello forum members,
    Does anyone know how to update a project description using PSI in an existing project? I can't see any methods or class members that let me do this. Any suggestions
    are appreciated. 
    tatiana
    tatiana

    never mind. got it.
    the code is below:
     SvcProject.ProjectDataSet projectds = projectClient.ReadProject(projectGuid, SvcProject.DataStoreEnum.WorkingStore);
                        projectds.Project[0].WPROJ_DESCRIPTION = "test programmatically added description";
    tatiana

  • How to change outlook mail using Word to try and open PDF to Adobe Reader XI?

    how to change outlook mail using Word to try and open PDF to Adobe Reader XI?

    I've never found technology to make life easier. It mainly offers the promise (often unfulfilled) of making it cheaper or quicker. This didn't happen when the Girl Guides put a form in an envelope and posted it. But they probably laid off the person whose job that was with the promise of everything being easy on the internet.
    PDF has, curiously, become a victim of its own success. A few years ago, you could say to people "You need Adobe Reader" and it was the only serious game in town. So they got it and it works. Now everyone is making their own PDF reader for whatever reason, fewer and fewer people can be sure of having Reader. (PDF readers come at least with every Mac, every Windows 8 system, Chrome and FireFox, which covers a LOT of ground).
    This is coupled with a bizarre decision Adobe made a few years ago to have two kinds of form, one of which all the other software fails with (and, as I noted, even Adobe's own software on iPad and Android fails). This was a neat idea which was designed for big corporations. Then the really big mistake: giving everyone with Acrobat the tools to make these new kinds of form, and making it seem they were preferre or the only game in town. This is finished now (Acrobat 11 doesn't include this big boy's software) but the damage is done, oh how it is done.
    Even regular forms tend to only work properly in real Adobe Reader. The fact is, if you make or distribute PDF forms you need to tell people to use Adobe Reader, and to know exactly how to help them do that. If people can't do that or their users won't be motivated to bother, then PDF forms are no longer a suitable choice. Sad but true.

  • How to change the browser used for Google search from context menu of selected text?

    How to change the browser used for Google search from context menu of selected text?
    It uses Safari. But I want to use Chrome (it's my default browser).

    How to change the browser used for Google search from context menu of selected text?
    It uses Safari. But I want to use Chrome (it's my default browser).

  • I need help I can't remember my iTunes Security Questions and have no idea how to change them just used a $20 gift card

    I need help I can't remember my iTunes Security Questions and have no idea how to change them just used a $20 gift card

    If you have a rescue email address (which is not the same thing as an alternate email address) on your account then you can use that to reset them : http://support.apple.com/kb/HT6170
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will have to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    If your country isn't on that page then try this form and explain and see what they reply with : https://ssl.apple.com/emea/support/itunes/contact.html
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps on this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5620
    Or, if it's available in your country, you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • 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

  • How to change the owner of a folio

    I've created a folio using the latest version of DPS. My client, who has purchased the Professional version of DPS, is going to distribute the app as an "in-house" iPad viewer app (they're an Apple Enterprise Developer).
    I've shared the folio with several people at the client company via Acrobat.com and that works well.
    Now we need to create the final app. When the client logs into the Folio Producer with their Adobe ID, they can see the Folio, but when they try to click the Publish button, an alert appears that says "Only an owner of a folio can publish to the distribution server".
    How can I change the owner of the folio from myself to the client?

    Thanks Bob. That's what we ended up doing. I was trying to avoid having to re-upload the folio, but ended up having to do that. Thanks.
    ~ Keith
    Keith Gilbert
    Adobe Certified Instructor: ID, IC, AI, PS, AA
    Adobe Community Professional
    blog.gilbertconsulting.com
    twitter: @gilbertconsult

  • How to change the owner of a document ?

    I am trying to change the owner of a document, when the document meets certain conditions using an Agent (server Extension). The getOwner() method of the PublicObject returns me the DirectoryUser. How do I get the list of DirectoryUsers so that I can select the new owner to be used with the method setOwner() of PublicObject.
    Suggestions?
    Chandra Sekhar

    Use the LibrarySession.getDirectoryUserCollection() method to return a Collection of DirectoryUser objects in the system.

  • Crystal Server 2013: How to troubleshoot "Can not create temp file---- Error code:-2147215357"

    We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
    The app is being deployed on many different servers. We sometimes got the error below when generating report:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
    Problem is, this seems to be  a pretty generic exception. It could be caused by many different reasons.
    e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
    Each time we could only guess what's wrong.
    We are running into it again, and this time everything seems correctly configured so far.
    We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?

    Prithviraj Shekhawat wrote:
    Hi Henry,
    I believe you are using RAS SDKs to export the reports to PDF.
    Apply trace on RAS server and check what you find in RAS logs.
    Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
    Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
    Thanks,
    Prithvi
    >>I believe you are using RAS SDKs to export the reports to PDF.
    Yes
    >>Apply trace on RAS server and check what you find in RAS logs.
    >>Check whether you can see timeout error is RAS logs.
    How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
    >>Also, does the account that runs RAS have permissions to create
    >>a file in RAS's default temp directory?
    Pretty sure yes.
    >> Are you getting any out of memory or out of disk space exceptions
    >>on App server or RAS, tracing RAS server is the way to move forward.
    Not on App server.
    For RAS, that's the problem, I am not sure where to look.......

  • How to change the owner of a GPO using command line/script? - More than 200!

    I have more than 200 GPOs on the AD DOmain
    Half of the GPos were created by sveeral different people or are owned by the domain admins
    How can I change all of then, to a new owner, using the more "quick and easy" method?
    there a tool/utility for that? (like icacls.exe/subinacl.exe?)
    There is a VBS function or PS cmdlet?

    Hi,
    How is it going? Are the suggestions provided by the above replied helpful? If you need further help regarding this issue, please don’t hesitate to let us know.
    Besides, for scripts, in order to get better help, we can ask for suggestions in the following scripting forums.
    The Official Scripting Guys Forum
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Windows PowerShell
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,             
    Frank Shen

  • How to change the Owner of a Process

    We have a Business Process Flow and the owner is someone no longer with our company. Not finding a way to change the Owner on the process. Does anyone know how to accomplish that?

    Hello,
    Try following:
    Open CRM -> Settings -< Processes -> Select BPF -> Click Assign at toolbar, select user and click OK.
    Dynamics CRM MVP
    My blog

  • How to change object owner?

    I have a table under REPS' schema. However, I want to change the owner to ADM. Is it possible to do that without recreating the object? Is there also a way not to recreate the public synonym?
    Thanks!

    You have to recreate the object or to use export/import which is similar.

  • How to change the owner of an Information Broadcasting setting?

    Hi,
    I have created and scheduled some reports to be distributed via the Information Broadcasting functionality. I would like know if it is possible to change the "owner" of the setting in order to cater for the following scenario.
    User A has created and setup a few Information Broadcasting settings. I would like to change the ownership of the setting so that User B has access to make changes. At the moment, users only have rights change their own settings.
    Appreciate any help...
    Cheers,
    Lashan

    Found a workaround although not ideal. I can temporarily assign the user the required rights to view all setting. User can then copy the settings (using save as option) and once done I can remove the rights.
    However, the report format would have been customised and saved (using save view option) prior to setting up the information broadcast. When transfering ownership I also need to transfer the ability for the user to edit the saved format without starting from scratch. Any table or transaction I could use to do this? So at the moment I have a solution to enable the new user to change the distribution list and schedule, but not the report format which is required.

Maybe you are looking for