Update Project Server using PSI

I need to update a project server 2007 file (tasks and custom fields) using PSI on a weekly basis. How do I update a required custom field in the project using C# and PSI web services? I get the following error when I save the changes:
false);
projectSvc.QueueUpdateProject(jobId, sessionId, projectDs,
Error:
PSCLientError Output:CustomFieldRequiredValueNotProvided        mdpropuid:
============================
System.Web.Services.Protocols.SoapException: ProjectServerError(s) LastError=Cus
tomFieldRequiredValueNotProvided Instructions: Pass this into PSClientError cons
tructor to access all error information
   at Microsoft.Office.Project.Server.WebService.Project.QueueUpdateProject(Guid
 jobUid, Guid sessionUid, ProjectDataSet dataset, Boolean validateOnly)
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Web;
using System.Web.Services.Protocols;
using System.Threading;
using PSLibrary = Microsoft.Office.Project.Server.Library;
using IntegratedMasterSchedule.ProjectWebSvc;
using IntegratedMasterSchedule.WebSvcLoginWindows;
using System.Net;
using System.Globalization;
namespace IntegratedMasterSchedule
public partial class MasterSchedule
private static CustomFieldWS.CustomFields customFieldClient = new CustomFieldWS.CustomFields();
[STAThread]
static void Main()
try
#region Setup
const string PROJECT_SERVER_URI = "http://ServerName/xxx";
const string PROJECT_SERVICE_PATH = "_vti_bin/psi/project.asmx";
const string QUEUESYSTEM_SERVICE_PATH = "_vti_bin/psi/queuesystem.asmx";
const string SESSION_DESC = "Sample utility";
Guid sessionId = Guid.NewGuid();
Guid jobId;
// Set up the Web service objects
ProjectWebSvc.Project projectSvc = new ProjectWebSvc.Project();
projectSvc.Url = PROJECT_SERVER_URI + PROJECT_SERVICE_PATH;
projectSvc.Credentials = CredentialCache.DefaultCredentials;
QueueSystemWebSvc.QueueSystem q = new QueueSystemWebSvc.QueueSystem();
q.Url = PROJECT_SERVER_URI + QUEUESYSTEM_SERVICE_PATH;
q.Credentials = CredentialCache.DefaultCredentials;
//Get the project
Guid projectId = GetProjectUidFromProjectName(projectSvc, "Project Name");
// Read the project you want
Console.WriteLine("Reading project from database");
ProjectWebSvc.ProjectDataSet projectDs = projectSvc.ReadProject(projectId, ProjectWebSvc.DataStoreEnum.WorkingStore);
#endregion
#region Change task name and update
// Check out the project
Console.WriteLine("Checking out project");
projectSvc.CheckOutProject(projectId, sessionId, SESSION_DESC);
// Make changes
// - Note: Task 0 is the summary task which can't be changed.
projectDs.Task[1].TASK_NAME += " Changed";
// Save the changes
Console.WriteLine("Saving changes to the database");
jobId = Guid.NewGuid();
projectSvc.QueueUpdateProject(jobId, sessionId, projectDs, false);
WaitForQueue(q, jobId);
#endregion
#region Check in
// Check in the project
Console.WriteLine("Checking in the project");
jobId = Guid.NewGuid();
projectSvc.QueueCheckInProject(jobId, projectId, false, sessionId, SESSION_DESC);
WaitForQueue(q, jobId);
#endregion
#region Exception Handling and Final
catch (SoapException ex)
PSLibrary.PSClientError error = new PSLibrary.PSClientError(ex);
PSLibrary.PSErrorInfo[] errors = error.GetAllErrors();
string errMess = "==============================\r\nError: \r\n";
for (int i = 0; i < errors.Length; i++)
errMess += "\n" + ex.Message.ToString() + "\r\n";
errMess += "".PadRight(30, '=') + "\r\nPSCLientError Output:\r\n \r\n";
errMess += errors[i].ErrId.ToString() + "\n";
for (int j = 0; j < errors[i].ErrorAttributes.Length; j++)
errMess += "\r\n\t" + errors[i].ErrorAttributeNames()[j] + ": " + errors[i].ErrorAttributes[j];
errMess += "\r\n".PadRight(30, '=');
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(errMess);
catch (WebException ex)
string errMess = ex.Message.ToString() +
"\n\nLog on, or check the Project Server Queuing Service";
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Error: " + errMess);
catch (Exception ex)
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Error: " + ex.Message);
finally
Console.ResetColor();
Console.WriteLine("\r\n\r\nPress any key...");
Console.ReadKey();
#endregion
static private void WaitForQueue(QueueSystemWebSvc.QueueSystem q, Guid jobId)
QueueSystemWebSvc.JobState jobState;
const int QUEUE_WAIT_TIME = 2; // two seconds
bool jobDone = false;
string xmlError = string.Empty;
int wait = 0;
//Wait for the project to get through the queue
// - Get the estimated wait time in seconds
wait = q.GetJobWaitTime(jobId);
// - Wait for it
Thread.Sleep(wait * 1000);
// - Wait until it is done.
do
// - Get the job state
jobState = q.GetJobCompletionState(jobId, out xmlError);
if (jobState == QueueSystemWebSvc.JobState.Success)
jobDone = true;
else
if (jobState == QueueSystemWebSvc.JobState.Unknown
|| jobState == QueueSystemWebSvc.JobState.Failed
|| jobState == QueueSystemWebSvc.JobState.FailedNotBlocking
|| jobState == QueueSystemWebSvc.JobState.CorrelationBlocked
|| jobState == QueueSystemWebSvc.JobState.Canceled)
// If the job failed, error out
throw (new ApplicationException("Queue request " + jobState + " for Job ID " + jobId + ".\r\n" + xmlError));
else
Console.WriteLine("Job State: " + jobState + " for Job ID: " + jobId);
Thread.Sleep(QUEUE_WAIT_TIME * 1000);
while (!jobDone);
static public Guid GetProjectUidFromProjectName(Project proj, string projectName)
Guid result = Guid.Empty;
ProjectDataSet dsProjectList = new ProjectDataSet();
dsProjectList = proj.ReadProjectList();
for (int row = 0; row < dsProjectList.Project.Count; row++)
if (projectName == dsProjectList.Project[row].PROJ_NAME.ToString())
result = dsProjectList.Project[row].PROJ_UID;
break;
return result;

Hi cochocip,
your projectDataSet has no custom field (required) set
The md_prop_uid is the uid for this custom field).
If your custom field is not based on lookup table, you can use a code like this:
Log to CustomFields webservice
Get Custom field's md_prop_uid using ReadCustomFields.....
and add this code after
// Make changes
// - Note: Task 0 is the summary task which can't be changed.
projectDs.Task[1].TASK_NAME += " Changed";
WebSvcCustomFields.CustomFieldDataSet newCF = customFieldsWS.ReadCustomFieldsByMdPropUids(new Guid[] {
p_md_prop_uid }, false);
WebSvcProject.ProjectDataSet.TaskCustomFieldsRow a = projectDs.TaskCustomFields.NewTaskCustomFieldsRow();
a.SetDUR_FMTNull();
a.SetFLAG_VALUENull();
a.SetINDICATOR_VALUENull();
a.SetNUM_VALUENull();
a.SetDUR_VALUENull();
a.SetDATE_VALUENull();
a.CUSTOM_FIELD_UID = Guid.NewGuid();
a.MD_PROP_UID = p_md_prop_uid;
a.MD_PROP_ID = newCF.CustomFields[0].MD_PROP_ID;
a.PROJ_UID = p_prjDS.Project[0].PROJ_UID;
a.TASK_UID = p_taskGuid;
a.FIELD_TYPE_ENUM = newCF.CustomFields[0].MD_PROP_TYPE_ENUM;
switch (newCF.CustomFields[0].MD_PROP_TYPE_ENUM)
case 21: //String
         a.TEXT_VALUE = p_value;
                break;
case 15: //number
         a.NUM_VALUE = Convert.ToDecimal(p_value);
                break;
case 4: //DAte
         a.DATE_VALUE = Convert.ToDateTime(p_value);
                break;
                default:
projectDs.TaskCustomFields.AddTaskCustomFieldsRow(a);
where p_value is the value that you want save in this field.
I hope this code can help you
Cheers,
Paolo

Similar Messages

  • 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

  • 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

  • Update Custom Field in Task Level Project Server using JSOM (PS.js)

    Does anyone have javascript
    which updates the task level custom field?
    I just have the code with C#. I am trying to convert this code to javascript (below). But the javascript code had failed in update process. When I see queue jobs, JobState: Reporting (Project Sync) | JobStatus: Failed But Not Blocking Correlation.
                        DraftProject projCheckedOut = proj2Edit.CheckOut();
                        projContext.Load(projCheckedOut.Tasks);
                        projContext.ExecuteQuery();
                        DraftTaskCollection tskcoll = projCheckedOut.Tasks;
                        foreach (DraftTask tsk in tskcoll)
                            if ((tsk.Name != null) && (tsk.Name == "Your task name"))
                                projContext.Load(tsk.CustomFields);
                                projContext.ExecuteQuery();
                                foreach (CustomField cus in tsk.CustomFields)
                                    if (cus.Name == "Your custom Field")
                                        string intname = cus.InternalName.ToString();
                                        string cusvalue = tsk[intname].ToString();
                                        tsk[intname] = "Your new value";                                   
                                        msg = "customfield  - " + "original
    " + cusvalue + ": new " + tsk[intname].ToString();
                        projCheckedOut.Publish(true);
                        QueueJob qJob = projContext.Projects.Update();
                        JobState jobState = projContext.WaitForQueue(qJob, 200);
    Thanks a lot.

    Hi Andre,
    I'm afraid there's no way to update the Task Level Custom Fields using JSOM. I had the same requirement in the past, searched for a long time to a solution, without any result. Also other similar posts are not having a valid solution:
    https://social.msdn.microsoft.com/Forums/en-US/8cc94344-9462-4cee-8490-6083c35f3de1/user-resource-custom-field-update-using-csom?forum=project2010custprog
    https://social.msdn.microsoft.com/Forums/en-US/83f2dedb-6d30-466e-8663-5e450f0e5eb2/how-to-add-custom-field-to-the-task-via-csom?forum=project2010custprog
    http://stackoverflow.com/questions/25853398/updating-task-level-custom-fields
    Correct me if I'm wrong but as far as I know JSOM has no methods to update task, assignment or resource custom fields.

  • Updated Projects that used Color Assist Cause FCPX to Crash

    Hi All,
    After it's release I used Technicolor's now defunct and unsupported Color Assist software to grade a couple of projects. I've recently upgraded those project and events for use with 10.1. The projects and events appear in the browser but show a missing pugin warnning me that Color Assist isn't available.
    I'm not worried about retreiving the grade - my loss thanks to Technicolor. I would however like to somehow preserve the project intact for re-grading later.
    I've tried removing the Color Assist folder from the Project folder prior to performing an upgrade but no dice, FCPX still crashes.
    I'm sure the solution must only involve trashing the right render folders to wipe out any trace of Color Assist from the project. Anyone know which render files/folders I need to trash?
    Many thanks!

    Yes I too want to know if anyone else here resolved this issue as well.
    As OP mentioned, I'd like to preserve the project wihtout FCPX crashing , the grading can go to kingdomcome for all I care
    Regards

  • How to consume the Calendar Exception details from Project Server 2013 to an SSRS report using PSI ?

    Hello,
    Can anyone guide me how to access the calendar exception details from Project Server using PSI?
    I need to extract calendar details of enterprise resources , like exception name, exception type, exception start date and exception end date into my SSRS report hosted in SharePoint 2013 and 2010.
    I would be helpful if I can get a sample of this. I have read through many PSI documents in fact still going through ,what  PSI does and doesn't ,  PSI methods etc. from Project Server SDK and MSDN . Moreover, I
    am a beginner in .NET programming. I am confused and have lots of questions in my mind, like which PSI service should be used in my report(is it  just Calendar.svc), can we pull the details as XML type data source my SSRS report ,are
    there any other configuration settings apart from " setting up an event handler by installing an event handler assembly on each Project Server computer in the SharePoint farm, and then configuring the event handler
    for the Project Web App instance by using the Project Server Settings page in the General Application Settings of SharePoint Central Administration" (as per prerequisites for PSI in SDK) , how can I implement authentication settings
    -(when user with proper SharePoint permission
    can accesses the SSRS report  )
    Kindly bear with me if my questions are not appropriate .
    Please do guide me, and .
    Thanks in Advance!!
    Mridhula
    Mridhula.S

    Hi Brendan,
    Project server reporting database doesn't contain the calendar info. The only supported way to use the PSI to read the calendar info from Published database.
    See this
    reply from Amit.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Project Server 2010 Web services access with Client Certificate Authentication

    We switched our SharePoint/Project Server 2010 farm to use client certificate authentication with Active Directory Federation Services (AD FS) 2.0, which is working without issue. We have some administrative Project Server Interface (PSI)
    web service applications that no longer connect to server with the new authentication configuration.  Our custom applications are using the WCF interface to access the public web services.
    Please let us know if it is possible to authenticate with AD FS 2.0 and then call
    Project Server web services. Any help or coding examples would be greatly appreciated.

    what is the error occurred when the custom PSI app connects?
    can you upload the ULS logs here for research?
    What is the user account format you specified in the code for authentication?
    For proper authorization, the “user logon account” in PWA for the user needs to be changed from domain\username to the claims token (e.g.
    'I:0#.w|mybusinessdomain\ewmccarty').
    It requires you to manually call the UpnLogon method of
    “Claims to Windows Token Service”. if (Thread.CurrentPrincipal.Identity is ClaimsIdentity)  
    {  var identity = (ClaimsIdentity)Thread.CurrentPrincipal.Identity;  }  
    if (Thread.CurrentPrincipal.Identity is ClaimsIdentity)
    var identity = (ClaimsIdentity)Thread.CurrentPrincipal.Identity;
    Than you need to extract UPN-Claim from the identity.
    Upload the verbose log if possible.
    Did you see this?
    http://msdn.microsoft.com/en-us/library/ff181538(v=office.14).aspx
    Cheers. Happy troubleshooting !!! Sriram E - MSFT Enterprise Project Management

  • Project Server Licensing

    I am in the planning process for a project to upgrade Project Server 2003 to Project Server 2013. I understand that publishers/writers need a Project Pro license or Project Server CAL, and SharePoint Standard and Enterprise CALs, along with the requisite
    Windows Server and SQL Server CALs.
    My question is this. Does a user who will only be viewing and not writing to the server require a Project Pro CAL or Project Server 2010 CAL, or do they just need SharePoint Standard and Enterprise CALs along with Windows Server and SQL Server CALs?

    Hey Paul,
    We are looking at a MS Project-based PRoject management solution for our organisation and I have some queries.
    Suppose the server infrastructure comprises of Project Server 2013 Enterprise Ed, Sharepoint Enterprise Server and MS SQL Server running on a Windows Server, how does one calculate the licences in the following
    scenarios?
    S1) User connects to PWA using a general standards compliant web browser from a PC running a non-windows OS.
    S2) User connects to PWA using a general standards compliant web browser from a PC running a windows OS
    S3) User connects to Project Server using Project Pro running off a PC on the LAN
    S4) User connects to PWA using Project for Office 365
    I suppose that all the users who will be using Project will have to be present on the Active Directory (on the Windows Server) before they can have an identity on PWA. Pl correct me if this is a wrong supposition.
    Additionally, what are the server-side licences, the very minimum that will be required.
    Thank you.
    Ajit Menon, India.

  • Why do the project server custom workflow not getting a start?

    Hi 
       I created a custom workflow for project server using visual studio 2012 and the workflow worked fine in all environments. Recently we had a new environment in which Autosp Installer was run. I
    deployed my workflow in the new Environment and the workflow is not at all starting.It throws out an error which i posted below.I surfed through net and found that most of the people getting this error would have an exception. In my case I dont have any exception
    and the workflow fails to start.
    General
    Error:
    WorkflowCannotStartWorkflow (35100). Details: id='35100' name='WorkflowCannotStartWorkflow' uid='93415eb4-d234-e411-80dc-006dd8b71faa'.
    Queue:
    GeneralQueueJobFailed (26000) - WorkflowStartWorkflow.WorkflowStartWorkflowMessage. Details: id='26000' name='GeneralQueueJobFailed' uid='94415eb4-d234-e411-80dc-006dd8b71faa' JobUID='7cb867b3-d234-e411-80db-006dd8b71f9e'
    ComputerName='60b43f49-4470-4a99-ba78-035e85f9b841' GroupType='WorkflowStartWorkflow' MessageType='WorkflowStartWorkflowMessage' MessageId='1' Stage='' CorrelationUID='0f70b59c-35eb-60ff-d272-897af74729e9'. For more details, check the ULS logs on machine
    60b43f49-4470-4a99-ba78-035e85f9b841 for entries with JobUID
    7cb867b3-d234-e411-80db-006dd8b71f9e. 

    it would be difficult to say what may have gone wrong, but as the error message suggests check the ULS log with the correlation Id and that should give you more details
    Thanks | epmXperts | http://epmxperts.wordpress.com

  • Edit Enterprise Calendar in Project Server 2013 unavailable to permitted users

    I am working with a customer where members of the Administrator group attempt to Edit Enterprise Calendars but are prevented from doing so. A dialog box displays saying that Project Professional 2013 needs to be installed. It is installed and they can connect
    from Project Professional 2013 to Project Server using a Project Server Account. 
    The customer in question has an IT environment that is quite strictly controlled and policed - users cannot make changes to Internet Explorer security settings.
    In Project Professional 2013 the Project Server Account is already created by some kind of group policy when Project Professional is installed on the users computer - normally when I get people to first open Project Professional I walk them through creating
    a Project Server Account.
    Users can open, edit and publish their Projects created in PWA in Project Professional 2013 without problems, the problem looks to be when you try to open something from within PWA for editing in Project Professional 2013, invoking a request in one application
    that should result in the request being satisfied in another application.
    When users are editing their Projects in Project Professional 2013 they can be seen to have their projects checked out when the "Force Check-In Enterprise Objects" page is checked - for example John Doe's project is checked out for editing
    by John Doe.
    I saw on another posting about Enterprise Calendars that stated:
    I checked the ULS log, and it seems that Project Server is using a user account of a different user to launch Project Professional, and not the currently logged on user.
    They have a very similar account name so I figure there is perhaps some kind of issue here.
    I am wondering if this is the cause of the problem or if it is being provoked by some security settings in Internet Explorer blocking the communication between Project Professional 2013 and Project Server. Are there any Internet Explorer settings that should
    be changed to allow users to edit Enterprise Calendars?
    Dominic Moss MAPM, MCTS, MCITP, MCT
    Wellingtone PM News
    Wellingtone EPM Site
    Wellingtone PM Recruitment

    Dale - thanks for your advice, trawling through my cluttered memory I do recall a similar situation with 2007 where someone had created a PS Account that did not use the "normal" URL - I will check on this and respond.
    Dominic Moss MAPM Microsoft Certified Technology Specialist Wellingtone Ltd - Your Project Management Partner - Certified Microsoft Partner Specialising in EPM/PPM - Corporate Members of the Association for Project Management [APM] - Members of the Recruitment
    & Employment Confederation [REC] &lt;p class=&quot;x_MsoNormal&quot;&gt;&lt;a href=&quot;http://www.wellingtone.co.uk/project-management/project-server/&quot;&gt;Wellingtone Project Server Services&lt;/a&gt; &lt;/p&gt;
    &lt;p class=&quot;x_MsoNormal&quot;&gt;&lt;a href=&quot;http://www.wellingtone.co.uk/news/&quot;&gt;Wellingtone PM News&lt;/a&gt;&lt;/p&gt; &lt;p class=&quot;x_MsoNormal&quot;&gt;&lt;a href=&quot;http://www.wellingtone.co.uk/project-management-recruitment/&quot;&gt;Wellingtone
    Project Management Recruitment&lt;/a&gt;&lt;/p&gt;

  • Updating custom fields in project server 2010/2013 using psi

    Hi,
    I have two custom fields . Lets call them A and B.
    A has some content. Now i want B to have the same content as A . B is a formula custom field wher b=[A] .
    now b is empty data and A has data.
    how do i get column in B be populated.
    i tried manual publish. IT worked but i have several projects.so iam looking for a script to do bulk publish so that data in B can be populated with data in A
    a) i checked out project (CheckOutProject)
    b) published project (QueuePublish())
    c) checked in project (QueueCheckInProject())
    however i donot get the value of A reflected in B using. Am i doing something wrong?
    Pls help.Any pointers towards a script would behighly appreciated.
    i am using project server 2010
    Thanks
    Su

    Hello,
    You probably want to use Project Pro to do the publish so the calculation happens and updates field B. For bulk publish using project pro use VBA to automate project pro to open each project then do save and publish etc.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Restart project server workflow programmatically using psi 2010

    hi sir,
         I am working on project server 2010. I  want restart project server workflow using PSI. please suggest me
    vijay

    Hi,
    I think this might help:
    http://epmxperts.wordpress.com/2012/05/27/change-workflow-stage-using-psi-wcf/
    Paul

  • Microsoft.Project.Server.Library missing namespace name 'Office' -Error while building a PSI application using WCF sample code to read calendar exceptions.

    Hi,
    I have a WCF application to pull calendar exception detail from a Project Server instance 2013. As per msdn links shared below I have added two dlls Microsoft.Office.Project.Server.Library , Microsoft.Office.Project.Server.Events.Receivers as well as ProjectserverServices.dll
    from the server.
    On building the solution I am an error, The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?).
    The links referred for development are-
    https://msdn.microsoft.com/en-us/library/office/gg223326(v=office.15).aspx
    https://msdn.microsoft.com/en-us/library/office/ee872368(v=office.15).aspx
    Thanks in advance!!
    Mridhula
    Mridhula.S

    Hi All,
    The issue is resolved!! The Target framework by default was set to .NET Framework 4 Client Profile instead of .NET Framework 4.
    Regards,
    Mridhula
    Mridhula.S

  • Use PSI to add the LocalCustomField Text1 to Project

    Hello.
    Iam using the PSI to read and update local CustomFields like Text1, Text2, Flag1, ...
    For example I found Text1 by using the GUID 00039b7-8bbe-4ceb-82c4-fa8c0b400033
    Everything works fine but Iam not able to add these fields to new Projects. I always get the error: CustomFieldInvalidUid
    So I can read and update Text1 but Iam not able to add this field to new Projects.
    Isn't it possible with PSI?
    Thanks for your help and best regards,
    Timo

    Hello,
    I would say this is not possible using the PSI as you will need to create that local custom field in the other project which requires Project client. I would recommend using Enterprise Custom fields if you want to use these across projects.
    See the remarks here:
    http://msdn.microsoft.com/en-US/library/office/microsoft.office.project.server.library.customfield_di_pj14mref
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Project Server 2010 Timesheets not Updating Project Plans

    We have several project plans that are not getting updates from approved timesheets.
    Troubleshooting steps I've taken:
    1) Verified the timesheet/task submissions by the resources
    2) Verified they have been approved
    3) Verified they have been accepted by the Status Manager and processed
    4) All project plans have been published (I even used ProjTool ON the App server to do a full publish of all plans as a second step of publishing)
    5) Verified OLAP was built successfully overnight (and every night)
    6) Tasks have both remaining work and NO actual work in the Resource Usage view
    7) Had a user recall and resubmit his timesheet using "Send Timesheet" to see if the task updates would come through - they did not (I am Status Manager and the timesheet shows Approved), and even published the plan and rebuilt the OLAP again,
    just in case.
    8) Verified that no tasks are marked for closure under Close Tasks for Update in Server Settings.
    9) Verified Timesheet shows Actual Work on the Tasks via Pivot Table; compared Timesheet_User_View with MSP_Portfolio_View pivot table for project which shows 0 hours. Timesheet_User_View shows 33 hours.
    All tasks have Remaining Work, are within the date range of the timesheet and are open for submitting time. Timesheets are still out of sync with project plans for many users and there is no apparent reason. I'm out of ideas!

    Hi,
    In status manager's approval center, history, status updates, can you check the status of the approval? Do you have any errors in the ULs log for the approval or publish jobs?
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, MCP |

Maybe you are looking for

  • Playing video AND audio through TV speakers using Mini Display to HDMI adapter

    I have a late 2011 MBP and want to hear the sound of the videos I'm running on my MBP through the speakers of my LG HDTV.  I have used a Belkin Mini DisplayPort to HDMI adapter (model f2cd021eb) plugged in to my MBP with an HDMI cable running from it

  • Service line item related query.

    Hi , i am creating one project and want to copy one service activity with all line items from my another project, the activity is containing more then 200 line items please tell me how to copy a single service ativity from one project to another proj

  • Lion update kills scanner drivers for Epson Perfection 1250

    Lion Mac OS 10.7  was supposed to have a driver to use my scanner.. but I get no interface and no way to connect and use my scanner.. Anyone else have any luck? I connected my scanner via USB, and then ran Software Update and it installed something..

  • Data guard monitoring shell script

    uname -a Linux DG1 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux SQL> select * from v$version; BANNER Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Producti

  • Setting up Gmail on iPad2

    I have tried to set up my gmail account on the ipad 2 I put in the correct credentials yet I get a pop up that says that the user name and password are not correct.  I have logged on from another iPad and a computer to verify that the settings are co