A Playlist based on last played date gets reset randomly

The playlist I use most of the time is one that shows music that hasn't been played in the past 120 days.  Lately, at random intervals, the playlist gets reset as if iTunes has forgotten what I played the past day or so.  So some songs are having their last played date set back to an earlier time (or maybe a random earlier time, I can't be sure).  It looks to me like it's not just what has been played the past day or so that is being affected, but songs that have been played earlier, but not all of them.
I've tried restoring the iTunes Library.itl and iTunes Music Library.xml files from a backup of the previous evening, and when I open iTunes things look OK, but within a minute after starting up the playlist will get reset again. Any thoughts on why this might be happening and how I can hopefully fix things so it won't happen?  Thanks very much for any ideas anybody can offer.

Hi,
Thanks for you replay and documentation, but it doesn't give me excatly the functionality I'm after. The only MTD calculation code the document provides is the calculation of the following functionality:
"Month to Date (MTD) u2013 From the 1st of month to u201CKey Dateu201D - for current year." This doesn't give the the functionality I want, which is to retrieve a given vaule for a Key Figure for the last dates of the months in a year to calculate MTD and YTD.
This way I have created the query is to have multiple hidden Key Figures that calculates the MTD and YTD.
In Columns in Query Designer it will look something like this:
Selection: MTD January--> Date = 31.01.2008, Key Figure (Always Show)
Selection: YTD January --> Date= 31.01.2008, Key Figure (Always Show)
Selection: MTD February --> Date= 29.02.2008, Key Figure (Always Hide)
Formula: MTD February --> MTD February - MTD January (Always Show)
Selection YTD February --> Date = 29.02.2008, Key Figure (Always Show)
And so on....
This is off course a simplified version, but it shows the core of the solution. What I want to achive here is that the dates used to get the Key Figures (last date of a month) is calculated as flexible as possible, so that the users can go back and forth in time without worrying about the leap year problem and so on. I have now used an offset from the last date of last year and this is good for all the normal years, but when it is a leap year the query will use wrong dates to get the key figure vaule for the last date of each month.
Any ideas on how to achieve this without creating 12 different Customer Exit variables (one for each end date of each month)?
Thanks
Regards
Oddmar Lid

Similar Messages

  • IPod Shuffle 2 no longer updating playlist play count and last played date

    I use my shuffle 2 in the gym.  When I'm done working out I sync and the most recently played songs are rotated off using a smart play list.  This is no longer working.  I reset the shuffle 2, I've forced sync and auto filled many times.  My latest workout it still lists all the songs I just listened to in the order I listened to them and has their last played date as many months ago.
    This seems to be affecting my other iPod too, but it is tougher to diagnose.  I signed up to iTunes Match and after several days that is still running but I noticed this problem long before iTunes Match became available in Canada.  Both my iPod Shuffle and iTunes are up to date but my music is on an older but upgraded Mac.  It has a G4 so no Lion upgrade, I just checked it is 10.5.8

    All my tracks should be MP3s or AAC.  I ripped them myselfs with iTunes.  I may have bought some songs directly off of record labels or some other online music store, but I own my music legally whether I bought it on CD or got given it by magazines or record labels.
    I went to the gym today.  I set the shuffle to random.  Some songs were synched back to iTunes but they weren't the songs I listened to, at least not all of them.  Some of them may have been the songs I listened to last workout, at least one or two of the songs updated I did listen to today.
    I listened to some other songs last night on my main Mac so it is easy to determine which songs iTunes updated this morning.
    I haven't had much time to play with Match.  It is still updating and uploading, it has 6000 songs to go.  That means in a half month of trying it has managed to find and/or upload a little over 1000 songs actually close to 2000 now.  It is something, but it isn't the service I was sold.  All my songs and playlists were supposed to be available in the cloud.  That hasn't happened and in the case of my smart playlists will never happen. 
    I'll read you link, but I wrote a blog posting how I was disappointed with the service so far.
    Thanks!

  • First Generation Ipod Shuffle: Play count and Last Played date

    I have a 1st Gen Ipod shuffle that works great in all other respects but it doesn't track the number of "plays" or the "last play" dates. Which means I can't use the "Smart Playlists" Itunes feature to be sure that the music on it stay fresh, non-repetitive. Another problem is if I listen to a podcast on the Ipod Shuffle then in Itunes the podcast appears as though it has never played before. This gets confusing as I listen to a number of podcasts.
    I have tried resetting and restoring the Ipod shuffle. Is there anything I can do to it to make it track the number of plays or last played dates?

    All my tracks should be MP3s or AAC.  I ripped them myselfs with iTunes.  I may have bought some songs directly off of record labels or some other online music store, but I own my music legally whether I bought it on CD or got given it by magazines or record labels.
    I went to the gym today.  I set the shuffle to random.  Some songs were synched back to iTunes but they weren't the songs I listened to, at least not all of them.  Some of them may have been the songs I listened to last workout, at least one or two of the songs updated I did listen to today.
    I listened to some other songs last night on my main Mac so it is easy to determine which songs iTunes updated this morning.
    I haven't had much time to play with Match.  It is still updating and uploading, it has 6000 songs to go.  That means in a half month of trying it has managed to find and/or upload a little over 1000 songs actually close to 2000 now.  It is something, but it isn't the service I was sold.  All my songs and playlists were supposed to be available in the cloud.  That hasn't happened and in the case of my smart playlists will never happen. 
    I'll read you link, but I wrote a blog posting how I was disappointed with the service so far.
    Thanks!

  • Last Played Date

    I have ran a script to reset the Last Played Date on some of my songs...
    After iTunes syncs up with iMatch, the Last Played Date reverts back to what it was...
    How can I update iMatch with the no Last Played Date?
    I do this because I have Smart Playlist that used the Last Played Date and I want to add some song back into that Playlist, but not others.  I can edit the Smart Playlist to let the Last Played Date, but that adds the songs I don't want back into the Smart Playlist that I don't want in there yet.
    tommy

    1. Does this not update from the iPod to iTunes if the iPod goes to sleep before being docked? It seems to me that sometimes the last songs I played ion the iPod do not register as being played after the iPod is docked.
    In some cases, using older firmware, yes, this will occur. Update the iPod firmware to the latest one.
    2. Does the Last Played get updated both ways - from iTunes to the iPod and from the iPod to Itunes?
    Yes.
    For example, what if I play the same song on the iPod AND on my PC in iTunes. Which date would be updated on the iPod and which in iTunes?
    Whichever one is later would get stuck in there for the last played date, on both the iPod and in iTunes. This would happen when you synced the iPod.

  • ITunes 11 no longer updates the song play count or the last played date/time on Win7 and on Macs

    I've downloaded and installed iTunes 11 on 2 Win7 PC's, on my Macbook (Mountain Lion), MacbookPro (Snow Leopard) and new Mac mini (Mountain Lion). The song "play count" and "last played date/time" do not update after playing songs on any platform. This problem needs to be corrected as I have 2 iPods and an iPhone that I like to sync every few days. I have not tried the sync yet and will not as long as this problem persists.

    I read another similar post about this same issue, where it was said the the "next play" list could be cleared to get the play count and last played date/time to update. That is true, however iTunes stops playing from the playlist entirely - all you hear is the single song. This is not any sort of upgrade or fix. For the sake of one nicety, Apple programmers have broken a fundamental feature and function. This is not good!

  • Last played data not syncing

    This is the first time I've had this problem. I synced the iPod tonight (click-wheel version) and the last played data since the last sync didn't migrate into iTunes. I tried uninstalling and reinstalling iTunes without any luck, and several attempts at syncing all gave the same result.
    Any suggestions? My iPod hasn't been giving me a whit of trouble that I could tell.
    Windows PC, Dell Optiplex SX270   Windows XP  

    iTunes match has been having problems with play counts and last played data for a long time now. It actually seemed as if it was fixed before the iOS 6 release it would just take a couple days for the information to update. Sometimes it would update the play counts by 2 instead of 1... Now it seems as if it's broken again. I've been keeping my eye on a certain song I purchased Thursday and watched over the weekend. So far all that's updated is the rating and it gave it 2 play counts (I've played it around 5 times) it still does not have the last played data..
    I hope they can at least get iTunes Match back to where it was before the release, at least we had some kind of update...

  • Deletion of bookmarks from RSWR_DATA table based on 'Last access' date

    We want to delete the 7.X bookmarks from RSWR_DATA table based on ‘Last accessed’ date. The program RSWR_BOOKMARK_REORG does not provide the selection criteria to delete the bookmarks based on last accessed date.
    Is there any alternative program that deletes bookmarks from RSWR_DATA table based on last accessed date?
    Please advice.

    We want to delete the 7.X bookmarks from RSWR_DATA table based on ‘Last accessed’ date. The program RSWR_BOOKMARK_REORG does not provide the selection criteria to delete the bookmarks based on last accessed date.
    Is there any alternative program that deletes bookmarks from RSWR_DATA table based on last accessed date?
    Please advice.

  • Number of plays and last played date

    In the current version of iTunes, it no longer seems to update the number of plays for a song or the last played date. (Actually, it does update the date intermittently, but for the most part that feature is no lomger working.) Anyone know how to fix either of these problems?

    Do you have crossfade turned on? Several people have reported that it breaks play count updating.

  • How do I delete Last played date?

    I've searched the boards to no avail. Is there a way to delete the last played date? I saw a post with an applescript but it wasn't available and I have Windows anyway.

    Hi Repent34,
    To delete the "last played date" column, just follow this steps:
    -Open iTunes and stay on the main library;
    -You should see a big column on the top of the window, with some information ( Name, Album, Rating...) and should be also "Last Played Date" column too;
    -Right-click on one of those columns and it will appear all the information available on see;
    -Just uncheck "Last Played Date" feature.
    Hope this helps!

  • Reset last played date and date added

    Is it possible to reset the last played date and the date added?

    g.
    Doug Adams has a script on his site that allows you to copy tag data from one track to another.
    http://dougscripts.com/itunes/scripts/scripts09.php?page=1#copytinforackstotrack s
    It will allow copying last played date, but not date added.
    I suppose you could drag all the songs you wish to change out to the desktop then delete them from iTunes and reimport the songs.
    Matt

  • Bug in newest version of iTunes: last played data not updating after songs are played

    I just downloaded the newest version of iTunes on my Mac. The "last played" data is not updating automatically after a song has finished playing (even after waiting for a while). Sometimes in the older versions it would take 5-10 second for the data to update automatically, but even after several minutes, "last played" still shows as if the song had not just been played.

    RestonMacGuy wrote:
    I did something similar, but not the same: I "played" a few tracks from the iPod (fast-forwarding until about 30 seconds from the end) while the Shuffle was connected to my computer and in iTunes, which then caused the "Last Played" field to be updated.
    The next time I connected my Shuffle, the Last Played values were updated.
    I bet the Last Played was updated after you stopped playing the tracks...IN FACT. if you were watching your shuffle icon, you might have noticed the rotating thingy to the left of the eject symbol, meaning an update was ongoing.
    This will happen AS LONG AS the track has "remember playback position" set.

  • Has anybody noticed that Last played dates do not update?

    I have recently noticed that the playcounts and last played dates are not updating. When you play a song it does not update the last played date.
    Did anyone come across with this issue

    Yep, same for me. When i play on my iPhone, it doesn't update in iTunes using iTunes Match.

  • Last Played Data with Multiple devices

    All:
    My household has 2 iPod Classics used for playing music and they're both synced to the same iTunes library.  I've got a ton of smart playlists that are dependant on the "last played" and "last skipped" fields to keep fresh stuff in them.  Most are set to include ratings greater than 3 stars and exclude songs played or skipped in the last 3 weeks.  If I listen to a track on Monday at work and sync iPod #1 that night, it'll seem to update fine with what was played that day.  Then at some period later (say Wednesday) I'll sync my wife's iPod (#2).  The next day at work, I'll hear the songs I heard on Monday back in my playlists.
    So does the sync from iPod # 2 just flat out overwrite the existing play data from iPod #1 in iTunes even if the dates in iTunes are more recent?
    Thanks!

    Well I've found a workaround on some guy's blog page.  It's here:
    http://jimcofer.com/personal/?p=8775
    I tried this and it works for the problem I was describing above.  What I did isn't exactly what he was shooting for, but it works nonetheless.  Here's what I did:
    1.  Played a few tracks on iPod #1 to create some data.
    2.  Played about 30 seconds of a Podcast on iPod #1.
    3.  Plug in iPod #1 and sync.  Verify that play data is there by viewing all music sorted by Last Played field.
    4.  Play a few different songs on iPod #2.
    5.  Play about 30 seconds of a Podcast on iPod #2.
    6.  Plug in iPod #2 and sync.
    7.  Look at all music sorted by Last Played and note that tracks played by iPod #1 before the sync of iPod #2 are still showning the play data from a few minutes ago.
    So apparently, you have to play a non-song item for it to "close" the database or something along those lines.  Whatever.  Seems hoaky, but if that's what it takes to get my smart playlists to keep ticking, I guess I do it.

  • 'Last Played' date does not sync from ipod to itunes

    Hi, I've looked through the forums and can't find an answer to this, but apologies if this has already been answered elsewhere.
    I'm using itunes 7 with Windows XP and a 20gb 3rd gen ipod. I have a number of smart playlists which are based on the date songs were last played, but recently this hasn't been updated from ipod to itunes. It used to - I'm not sure if the problem has been since I updated to itunes 7 or not, but it might be. Weirdly, the play count - IS updated, so itunes knows that I played the song on my ipod, it just doesn't know when!!
    Any ideas?
    Thanks in advance
    David

    This problem is also referenced here:
    http://discussions.apple.com/message.jspa?messageID=4149562#4149562
    as this may be an iPod issue.

  • Play count question.   I have about 500 songs in my library that I know have played at least once...probably just once.  Although there is a "last played" date listed there is no number in the play count column.   Any reason for this?  thx

    I have about 500 songs in my library that have played one time.   Although a "last date played" date is noted, there is no number in the play count column.  This only happens some times.   Any reason for this, and can it be corrected?  thx

    Thanks, but the play count is not incrementing only on the very first play.  All subsequent plays are fine.  Meaning the play counts for these particular tracks are always one play short.  I double-checked some of the tracks in question and I have not shortened, or stopped them early.

Maybe you are looking for

  • Problem updating Audigy 2 NX driv

    I have a Dell 8600 notebook with an Audigy 2 NX. I have no problem installing and running the device when using the original driver from the disc, however when I try to update to the newer drivers I get nothing but crackling and screaching noises. I

  • IPOD Wi-Fi Connection

    Greetings, I just won an iPOD Touch 8g in a golf tournament and trying to connect to my home router.  It is finding the connection called "diane".  When I try to connect it asks for a password.  I tried all I could think of but nothing works.  My wif

  • Payment tables- urgent

    Hi All, Can anybody please tell me in which tables I can see all payment data (including checks, f-58 etc.) Thanks

  • How can I programically make a top level VI panel invisible?

    How can I programically make a top level VI panel invisible?

  • Timeline Application Errors

    Regarding the following: "I recently found the SIMILE Timeline widget from http://simile.mit.edu/timeline . It lets you display time-based data in drag-able bands with different time scales. Best of all, it works easily with APEX. Here is a simple de