Resource update - inactivate resource that doesn't exist in AD anymore

hello forum members,
i am trying to write code that goes through all resources and updates some custom fields. However, something must have been set up wrong because I am getting a lot of users who are no longer exist in the AD group that is synced to the security group in Project
Server and my code keeps erroring out.
can anyone recommend any code on how to inactivate users who no longer exist in AD?
 if (checkedOut)
                        SvcResource.ResourceDataSet updateDs = resourceSvc.ReadResource(resourceRow.RES_UID);
                        if (check here if resource is a valid resource)
                            updateDs.Resources[0].RES_CODE = "A" + rand.Next(1000, 9999);
                            Console.WriteLine("Update RES_CODE to " + updateDs.Resources[0].RES_CODE);
                            resourceSvc.UpdateResources(updateDs, false, false);
                            Console.WriteLine("Check in " + resourceRow.RES_NAME);
                            resourceSvc.CheckInResources(new Guid[] { resourceRow.RES_UID }, false);
                        else
tatiana

Hi Tatiana,
The AD sync doesn't remove from Project Server users that are not anymore in the AD. It simply
deactivate them.
Thus I guess you have to insert a condition to exclude inactive users.
The Reporting DB contains the field [ResourceIsActive] in the [dbo.MSP_EpmResource] table.
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS |

Similar Messages

  • How do I update apps under an old apple id email that doesn't exist anymore and have forgotten the password?

    I want to update some apps on my iphone but can't because it's asking for an old apple id email that doesn't exist anymore and I have forgotten the password for it!
    Help!!!

    The apple id login is never deleted. The emaill address itself can be disabled or not in use any longer. The apple id login will still be available to you. If you will go to the website My Apple Id
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    and use the listed apple id login that your apps are asking for to update - once you have changed the password at the lsted website you then will be able to update using the old apple id once you have logged into the device using the old apple id and password.
    Good luck.

  • ICloud has my old Apple ID and is prompting for a password, but I want to put in the new id, I can't because it is grey and there is no edit option.  I'm prompted for a password to an account that doesn't exist

    iCloud has my old Apple ID and is prompting for a password, but I want to put in the new id, I can't because it is grey and there is no edit option.  I'm prompted for a password to an account that doesn't exist.  Anyone know what I can do to fix this or why this is happening.?  I had no issue putting in my new Apple ID everywhere else, I could sign out of the old and inactive account and then sign back in using my new and proper one.  However, after the update to 7.3 it did a whole welcome to yr iPad and a set up thing and it went to set up iCloud and had my old Apple ID in grey where I can't change or edit it, it wants the password, when I put in the old password, it say yr Apple ID is incorrect but yet it won't let me change it??????? Anyone???

    Sign out and back into your apple id from Settings>iTunes and App stores>(Your apple ID)>Sign Out and then sign in again with the new address. Close app store from running in the background (or restart the phone if your unsure how to do this). If when trying to update any apps they are still asking for the old apple ID, delete and re-install those apps.

  • How to deauthorize a computer , that doesn't exist anymore?

    I unisnstalled windows , and for some reason when i inserted my ipod to the freshly installed windows+itunes , and logged on my account , iTunes said , that its a new computer and asked me to authorize it , and so i did.
    My question is: how can i deauthorize my old version of windows , that doesn't exist anymore?
    I also have another question in this topic : When i want to buy items from itunes from a new device , it asks for my bank card number , and takes 1-2 dollars from it. Is this ok?

    Take a look at this Apple support article; it may help:
    One computer using multiple iTunes Store authorizations
    When i want to buy items from itunes from a new device , it asks for my bank card number , and takes 1-2 dollars from it. Is this ok?
    I'm not sure what you mean by this. What "items"? If you are referring to music, videos or movies, you get only one download per purchase, so if you buy the items again, whether from another device or the same one, yes, you will be charged again. Only apps allow redownloading without additional charge.
    Regards.

  • When I set up my iPhone, I accidentally put in an apple ID that doesn't exist. Therefor, I don't know the password and can't delete my account from iCloud. Can anybody help?

    When I set up my iPhone, I accidentally put in an apple ID that doesn't exist. Therefor, I don't know the password and can't delete my account from iCloud. I was trying to sync my contacts to my iPad and now it's not possible without iCloud on my phone. Can anybody help?

    Have you tried changing the admin password in System Preferences > Users & Groups > Password   ??
    The Apple ID that is associated with your admin password is noted there.
    message edited by:  cs

  • How to I get rid of an "Open With..." option that doesn't exist?

    I've tried to find out how to remove an element of the "Open With..." options but don't seem to be getting much traction. I have an old application listed in the "Open With..." pull down menu that doesn't exist anymore, but when I select the file, using command-i, to change which application opens the file, it works for that file. I want to change association using the "Change All" button, but when I do that, the "dead" application becomes the default application again and I'm back to square one. Is this fixable? How do I get rid of the useless option? Will I have do do this for each file?

    your link gave me a good starting place...
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -R -all -domain local -domain system -domain user
    this seemed to do the trick... I would have never have solved this without your suggestion.
    thanks.

  • Hello, I got a new computer with the old harddisk. Can't play my itunes music because not authorised. Apple ID is very old e-mail adress that doesn't exist anymore. When chose for secret question brth date seems wrong. Can't reach anyone!!!

    Hello, I got a new computer with the old harddisk. Can't play my itunes music because not authorised. Apple ID is very old e-mail adress that doesn't exist anymore and I forgot the password (5 years old??). When chose for secret question birth date seems wrong. Tried everything. I need to make a new apple-id but cannot connect the music that I bought under my old name to my new name. Can't reach anyone!!! Automatic FAQ system is of no help. What to do?

    That doesn't help me. For itunes it brings me to the express lane which doesn't help because my case is not in it. It's all standard procedure things. I understand those but my situation is different. The combination of a passport forgotten and an non-existing email adress (and birth dates that are not correct or not accepted). What I need is my password emailed to another email adress than the original one because that no longer exists.

  • Paid with a credit card that doesn't exist :S

    Hello,
    I think I have a problem.
    When I first started with Itunes I didn't liked the idea of filling in my creditcard nummer.
    I just answerd a number like 12345678 now I thought I already had changed the number into my own credit card so I bought a song.
    Later I saw that I bought it with the credit card that doesn't exist...
    How can I pay my song now?
    Melissa

    Romania
    0800 894847
    Contact Apple for support and service
    http://www.apple.com/ro/support/
    Or try by a chat
    https://getsupport.apple.com/Issues.action

  • IPhone 5 shows data in Photos that doesn't exist.

    iPhone 5 shows data in Photos that doesn't exist.
    iPhone 5, 16GB running iOS 8.1.2.  Service through Verizon. iCloud Photo Library (Beta) is off. My Photo Stream is off. iCloud photo sharing is off.
    Under "About" in settings it says there are 32 Videos and 429 Photos on the device with a capacity of 12.6GB and 7.0GB available.
    Normally, I used to import photos and videos from Preview and manually delete them on the phone, until I realized this could also be done in Image Capture with the ability to delete all of them with one click, which is what I did this time (I have done it through Image Capture at least once before).
    I've tried in this order:  Creating an empty folder and syncing to it through iTunes.  That didn't work, so I created a backup on iTunes, completed the "Erase All Content and Settings" option on the phone and then I restored from that backup.  Still no luck but I'm wondering if I just saved the issue in the backup and restored back to it.  I really don't want to do a complete erase and start over, but if there are no other options I will try it.
    Ideas? Thanks in advance.
    EDIT: Photo shows iPhone in iTunes after restore.

    I tried this and it did work for me! It was on a separate posting.
    Good luck!
    scabthepoetMar 15, 2015 2:00 PM Re: My iPhone 5 camera roll is empty, but under usage says 3.1GB - how can I delete?
    Re: My iPhone 5 camera roll is empty, but under usage says 3.1GB - how can I delete?in response to armccoyHelpful
    I've been searching for an answer to this very problem for a solid day. Here is what I did that worked for me. No reset. No need to upgrade to more Cloud storage or anything else. I had already deleted out every picture from my phone, including "Messages" and the "recently deleted" album, etc. There really are phantom pictures in there, but the only way to see them and delete them is to:
    Go to Settings
    Date & Time
    Untoggle "Set Automatically"
    Manually change the date back. For example, if today is March 15, 2015, choose August 1, 2014. (You can change it back once we're done)
    Close out of that
    Open "Photos"
    Select "Albums"
    If, like me, you had already cleared out everything from the Camera Roll and "Recently Deleted" folder, you'll smile to see that your "Recently Deleted" folder now has thousands of images back. Those are your phantom photos
    Open it, "Select" and start deleting
    Now, go back into Settings - General - Usage - Storage - Manage Storage - and you'll notice your Photo & Camera is empty if you deleted everything
    I hope this works for everyone and that I saved you all the time I wasted searching for an answer myself -- only to never find one. Now you have the answer.
    I went from barely having any room left on my phone to almost brand new again.
    Take care.

  • Itunes authorization for an account that doesn't exist?

    My new MacBook is asking for an Itunes store authorization for a particular song under an account name that doesn't exist. My apple ID is an old e-mail address; I've already successfully authorized the computer to play songs from that account, into which I can log in with no difficultly. The account name that is supposedly attached to this song is a newer e-mail address (maybe I unsuccessfully tried to change the Apple ID at some point?), but when I click on "forgot password" in the authorization window, it says that the account for which it had prompted me to authorize doesn't exist. Suggestions?

    Click here and fill out the form for assistance.
    (34501)

  • ISync Error Message "you can't modify a record that doesn't exist...."

    "[ISyncConcreteSession pushChange:]: you can't modify a record that doesn't exist: <ISyncChange 0x3215870>{ modify record id 'BE86E203-EC1F-4F3E-A2F2-180EC5FA5210'
    set com.apple.ical.type = local
    set title = Unfiled }"
    I have 2 macs connected to the .mac sync and until recently the flow of info between them (mostly iCal) has been smooth. Now it appears to not be working.
    thoughts? thanks.
    --Kevin

    wrong forum, sorry.

  • Album that appears in my Web Gallery that doesn't exist in my iPhoto 08?

    I posted an Album then tried to delete it and it's still there. Now I have two Albums with the same name. How can I delete it when I can't even see it in iPhoto? URL: http://gallery.mac.com/rickvargas123#gallery
    The Tokyo Album with 82 photos is the one that doesn't exist in my iPhoto. The Tokyo Album 112 photos is the one that does exist and is editable.
    Anyone know?
    Rick

    Rick:
    Mount your iDisk and go to the Web/Sites/-gallery folder. See how many folders are located in there. You might have to delete them all via the Finder and republish your galleries again.
    By the way, your 112 Tokyo gallery is listed at 101 photos when I visit. Wonderful pictures.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • TypeError: Error #1010 on code that doesn't exist.

    Hello all,
    I have a drop down menu with 7 options. The menu is a movie clip with a mask that reveals each of the buttons when a person mouse_overs the menu button. Each menu option does the same thing, it will call a function based on the button clicked. The function for each button does the same thing:
    function INDEX_Safety (e:MouseEvent):void
              play();
              INDEX_SAFETY=true;
              Sound_Stopper ();
    Each of the functions will change the value of its respecive boolean variable. One for each button. Sound Stopper is a function that stops any FLV Sound that is currently playing.
    When it goes through play() it will come to a particular frame that has:
    Index_Jumper ();
    this function determines which boolean has been set to true, and does a gotoAndPlay("Label Name") based on the boolean that has been set to true. Then sets the boolean back to false.
    function Index_Jumper ():void
              if (INDEX_SAFETY==true){gotoAndPlay("Safety"); INDEX_SAFETY=false;}
              if (INDEX_TOOLS==true){gotoAndPlay("Tools and Positions"); INDEX_TOOLS=false;}
              if (INDEX_METHODS==true){gotoAndPlay("The Methods"); INDEX_METHODS=false;}
              if (INDEX_METHOD1==true){gotoAndPlay("Method 1"); INDEX_METHOD1=false;}
              if (INDEX_METHOD2==true){gotoAndPlay("Method 2"); INDEX_METHOD2=false;}
              if (INDEX_TDBL==true){gotoAndPlay("Installing TDBL"); INDEX_TDBL=false;}
              if (INDEX_RAISING==true){gotoAndPlay("Raising the Stand"); INDEX_RAISING=false;}
    The issue i am having: When i click on the 6th option, TDBL, i get the error:
    TypeError: Error #1010: A term is undefined and has no properties.
              at RaisingtheOperatorsPlatform_fla::MainTimeline/frame147()[RaisingtheOperatorsPlatform_fla. MainTimeline::frame147:10]
    It says frame 147:10
    From my understanding this means the 10th line on Frame 147.
    This is my frame 147:
    1. stop ();
    2. Caption ();
    3. IndexMC.Safety_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Safety);
    4. IndexMC.Tools_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tools);
    5. IndexMC.Methods_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Methods);
    6. IndexMC.Method1_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method1);
    7. IndexMC.Method2_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method2);
    8. IndexMC.TBDL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
    9. IndexMC.Raising_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Raising);
    I dont have a 10th line.
    also, when i click the 7th option, nothing happens. However, options 1 - 5 on the drop down menu work just fine.
    Thanks for any insight.

    Right after posting that, I got an idea to try adding the following to frame 1:
    addEventListener(Event.ENTER_FRAME, Frame_147);
    function Frame_147 (event:Event):void
              if (currentFrame==147)
                        stop ();
              Caption ();
              IndexMC.Safety_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Safety);
              IndexMC.Tools_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tools);
              IndexMC.Methods_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Methods);
              IndexMC.Method1_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method1);
              IndexMC.Method2_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method2);
              IndexMC.TDBL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
              IndexMC.Raising_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Raising);
    I then commented-out frame 147.
    the error i got pointed to line 36 of frame 1, which is:
      IndexMC.TDBL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
    Being able to focus on this, i see that i have IndexMC.TBDL instead of IndexMC.TDBL, i think this was one of those "been looking at this thing for too long" errors. Thank you for looking into this, the problem is now solved. As for the error pointing to a line that doesn't exist:
    I still have no idea why it would say the issue was frame 147:10

  • TS1398 Network asking for username that doesn't exist

    I'm trying to use a coffee house wifi with my new iPad 4 mini.  It's asking for a username that doesn't exist. Thoughts?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
     Cheers, Tom

  • Need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any idea

    need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any ideas? Is this now customer service or does adobe have a customer service team . Site not user friendly. Thanks

    Graham Giles wrote:
    Have you seen this type of problem before? I think it could be a serious issue for anyone in a similar position.
    No; but then, I've not had occasion to use TDM. I've been using firerwire drives for over 10 years, both FW400 and FW800, with no issues except a bit of instability using a B&W G3 machine.
    TDM should be safe. Using cautious, manual copying of files from the Target machine to the Host machine should not result in unexpected loss of files or damage to the Target drive's directories. It should behave exactly the same as if it were an external (to the Host) firewire drive.
    •  I don't suppose there is anything I can do to 'put back' lost items from a separate Time Machine drive which has an up to date backup on it.
    There is probably a way to do that - seems to me that's one of the reasons for a Time Machine volume.
    On the other hand, if the Time Machine volume is rigidly linked to the now-absent OS on the original drive, there may be no way to effectively access the files in the TM archive.
    I know that using a cloned drive would work well in this instance.
    I have no experience with Time Machine, so perhaps someone who has will chime in with suggestions.
    With the machine in TDM with the other machine, have you tried running Disk Utility to see if you can effect repairs to the drive?

Maybe you are looking for

  • I am getting error while attaching Menu Module to FORM

    Hi to everyone, I have created a Menu Module(mmx file), now i am trying to attach that menu to a FORM, I have entered the proper Menu Module address in the property window of that FORM, but i am continously facing the following problem. FRM-40738: Ar

  • Help! Lots of devices, one apple id & chaos!

    Help please! I have one apple id and 2 devices are mine (ipad & iphone) but I also have 2 ipods that belong to my kids. How do I ensure that all the contacts that are on their ipods are NOT the ones in my phone? Also, I've loaded icloud onto my lapto

  • Call Event from One View to another View

    Hi All, I have 2 views in my Webdynpro application .View 1 has a input field and View2 has a button. When the user enters a value in the input field and clicks on Enter, i want to call the button action in View2. I created Navigation link from view1

  • Epson Printing Problem with CS3

    My Epson Stylus Pro 9600 has a problem with CS3 printing. When printing large images (i.e. 36x60) a portion of the image would be missing at the bottom (blank) The 10.01 update addressed this issue but it seems not completely. The problem was attribu

  • I have a macbook pro, installed leopard last year. Last week the keyboard is acting up, I cannot use uppercase, lowercase, numeric, etc, numeric,

    I am using macbook pro, been having a problem with my keyboard. Suddenly the uppercase, lowercase, numeric, etc are not working properly. I even cannot submit question to Apple, because I cannot type my password properly. Thank God I have this ipad,