Timescaledata Start Date and Finish Date not both inclusive

From testing a bit with Time Scale Values in Visual Basic I noticed that when specifying Start and Finish dates for accessing Time Scale Data those dates were not both inclusive. The fact is that specifying a Start Date for Time Scale values will return
data for which dates are greater or equal to the Start Date Specified but when also specifying a Finish Date the Time Scale values returned are only the ones that are less than the Finish Date specified not the ones less or equal as one would expect since
the Start date is Incllusive. This is true for actual work with Microsoft Project 2007 and 2013 unsing Visual studio 2013. Has anyone experienced such a behavior? Is this a intended Behavior? Please see following code snippet       

Jaques,
In my example, the ass.start and ass.finish are the start and finish dates respectively of the assignment. Since the resource is assigned full time for the whole duration of the task, the assignment start and finish are the same as the task start and finish,
namely, Dec 1, 2014 and Dec 7, 2014. If you only want data for specific days, say Dec 4, 2014 and Dec 5, 2014, then the syntax would be:
Set TSV = ass.TimeScaleData("12/4/14", "12/5/14", pjAssignmentTimescaledWork, pjTimescaleDays)
The result will be 7h and 8h respectively.
If you want to print out the date along with the hours for each day in the Immediate Window, the following modification to the macro will do that:
Sub testtimescale()
Dim ass As Assignment
Dim TSV As TimeScaleValues
Dim val As TimeScaleValue
Dim i As Integer
Dim Da As Date, St As Date, Fi As Date
For Each ass In ActiveProject.Tasks(1).Resources(1).Assignments
    St = ass.Start: Fi = ass.Finish
    Set TSV = ass.TimeScaleData(St, Fi, _
        pjAssignmentTimescaledWork, pjTimescaleDays)
        Da = DateValue(St)
    For Each val In TSV
        Debug.Print Da & " " & val / 60 & " hours"
        Da = DateValue(Da + 1)
    Next val
Next ass
End Sub
John

Similar Messages

  • SCOM Alert Connector - not updating the start time and finish time

    When I am monitoring the status of connectors in service manager console, I found that for SCOM Alert Connector the Start Time and Finish Time are not updating. Previously it was updated daily. As of now, service manager is working fine but would like
    to check will it create any issues? Even I have cliked on Synchronize Now, but there is no update. Please guide me on this to trouble shoot further? Thanks.

    Hi,
    Based on my research, the Start Time and Finish Time values are not updated when an alert connector is synchronized. These values are only updated when alert data is transferred between Operations Manager 2007 and Service
    Manager.
    More details, please refer to the link below:
    http://technet.microsoft.com/en-us/library/hh495609.aspx
    In addition, here is a blog about troubleshooting for SCSM and SCOM alert connector:
    http://blogs.technet.com/b/servicemanager/archive/2010/04/14/troubleshooting-tips-for-your-scsm-scom-alert-connector.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • Error AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)

    Hi experts,
    We upgraded to ECC6 from 4.7 version last month.
    For some assets we have start deprecation date filled for area 60 with deprecation key LINV.
    We would like to modify deprecation key to 0000 but we have error "AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)"
    Have you any idea to resolve this issue.
    Thank you in advance
    Kind Regards.

    Dear Shankar
    here is what i have in transaction
    001     01/01/02/02          01     01     02     02
    002     01/01/01/01          01     01     01     01
    003     01/06/02/02          01     06     02     02
    004     06/06/02/02          06     06     02     02
    i do not anderstand any thing in this transaction
    Can you help me resolving this issue?
    Thanks in advance.
    Kind regards

  • Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing.

    Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing...
    Can I uninstall existing iTunes without losing my media library?  and then install fresh to fix this problem?

    Hi there kweitkamp,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/TS3299
    -Griff W. 

  • Dateofbirth and start date not same for infotype 2

    Hi Gurus,
    Recently we have applied supportpacks for 4.6c  in development.I am testing for hiring action.What i observed is end date for these infotypes changed to 31.12.1999 instead of 12.31.1999 and in infotype 2 employee dateofbirth  and start date is not same which is suppose to be same.Startdate of infotype 2 is taken as employee hire date.Infotype 2 has timeconstraint 1.when i am trying to enter  date of birth, for some dates it give me an error invalid date. what could be the cause?Help is appreciated
    Thanks

    Hi,
    Please go to SU3 and check for the Date Format under the Defaults tab.
    Hope this helps,
    Reward points if helpful,
    Thank You,

  • Sched.start date not allowing on week-ends for fwd scheduling process order

    Hello Experts,
    For a process order & scheduling typr forward/in time if I take sat or sunday as a start date then if I click on schedule, system changes it to previous workin day (friday). But however if i select backward/in time scheduling type & put week ends as finish day then system does not change this date.
    How can I make system to allow schedule start date on week ends also for forward/in time scheduling type. in a factory calendor sat & sunday are holidays. while for work center, calender sat & sunday are marked as working days.
    Thanks for advance,
    Vijay.

    Hi
    it depends upon client requirement.you must have defined the holiday calender as well.if you select the public holidays in your factory calender.then system will allow you to do your daily transctions on public holidays as well and vice versa.so better go with all options selected .and plz check at your end
    plz revert back if it works
    Regards
    Anupam Sharma

  • User disabled until start date not getting ROs provisioned via AP

    Here's the situation: I have a user in OIM that is disabled until start date. When the start date rolls around, and the job "Enable User After Start Date" runs followed by "Evaulate User Policies," the user is correctly enabled and the correct role gets assigned but the access policy associated with that role does not appear to get triggered so the APs resources are not assigned. However, if a user is entered the same way (via HR recon) but is on or after its start date, then the role gets assigned, the access policy fires, and the ROs are provisioned just fine.
    I have noticed that if a user is moved from disabled to enabled, then the membership rules fire and any roles associated with the rules get assigned but in the DB the field USR_POLICY_UPDATE remains null. If I update that field with a '1' and re-run "Evaluate User Policies," the resources are provisioned correctly.
    I am wondering if anyone has seen this before or has a suggestion as to how to resolve this.
    Thanks,
    Stephen

    Thanks for the suggestion. As it turned out, I did not have Retrofit checked but unfortunately that did not resolve the issue. The behavior remained the same after checking and re-running 'Evaluate User Policies'.
    I may have a workaround for this issue that I am in the process of implementing. I'm creating a job that will run right before 'Enable User After Start Date' that will update the USR_POLICY_UPDATE field to'1' if the status of a user is 'Disabled Until Start Date.' Then the user will get enabled, assigned the appropriate roles via rules, and 'Evaluate User Policies' should run and now find this user and apply the access policies.
    Anyway, seems like there should be a simpler answer so I'll keep checking here if anyone has one. I'll also update if the above workaround works.
    Thanks,
    Stephen

  • Billing Plan Start Date not copied to Sales order from Service Contract

    Hi
    We are developing a process of Creation of Service Contract and then a order confirmation.
    Now based on the Order Confirmation will bill based on the Bill Plan.
    The Bill plan start date in contract header is not flowing to Sales Order header while creating with reference.
    Then navigating to Header Billing plan and if we input the date the billing plan dates are displayed.
    We checked the copy control settings and seems like the date is not copied.Is this a standard behaviour.
    If so then do we have any work arounds to achieve the same. Because the contract start date can change before confirmation.
    So business wants a sales order confirmation to be created after contract creation and bill periodically as per the Sales order instead of contract.

    Hi,
    Appreciate ur quick response. But instead of FKDAT i need the FPLA-BEDAT to be flowed to Billing Plan.Right now iam entering the following date manually at header.Instead if it copies from Contract header then manual entry could be neglected.
    Is it possible with the same routine to code with the above mentioned FPLA-BEDAT.

  • Waranty start date not correct

    I bought a Pavillion P6-2330 "off the shelf" from the HP online store in early February, 2013. A few days after setting it up, a pop-up appeared offering to sell me an extension to my warranty. The start date shown in the pop-up for my warranty was November 7, 2012 - over three months before I received my computer. I called HP, and found out that my computer was MANUFACTURED on November 7, 2012. My warranty SHOULD HAVE started on the day in February when I recieved it. After I faxed my receipt to HP, they adjusted my warranty to the correct date in February of 2013. How many out there don't know about this, and have shortened warranties?
    You can check your warranty start and end dates in the HP Support Assistant, under the Warranty tab.

    Hi,
    Usually warranties start at the time of purchase.  I wonder if someone else had previously purchased the PC and then had returned it for some reason.
    Years back, I ran into warranty issues when the manufacturer had started that warranty on the ship date. I finally got the manufacturer to change that to date received (delivered).  The cost of a warranty day on very expensive equipment does add up.  Additionally, the time to return the device for a refund is also shorten if the ship date is used.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Grey Screen on Start up and Hard disk not working

    Hi , I was working and suddenly some popping noises came out of the hard drive. I tried to save my work but i couldn't because it got "stuck". I had to turn it off and when I restarted a grey screen appeared without the apple logo. It won't start up and starting from cd, safe mode, single user mode don't work. I reset the PRAM too and nothing works. I'm worried about recovering the data... what should I do? I have work there that i need!!!
    thanks

    thanks for your reply. I took my powerbook to 2 apple authorized technical service and both of them told me that they couldn't get the data using disk warrior.
    I already removed the hard drive and replace it with a new one. However I still want to recover data. I plug the hard drive to my home powermac with a usb connector and using disk utility and terminal i was able to "see" the drive but not mount it. In disk utility the drive appears as 0 bytes.
    I want to try using Terminal or Single user mode to mount the hard drive, and/or repair it and try to recover some important files that I urgently need. Do you know how?

  • Start Firefox and homepage is not displayed; cannot navigate back to previously viewed pages using back or forward arrows; bookmarks toolbar not available on start-up though selected in options menu.

    1. Start firefox and my homepage is not displayed--there is no webpage displayed on initial startup. A homepage is listed in the options menu. In order to see homepage I need to manually press the home icon to the right of the search box.
    2. I am not capable of using the navigation arrows to the left of the address bar to navigate to previously viewed webpages. The arrows are present but are gray. Is there a setting in the security tab of the options menu that disables the navigation arrows for security purposes (i.e. not remembering webpages or cookies, etc.)?
    3. Though the bookmark toolbar is selected in the options menu, the bookmarks toolbar is not visible when starting firefox. Instead there is a red firefox toolbar located at the upper left of the screen. In order to view the bookmarks toolbar I need to go into the options menu and de-select the bookmarks toolbar (causes the red firefox toolbar to disappear) and then re-select the bookmarks toolbar.
    Any information to help correct these issues is greatly appreciated.
    Mike

    ''framerotblues'' suggestion worked for me. I was having the following problems after 10.0 update:
    >No back/forward buttons.
    >Nothing in address bar.
    >Bookmark toolbar would not automatically load. Even though it was checked as a toolbar to view, I had to uncheck and check it again every time I closed/opened Firefox.
    >Could not access add-ons. Neither through menu toolbar nor using ctrl-shift-a
    Restarted Firefox with add-ons disabled (help->restart with add-ons disabled). Removed ''Facebook Disconnect'' from add-ons. Restarted and everything seems to be working.

  • Settling Rebate Agreements with Validity Start Date not Start of the Month

    Hello Experts,
    I am currently trying to settle a rebate agreement with validity dates November 20, 2011 to December 31, 2011. However, after the credit memo is created, I noticed that the Service rendered date is today's date, but I expected it to be the same as my Settlement Date = November 30, 2011 (a month-end). Please advise if this is normal. If not, please advise how to correct the automatic entry of dates.
    Thanks,
    M

    Hi
    Kindly let us know what is the rebate agreement type that has been used for which you are facing problem and for which rebate agreement type you are getting the month end date.Check wheather scale basis is B(Value scale) has been maintained or not for the rebate agreement for which you are getting problem.So check the differences between the two rebate agreement types.As The service rendered date of the invoice line item is used to determine the validity of a rebate condition record
    Regards
    Srinath

  • I can't sync my playlists.says syncing and finishes but not synced?

    Everthing is up to date and working properly but if I make a new playlist it will not sync?Iphone 5 imac 10.9.1

    I have this issue too! However it only appeared yesterday.
    I am a dance teacher and use my phone for all my class playlists. Earlier in the week I uploaded a couple of my Christmas class playlists fine, however last night I was unable to upload my list at all and ended up having to drag my laptop out with me in order to work!
    I have tried turning both phone and laptop off, I have since loaded the lastest version of Ios 8.1.2 which doesn't appear to have done anything. And now I have seen a whole heap of issues in a similar vein encountered by other people.
    I appreciate that I am using an old phone (iPhone 4s) but I had not changed anything prior to this issue appearing last night. I did encounter it briefly some months ago... and vaguely remember sorting it by checking the names of all the music styles that I wanted to have appear on my iPhone, but that seems a very long-winded way of ensuring that my playlists are updated.
    Any tips would be much appreciated.

  • Since the last Firefox update my computer automatically goes online at start up and I do NOT want to do this, so how can I discontinue?

    I've searched through my system preferences and Firefox preferences and both helps and cannot figure out how to prevent the computer from automatically going online (using Firefox) when I start it up. I do not want this to happen because the computer will be online when I am not using it; this poses security problems. In addition, this happened after the latest automatic update of Firefox and makes me wonder if someone is invading my privacy. I only want to go online when I open Firefox.

    Uncheck Edit > Preferences > Store > Show iTunes in the cloud purchases
    The correct way to move iTunes from one computer to another is to copy the ENTIRE iTunes folder from the old computer (or backup of the old computer) to the new computer.  This will make everything in iTunes on the new computer exactly as it was on the old computer.

  • I have one app that just randomly started crashing and now will not open

    I have an app- Game of war, that I liked to play. well one day it just crashed. I did all sorts of things; reset my warnings, deleted it, rebooted, even upgraded to the newest firmware and it still wont work. it just opens to a crash report screen, but even if i put in the report, it just quits. I went to the website and have been talking to the "developer team" and they cannot figure out what is wrong. I even sent them my crash reports. that was two months ago. anyone have a clue? This is the only app that does it. No other app does.

    Backup the iPad first, delete the app, reinstall tha app and then restore from the backup in order to recover your data.
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766
    Bottom line ....what good is having the data if the app will not open anyway?

Maybe you are looking for