ProjectResource Not Found Error in Project Server

Hi,
I've been trying to remove a resource from project given the project resource has no assignments using the following code
            projContext.Load(projContext.Projects);
            projContext.ExecuteQuery();
            PublishedProject pp = projContext.Projects.GetByGuid(new Guid("0dbf7918-5609-e311-b791-1078d24a5e38"));
            projContext.Load(pp);
            projContext.ExecuteQuery();     
            DraftProject dp = pp.CheckOut();    
            DraftProjectResource dpr = dp.ProjectResources.GetByGuid(new Guid("e59a4729-0b03-e311-b791-1078d24a5e38"));
            projContext.Load(dpr);
            projContext.ExecuteQuery();
            DraftProjectResourceCollection resoColl = dp.ProjectResources;    
            Console.WriteLine(dpr.Id +""+dpr.Name);         
            resoColl.Remove(dpr);
            try
                QueueJob qJob = dp.Update();
                qJob = dp.Publish(false);
                JobState jobState = projContext.WaitForQueue(qJob, 30);
                if (jobState == JobState.Success)
                    Console.WriteLine("\nResource replacement Successful!");
                else
                    Console.WriteLine("\nThere is a problem in the queue. Timeout is
{0} seconds.", 30);  
when i execute this code, I get an error which says
PJClientCallableException: ProjectResourceNotFound
ProjectResourceNotFound
column = RES_UID
Am i missing something?
Thanks & Regards,
Varun

Divyang,
I am not a programmer, but I think the obvious check is to make sure that the resource you are trying to remove is actually in the project scheudle.
Another item to check is whether the resource is a LOCAL resource instead of an ENTERPRISE resource. 
Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

Similar Messages

  • Getting 'File not found' error while using server object model code

    Hi,
    I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
    Code I am using:
    string strURL=http://servername/sites/sitename;
    SPSite siteObj=new SPSite (strURL); //getting error here.
    I have already checked the below,
    1. Framework being used is 3.5.
    2. I have proper access to site.
    3. Running visual studio as admin.
    Any help is much appreciated.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hello Tarique ,
    Couple of pints need to check:
    1. User running the console application needs to have at least read permission to the SharePoint databases
    2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
    Also refer this similar thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • File not found error on testing server [subject edited by moderator]

    The requested URL /www/first.php was not found on this server.  Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
    Using adobe dreamweaver with wamp server and getting this message while checking any file.Saved all file in ( c:wamp/www/ ) with php extention

    Have you checked to see if first.php file is in the www folder in WAMP?
    Have you aso tried:
    http://localhost/first.php
    or
    Create a folder in the 'www' folder named 'test' and then put the 'first.php' file in the 'test' folder:
    http://localhost/test/first.php
    Do any of those combinations work?

  • File Not Found error in Citrix Server

    I have a client who is running an application through Citrix that uses Crystal Reports, and the application is erroring out when trying to load a report, ONLY when the user does not have anything mapped as their C:\ drive.
    The default setup at this client was to have a P: drive as the main drive, and a Q: data drive for the users when they log into the Citrix box.
    When the users were tried to launch the application with this setup, they got the following error:
    System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
    System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load()
    If we have a drive mapped to C:\ for the user, the issue goes away.  I've looked through the Crystal Reports engine code, and with an embedded report in a .NET application (as is the case here) Crystal Reports writes the embedded report out to the temp directory before reading it back in again.  The failure seems to be either with reading or writing that temporary file.
    Anyone run into this before, or seen a solution?

    Hi, Craig;
    It sounds like you are running into this issue: [CitrixDrive|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333933383338%7D.do]
    You do not say which version of Crystal Reports you are using, so the registry key may be different for whichever version you have.
    Regards,
    Jonathan

  • Servlet class not found error deploying a WAR on Web Logic Server 8.1

    I'm re-deploying an updated web application to a web logic server, but when I navigate to the login page of the web application to test it, I get a class not found error for my login servlet. I have both the web.xml and the weblogic.xml descriptors in my WEB-INF directory, and all of my compiled classes are in the WEB-INF/classes directory, is there something else I'm missing? Any help would be much appreciated.

    Thanks for the response. Here's the web.xml file:
    <?xml version="1.0" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <display-name>Web Forms</display-name>
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <display-name>LoginServlet</display-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <display-name>ChangePasswordServlet</display-name>
    <servlet-class>ChangePasswordServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>LogoutServlet</servlet-name>
    <display-name>LogoutServlet</display-name>
    <servlet-class>LogoutServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>PageServlet</servlet-name>
    <display-name>PageServlet</display-name>
    <servlet-class>PageServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>UploadServlet</servlet-name>
    <display-name>UploadServlet</display-name>
    <servlet-class>UploadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <url-pattern>/ChangePasswordServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>LogoutServlet</servlet-name>
    <url-pattern>/LogoutServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>UploadServlet</servlet-name>
    <url-pattern>/UploadServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PageServlet</servlet-name>
    <url-pattern>/PageServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>Login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    None of the classes are in a package (I know it's not the best idea, but I didn't write these, I'm just doing some updates). So the file structure is pretty much just WEB-INF/classes/
    At the moment I've got a fix by just putting the entire project (not in any sort of archive) on the server itself instead of deploying it as a WAR, any thoughts on why the WAR isn't working would be much appreciated though.

  • In Firefox, I keep getting "Server not found" error - CONSTANTLY!

    Two days ago I started getting the "server not found" error, off and on, daily. It is happening on both my desktop iMac 10.7, and my Windows 7 laptop. I keep having to hit the "Try Again" butting, and sometimes, several times, before a web site will finally launch. The only two extensions I have on both, are the Adblock Plus and the Last Tab Close Button, both of which, have been installed on said computers for months and months and months.
    I went in and changed a setting to the "auto detect proxy setting", hoping that would work, and it did not.
    I have Firefox version 21 on both computers, and it seems the problem started shortly after this latest Firefox update, and at the SAME TIME on both computers.
    I do not have virus protection on my iMac, nor on my Windows 7 laptop, at the moment, but I have run online software to check for anything, and no issues, so I believe, it is not that which is the issue.
    The firewalls on both computers are working fine and no issues there either, I have not changed any firewall settings, on either computer. It couldn't be the firewall, in my opinion, because this annoying error message started happening on BOTH of my computers, at the same time; I work on my iMac in the morning, then switch to my laptop in the afternoon, and same issue continues on both, and started at the same time, on both.
    Is there something broken in Firefox from this last update of the browser?
    Does anyone have any suggestions as to why both computers are having this issue, at the same time?
    I have not tried using I.E. yet on my laptop, I rarely have ever needed to use that browser, and I hate it, so I don't use it.
    Any help or suggestions, would be appreciated.

    I followed those steps, but clearly some steps are missing. How do you "enable each extension one at a time"? The only choices I see in Safe Mode are "disable" and "remove."
    And why is it that every other update to Firefox breaks Firefox? I've had to install add-ons just to be able to use it in Windows 8 with a touchpad.
    Now that I think of it, it doesn't even matter any more. After years of Firefox loyalty (even after Firefox users have dropped to 28%), I'm off to download Google Chrome (up to 52%). I'll miss Firefox, but not the on-again, off-again performance.

  • Can't do online banking. Get error message. "The requested URL /Summary.cgi was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I can't do online banking. When I try to open the page I get error "The requested URL /Summary.cgi was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Hi,
    These blog posts might help debug problem
    Oracle APEX: Got a 404 Not Found? | Inside Oracle APEX by Patrick Wolf
    daust_de :: Oracle XE / APEX: Troubleshooting the 404-not found error on XE
    Regards,
    Jari

  • Error: The requested URL was not found, or cannot be served at this time.

    Hi gurus,
    I have a report that has a parameter file. When I call the report the parameter form is displayed but after I enter the parameter values and click SUBMIT QUERY, I receive this error:
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Reports Server name is not specified.
    If I run the report without parameter file it runs fine.
    Does anyone have an idea on how I can make this work.
    Thanks

    * Can you please tell what version of Reports you are using ie 6i or 9i and the exact version [ In builder give Help->About] . In this problem we cannot deduce anything from the version. But if it is very old, we can recommend installing the latest patch.
    * Please post the full command line request. If you have used any keys in cgicmd.dat , please post the expansion of that keys also.
    * If possible as a workaround give paramform=no&paramName=paramValue ... in request till this problem is resolved.
    Thanks
    The Oracle Reports Team

  • I can't fix the "Server Not Found" error

    Ok, when I started up Firefox I was greated with a "Server not found" error, so I thougt to myself, " Ok, I'll just follow the instructions shown". Didn't help, still didn't work. So I dcided to use Internet Explorer until the issue fixed itself, didn't work. So I tried the 64 bit version, that worked. So basically what I'm trying to ask is: is there a 64 bit version to Firefox, or is another solution what i need?

    Close all of your anti-virus software and restart your FF.
    Also see [http://www.yanfei.info/2011/07/firefox-link-error solution of connection was reset] for more help .

  • Getting "server not found" errors randomly. If I reload the page comes up fine. Why?

    I'm on a Mac running 10.6.5 and using Firefox 3.6.13. All of the sudden pages I visit all the time are coming up with "server not found" errors, but when I refresh the page comes up fine. Sometimes the page loads, but in html code and all jumbled.
    How do I fix this? Very annoying. I've been using Firefox for years and it's never done this. Nothing's changed with my connection or settings.

    You detailed the situation very well dezi.
    Amazing that so many people have this problem yet NONE of these so called "AWESOME" developers deem it important enough to address the issue.
    I still have the exact same lame problem as you with 3.6.whatever it is now.
    There are quite a few of these random"Server not found" threads scattered around here,all with a mounting number of "people have this problem"
    On my old MacBook Pro, which runs 3.5.16, I have no such issue.
    After 6 weeks of exhaustive research the only thing I have found is a fix aimed at PC users in which you alter the about:config settings (not that it would work for us or that if it is even possible) that affect something called DNS fetching. I am not a computer person so all the jargon about do this-do that goes over my head. However, to get this solved I will learn what it takes.
    I hope we get some real answers soon
    (and none of that "empty your cache and cookies" garbage either)
    Signed,
    Frustrated as hell

  • Page not found error while accessing Identity server console(Error Code:50)

    Hi Guys,
    Whenever I am trying to access the admin console of Identity server I am getting Page not found error. I believe some configuration must be missing for which I am getting this error. I am accessing the URL through following URL
    http://<Portal Server Fully Qualified Domain Name>/amconsole
    Please Help me if anybody has come across this problem

    Hi,
    First of all,check your install logs.
    Most likely you should find errors like the following
    "cannot access /usr/jdk/ent2se "
    "/usr/jdk/bin/jar" not found etc.
    In these cases the problem is the JDK version.
    Install the latest version of JDK and make sure that
    /usr/bin/java points to the installed JDK version.
    HTH,
    Ramnath

  • Random "Server Not Found" errors.

    Since I updated to the most recent version of Firefox I'm randomly getting "Server Not Found" errors when I try to navigate to sites via searches, direct links, and typing in the URL. Anyone know what's going on?

    Adding som info whilst bumping the thread:
    the 400 Error page renders with:
    400 Bad Request, The HTTP client sent a request that this server could not understand.
    the 404:
    404 Not found, The requested URL /apex/f was not found on this server.

  • Intermittent "Server not Found" errors

    For the past week, I've been getting intermittent "Server not Found" errors. It'll happen when going to a site. I re-read the site and it might open to it. Go to another site, it works fine. Go there a minute later and "Server not Found." Just started last week, and I've found no real answer online. I've found a lot of people discussing this, but no real, solid solutions.
    == URL of affected sites ==
    http://

    One of your add-ons might be the culprit too. Try running Firefox in [[Safe Mode]] with all add-ons disabled. If that solves the problem, see [[Troubleshooting extensions and themes]] and possibly [[Troubleshooting plugins]]

  • Quicktime would fail to write/export to server windows share with "Error -43: file not found" errors

    Summary:
    With the combination of Windows 7 and Quicktime 7.x, Quicktime would fail to write/export to server windows share with "Couldn't create output movie storage" and "Error -43: file not found" errors
    Steps to Reproduce:
    Trying to render to Quicktime files using network shared folders as a destination:
    Unable to open file. (-1610153459)
    The funny thing: it only happens when there are at least two shared folders mapped on the workstation, and the destination folder used for the rendered movie is not the first one.
    If we have only two mapped drives, F: and G: for example, and we try to render something to F:, everything works fine and no error is showed. But, when the destination is the G: drive, rendering never works, the error is showed, but a zero-byte file is created in F: (!!). ODD! If we remap F: drive with a different letter, but a letter BEFORE G:, the problem always happens. If we remap drive F: to any letter AFTER G:, making G: the first available network drive, rendering works. Also, simply unmapping F: and leaving G: as the only connected network folder makes render to work.
    We do not have a D: drive in our Windows 7 workstations, they are all C: only.
    It is a 100% reproducible problem. We tried with three different Active Directory networks and workstations. It has all of the features of a software bug.
    Any help would be appreciated.
    Cheers!
    Expected Results:
    Error -43: file not found
    Actual Results:
    The workaround seems to be to use the full path to the servers instead of the mapped mount point (ie //server/z/... instead of Z:/...
    Regression:
    All versions of quicktime 7 in combination with windows 7 client and more than one smb share point mapped in a letter.
    Notes:
    All software that uses quicktime movie exports showed this error.

    Not sure what file your are referencing?  Thanks for your suggestion, however, it's not relavant.
    It renders fine if you render to either the UNC path or the first mapped drive.
    i.e. If you have two mapped drives G: and H:
    they both point to \\fileserver\share1\folder
    If you render to H: it will fail, if you render to G: it works!  Same path, same user, same permissions.
    The only difference is H comes after G, so it fails... BUG.  If it was to do with anything else, underscores, permissions etc, it would fail on both.

  • Desktops get "Server Not Found" errors with WRT160N

    I'm sharing my WRT160N with 2 laptops and 3 desktops. My laptops connect to the internet ok... drops now and then tho... but my desktops frequently get a "Server Not Found" error. After repeated "try again" clicks, it eventually connects again. Any ideas??

    Try this ;
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave Username blank & in Password use admin in lower case...
    Under the Setup Tab...reduce the MTU value to 1300 and save settings.
    Also reduce the card speed of the dekstop... (assuming it is window XP)..Click on the Start button >>> Control Panel >> Network Connections >> Right click on the ""Local Area Connection"" icon and select properties-Here click on the "Configure" button- Click on the "Advanced" tab- In the "Property" box highlight Link speed and duplex/Connection type/Network or Media type- And in the "Value" box select 10 Mbps half duplex/ 10 base T/10 base half mode and click on OK..  Now restart the computer.

Maybe you are looking for

  • Is it possible to create an own "transition template"

    I have lots of elements that should "pop up". This means they are scaled via keyframes at 0% go to 110% after three frames and to 100% after another three frames. This basically functions as a transition because the graphics disappear the same way (j

  • Error while running the object MATERIAL in T.Code R3AS

    Hi All, When I running the oject Material in T.code R3AS, I am getting the following error. Please suggest how to resolve.      001     The following Errors/Warnings occured. Do you want to continue?      002     MATERIAL: No active entry in Table SM

  • Issue in execution flow in a package

    Hi All, When there are more than 1 steps merging to one command in package, the execution path becomes totally unpredictable. For example, take the path mentioned below, as i can't attach the image, i am mentioning the flow below: Counter (Evaluate V

  • Need urgent help with database startup

    dear all, i am using oracle 10g on windower server 32 bit. i try to startup my database today, and it give me error, and it is my production database, i need very urgent help from you.(i have no rman backup , and the data is not so necessory, since i

  • How do I change the default iPhoto library for the Media Browser?

    I have multiple Aperture/iPhoto Libraries. When I open the new Keynote and attempt to use the Media Browser to select a photo, the pictures the Media Browser displays are not from the Default Libary. Is there a way to change the default photo library