Answers.Body: <p>A membership has a single status determined by the status rules.  If the date rules mean that more than one status applies, the ordering of the rules determines the result.  </p>
  
  <p>From <a href="https://docs.civicrm.org/user/en/latest/membership/defining-memberships/#membership-status-rules" rel="nofollow noreferrer">the user guide</a> :</p>
  
  <blockquote>
    <p>To decide on which status should be applied, CiviCRM looks to see if the membership has a status override. If it does, it applies that status. If not, it looks at each status in turn starting at the top of the Status Rules page until it finds one that is valid. That is to say, it looks to see if today's date is between the start and end date for the membership status at the top of the list. If it is, it applies that status, if not it moves to the next status and repeats this process until it finds a status that matches.</p>
  </blockquote>
  
  <p>Since you have changed the order, 'Current' will be used in preference to 'geldig lid' although the rules for both are the same.</p>
  
  <p>When you say that the status "doesn't work as it should", I think you mean that memberships past their end date are still showing as 'geldig lid'.  Membership statuses are updated either by saving a change to the membership or by the scheduled job "Update Membership Statuses".  From your screenshots it seems the scheduled job is not running / not working.</p>
  
  <p>You can have a Label for the Membership Status that is different to its Name, so you could use the standard Current but change the label to 'geldig lid'. </p>
  
  <p>However, if you want to continue with the current setup, change the ordering back so that 'geldig lid' appears before 'Current'. Before running the scheduled job, you might want to see how many are past their end date and how far past they are as to whether you want to notify anyone or take action etc.  Then enable/fix the scheduled job - that should change Current memberships to 'geldig lid' and change those past their end date to Grace or Expired.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-16T09:38:31.007Z
Answers.Text: Hi
  
  Thanks for your feedback! 
  
  How do I run the scheduled job 'Update Membership Statuses'?
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-13T17:48:15.577Z
Answers.LastActivityDate: 2017-10-13T17:48:15.577Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>@Aidan I'm writing an answer myself since I can't add atatchments to comments.</p>
  
  <p>I found the scheduled jobs and I see this for Update Membership Status:</p>
  
  <p><a href="https://i.sstatic.net/klXae.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/klXae.png" alt="enter image description here"></a>
  <a href="https://i.sstatic.net/9LZx0.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9LZx0.png" alt="enter image description here"></a></p>
  
  <p>Are these settings correct?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-18T11:45:29.787Z
Answers.Text: Settings look correct to me. If you want to run the scheduled job immediately, go to  Administer>System Settings>Scheduled jobs, locate the job, hit the 'more' action link and then the 'execute now' action link.
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-18T12:10:55.460Z
Answers.Text: Thanks @ErikH-CiviCooP, if I do that, I get an HTTP ERROR 500 unfortunately. I will just change my settings so I can use the 'current' status instead of our custom 'geldig lid' status.
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-18T12:44:49.157Z
Answers.Text: I would recommend you to spend some time in deciding if you still need the customized status. If not, migrate to the standard status.
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-18T13:16:52.847Z
Answers.Text: I was actually doing that now. A while ago I already put 'Current' on the first place in the order of membership statuses, so now I was just changing the settings of my contact groups (=mailing lists) to 'Current' instead of 'geldig lid'. I thought all valid members were already in the 'Current' status, but now I see for some reason there are still members that belong to 'geldig lid' (although the settings for both statuses are exactly the same and 'Current' is in the 1st place). I now disabled the 'geldig lid' status to check what will happen.. Think the update will take a while. Let's see..
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-19T12:50:49.160Z
Answers.Text: Nothing happened.. I still see 'geldig lid' assigned to a lot of memberships. I'm gonna delete that membership status rule completely. No idea if that will help..
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-19T12:56:28.480Z
Answers.Text: I did not mean running the job, I meant a migration of sorts if you do not need the special type anymore....:-)
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-19T16:20:00.087Z
Answers.Text: I added another answer cause this comment box is too small :)
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-18T11:33:40.253Z
Answers.LastActivityDate: 2017-10-18T11:33:40.253Z
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.Body: <p>@ErikH-CiviCooP I'm afraid I need some help here. So what I want to do is remove the special status and make sure that the normal 'Current' status is applied for all valid memberships, otherwise 'expired'. What I DID is:
  - I've put 'Current' in the first place (with the exact same settins as the special one) --> result: the special one was still applicable for some members
  - I've disabled the special one --> result: still the same
  - Now I thought about deleting the special one completely. But I get the warning: WARNING: Deleting this option will result in the loss of all membership records of this status. This may mean the loss of a substantial amount of data, and the action cannot be undone. Do you want to continue?
  I don't wanna lose membership RECORDS, I just want to get rid of the status.</p>
  
  <p>You mean that I have to manually change the membership status for the ones that are incorrect. The problem is that the special status 'geldig lid' both is applicable for VALID as for EXPIRED memberships. So that will be a complicated job. + I have no idea how I would have to do that :).</p>
  
  <p>Do you think I can first try to delete the special status or will I lose important membership information then?</p>
  
  <p>I might be asking silly things, sorry for that, I'm not so experienced with the technical part of CiviCRM.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-19T17:53:33.733Z
Answers.Text: Joke - did you see my comment on your original question asking you to double check that your statuses have no conflicts in the timing of when one starts and another ends.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-20T10:52:27.017Z
Answers.Text: Hi @petednz-fuzion, yes i saw it, thanks! And I'm sure there are no conflicts there. Only 2 statuses are enabled now: Current and Expired...
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-21T22:25:37.337Z
Answers.Text: Ok, but it doesn't matter how many you have, so much as whether all your 'start' and 'end' patterns do not leave gaps or overlaps
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-23T09:33:32.640Z
Answers.Text: That's not the case: Current ends with 'end date', Expired starts with 'end date + 1'
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-23T09:34:58.473Z
Answers.Text: Do you think I can risk to delete the customized membership status? The warning message scares me a bit:
  
  "WARNING: Deleting this option will result in the loss of all membership records of this status. This may mean the loss of a substantial amount of data, and the action cannot be undone. Do you want to continue?" 
  
  I don't wanna lose membership records of course, I just want to get rid of the status.
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-24T00:51:42.557Z
Answers.Text: I believe you should have Current ends with End Date, and Expired starts with End Date, so you don't have that gap - but go check on one of the Demo sites.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-24T09:19:51.550Z
Answers.Text: I checked that and changed the Expired status so that it starts at 'End date' instead of 'End date + 1 day'. Still no result though.. The customized status 'geldig lid' is still being used unintentionally. Do you think I can delete that status without losing membership records?
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-24T19:20:50.537Z
Answers.Text: I think that if you want to remove that status you will need to use some sql query to find everyone who has status geldig and change it to 'current'. Do on a test site, or take a backup first. also confirm that you have the Scheduled Job that 'updates membership status' running in case that is part of the mystery
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-27T14:24:38.173Z
Answers.Text: Hi @petednz-fuzion, I changed all the records from 'geldig' to 'current' using batch update via profile. I'm still not able to delete the geldig lid status, cause it says there are still records that exist with that status (but I'm sure that's not the case). Anyway, I hoped my problem would be fixed with the manual change of statuses but I see the same records are still not being updated when exceeding the expiration date. So now I have some records with the 'Current status' that should be expired because their membership ended yesterday. Gonna doublecheck the API but that's my last hope..
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-28T03:00:44.197Z
Answers.Text: I don't see you answered my comment about "also confirm that you have the Scheduled Job that 'updates membership status' running in case that is part of the mystery"
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-30T09:59:03.880Z
Answers.Text: Hi @petednz-fuzion, I already confirmed this a while ago with this screenshot: https://i.sstatic.net/9LZx0.png. ErikH-CiviCooP answered those settings seem correct..
Answers.UserDisplayName: Joke Van Ransbeeck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-30T17:52:32.880Z
Answers.Text: if it will help, happy to spend 10 mins on a skype call just reviewing things quickly in case there is anything obvious leaps out. peter.davis59
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-19T15:23:09.107Z
Answers.LastActivityDate: 2017-10-19T15:23:09.107Z
Answers.UserDisplayName: Joke Van Ransbeeck
Body: <p>We always used a customized 'Membership Status', named 'geldig lid' (means: valid member). I don't know why this was done in the past, cause it actually corresponds to the built in status 'Current', but since we have quite some mailing lists connected to 'geldig lid', I'd like to continue using that one.
  Now, for some reason, the customized status 'geldig' lid, doesn't work as it should. And  In order to investigate what goes wrong, I changed the order of the assigned statuses to 'Current' first and 'geldig lid' second. But the settings for both statuses are exactly the same. See attachment: <a href="https://i.sstatic.net/wEfp9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/wEfp9.png" alt="geldig lid &lt;-&gt; current"></a></p>
  
  <p>When I look for the members with status 'geldig lid', I find 19527 contacts, which is not correct cause in a lot of cases 'membership end date' is already in the past. Doing the same with 'current', I find 5824 contacts (which is correct). See attachment: <a href="https://i.sstatic.net/ZlDUA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZlDUA.png" alt="Search for geldig lid &lt;-&gt; current"></a></p>
  
  <p>Can somebody explain what is happening here?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-13T18:29:54.070Z
Comments.Text: have you checked all the other 'status' just to confirm that there is no leakage or overlap between on status finishing and next starting?
Comments.UserDisplayName: petednz - fuzion
Tags: <civimember>
Title: Custom membership status is not being updated
ThreadText: # Custom membership status is not being updated
  
  (Asked by: username_0 on 2017-10-13)
  
  We always used a customized 'Membership Status', named 'geldig lid' (means: valid member). I don't know why this was done in the past, cause it actually corresponds to the built in status 'Current', but since we have quite some mailing lists connected to 'geldig lid', I'd like to continue using that one.
  Now, for some reason, the customized status 'geldig' lid, doesn't work as it should. And In order to investigate what goes wrong, I changed the order of the assigned statuses to 'Current' first and 'geldig lid' second. But the settings for both statuses are exactly the same. See attachment: [![geldig lid <-> current](https://i.sstatic.net/wEfp9.png)](https://i.sstatic.net/wEfp9.png)
  
  When I look for the members with status 'geldig lid', I find 19527 contacts, which is not correct cause in a lot of cases 'membership end date' is already in the past. Doing the same with 'current', I find 5824 contacts (which is correct). See attachment: [![Search for geldig lid <-> current](https://i.sstatic.net/ZlDUA.png)](https://i.sstatic.net/ZlDUA.png)
  
  Can somebody explain what is happening here?
  
  **Tags:** civimember
  
  > **Comments:**
  > **username_1**: have you checked all the other 'status' just to confirm that there is no leakage or overlap between on status finishing and next starting?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2017-10-13. Score: 2
  
  A membership has a single status determined by the status rules. If the date rules mean that more than one status applies, the ordering of the rules determines the result.
  
  From [the user guide](https://docs.civicrm.org/user/en/latest/membership/defining-memberships/#membership-status-rules) :
  
  > To decide on which status should be applied, CiviCRM looks to see if the membership has a status override. If it does, it applies that status. If not, it looks at each status in turn starting at the top of the Status Rules page until it finds one that is valid. That is to say, it looks to see if today's date is between the start and end date for the membership status at the top of the list. If it is, it applies that status, if not it moves to the next status and repeats this process until it finds a status that matches.
  
  Since you have changed the order, 'Current' will be used in preference to 'geldig lid' although the rules for both are the same.
  
  When you say that the status "doesn't work as it should", I think you mean that memberships past their end date are still showing as 'geldig lid'. Membership statuses are updated either by saving a change to the membership or by the scheduled job "Update Membership Statuses". From your screenshots it seems the scheduled job is not running / not working.
  
  You can have a Label for the Membership Status that is different to its Name, so you could use the standard Current but change the label to 'geldig lid'.
  
  However, if you want to continue with the current setup, change the ordering back so that 'geldig lid' appears before 'Current'. Before running the scheduled job, you might want to see how many are past their end date and how far past they are as to whether you want to notify anyone or take action etc. Then enable/fix the scheduled job - that should change Current memberships to 'geldig lid' and change those past their end date to Grace or Expired.
  
  > **Comments:**
  > **username_0**: Hi  Thanks for your feedback!   How do I run the scheduled job 'Update Membership Statuses'?  
  
  ---
  
  ### Answer by username_0 on 2017-10-18. Score: 0
  
  @username_2 I'm writing an answer myself since I can't add atatchments to comments.
  
  I found the scheduled jobs and I see this for Update Membership Status:
  
  [![enter image description here](https://i.sstatic.net/klXae.png)](https://i.sstatic.net/klXae.png)
  [![enter image description here](https://i.sstatic.net/9LZx0.png)](https://i.sstatic.net/9LZx0.png)
  
  Are these settings correct?
  
  > **Comments:**
  > **username_3**: Settings look correct to me. If you want to run the scheduled job immediately, go to  Administer>System Settings>Scheduled jobs, locate the job, hit the 'more' action link and then the 'execute now' action link.  
  > **username_0**: Thanks @ErikH-CiviCooP, if I do that, I get an HTTP ERROR 500 unfortunately. I will just change my settings so I can use the 'current' status instead of our custom 'geldig lid' status.  
  > **username_3**: I would recommend you to spend some time in deciding if you still need the customized status. If not, migrate to the standard status.  
  > **username_0**: I was actually doing that now. A while ago I already put 'Current' on the first place in the order of membership statuses, so now I was just changing the settings of my contact groups (=mailing lists) to 'Current' instead of 'geldig lid'. I thought all valid members were already in the 'Current' status, but now I see for some reason there are still members that belong to 'geldig lid' (although the settings for both statuses are exactly the same and 'Current' is in the 1st place). I now disabled the 'geldig lid' status to check what will happen.. Think the update will take a while. Let's see..  
  > **username_0**: Nothing happened.. I still see 'geldig lid' assigned to a lot of memberships. I'm gonna delete that membership status rule completely. No idea if that will help..  
  > **username_3**: I did not mean running the job, I meant a migration of sorts if you do not need the special type anymore....:-)  
  > **username_0**: I added another answer cause this comment box is too small :)  
  
  ---
  
  ### Answer by username_0 on 2017-10-19. Score: 0
  
  @ErikH-CiviCooP I'm afraid I need some help here. So what I want to do is remove the special status and make sure that the normal 'Current' status is applied for all valid memberships, otherwise 'expired'. What I DID is:
  - I've put 'Current' in the first place (with the exact same settins as the special one) --> result: the special one was still applicable for some members
  - I've disabled the special one --> result: still the same
  - Now I thought about deleting the special one completely. But I get the warning: WARNING: Deleting this option will result in the loss of all membership records of this status. This may mean the loss of a substantial amount of data, and the action cannot be undone. Do you want to continue?
  I don't wanna lose membership RECORDS, I just want to get rid of the status.
  
  You mean that I have to manually change the membership status for the ones that are incorrect. The problem is that the special status 'geldig lid' both is applicable for VALID as for EXPIRED memberships. So that will be a complicated job. + I have no idea how I would have to do that :).
  
  Do you think I can first try to delete the special status or will I lose important membership information then?
  
  I might be asking silly things, sorry for that, I'm not so experienced with the technical part of CiviCRM.
  
  > **Comments:**
  > **username_1**: Joke - did you see my comment on your original question asking you to double check that your statuses have no conflicts in the timing of when one starts and another ends.  
  > **username_0**: Hi @petednz-fuzion, yes i saw it, thanks! And I'm sure there are no conflicts there. Only 2 statuses are enabled now: Current and Expired...  
  > **username_1**: Ok, but it doesn't matter how many you have, so much as whether all your 'start' and 'end' patterns do not leave gaps or overlaps  
  > **username_0**: That's not the case: Current ends with 'end date', Expired starts with 'end date + 1'  
  > **username_0**: Do you think I can risk to delete the customized membership status? The warning message scares me a bit:  "WARNING: Deleting this option will result in the loss of all membership records of this status. This may mean the loss of a substantial amount of data, and the action cannot be undone. Do you want to continue?"   I don't wanna lose membership records of course, I just want to get rid of the status.  
  > **username_1**: I believe you should have Current ends with End Date, and Expired starts with End Date, so you don't have that gap - but go check on one of the Demo sites.  
  > **username_0**: I checked that and changed the Expired status so that it starts at 'End date' instead of 'End date + 1 day'. Still no result though.. The customized status 'geldig lid' is still being used unintentionally. Do you think I can delete that status without losing membership records?  
  > **username_1**: I think that if you want to remove that status you will need to use some sql query to find everyone who has status geldig and change it to 'current'. Do on a test site, or take a backup first. also confirm that you have the Scheduled Job that 'updates membership status' running in case that is part of the mystery  
  > **username_0**: Hi @petednz-fuzion, I changed all the records from 'geldig' to 'current' using batch update via profile. I'm still not able to delete the geldig lid status, cause it says there are still records that exist with that status (but I'm sure that's not the case). Anyway, I hoped my problem would be fixed with the manual change of statuses but I see the same records are still not being updated when exceeding the expiration date. So now I have some records with the 'Current status' that should be expired because their membership ended yesterday. Gonna doublecheck the API but that's my last hope..  
  > **username_1**: I don't see you answered my comment about "also confirm that you have the Scheduled Job that 'updates membership status' running in case that is part of the mystery"  
  > **username_0**: Hi @petednz-fuzion, I already confirmed this a while ago with this screenshot: https://i.sstatic.net/9LZx0.png. ErikH-CiviCooP answered those settings seem correct..  
  > **username_1**: if it will help, happy to spend 10 mins on a skype call just reviewing things quickly in case there is anything obvious leaps out. peter.davis59  
  
  ---
  
  