Body: <p>I have a site where from the Contact Summary Screen, I select Action > Phone Call (or indeed any activity)</p>
  
  <p>The default status is Scheduled. WHen I save the activity I get this "You cannot record scheduled SMS activity".</p>
  
  <p>Same on every activity. If I choose Completed or other status, works fine.</p>
  
  <p>Have upgraded to latest CiviCRM, also latest Drupal.</p>
  
  <p>Have moved servers.</p>
  
  <p>Have disabled all extensions and custom fields.</p>
  
  <p>Have disabled CiviCase.</p>
  
  <p>Still have the problem.</p>
  
  <p>Nothing in the civi error log.</p>
  
  <p>Nothing in the drupal log.</p>
  
  <p>Any ideas welcome.</p>
  
  <p><a href="https://i.sstatic.net/OBBEE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OBBEE.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-09T15:38:14.983Z
Comments.Text: I'd probably start by putting in some debugging in CRM/Activity/Form/Activity.php in formRule, around line 876, to see what it thinks the activity type id and pseudoconstant values are.and why that line is getting triggered.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-12T13:05:47.350Z
Comments.Text: Are you saying that it causes the call to PseudoConstant::getKey for activity type/status to somehow get mixed up with the ids for user profile fields? Can you maybe edit the question to describe how you're seeing that code come into play on your site? I'm having trouble seeing the connection and I can't reproduce it on the public demo.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-14T07:11:42.463Z
Comments.Text: Thanks Demerit. I deleted that comment as when I retested with just that change all was good. I’ll go through all changes in 5.14 and narrow it down.
Comments.UserDisplayName: Tony Horrocks
Tags: <activities>
Title: Cannot set activity status to scheduled
ThreadText: # Cannot set activity status to scheduled
  
  (Asked by: username_0 on 2019-07-09)
  
  I have a site where from the Contact Summary Screen, I select Action > Phone Call (or indeed any activity)
  
  The default status is Scheduled. WHen I save the activity I get this "You cannot record scheduled SMS activity".
  
  Same on every activity. If I choose Completed or other status, works fine.
  
  Have upgraded to latest CiviCRM, also latest Drupal.
  
  Have moved servers.
  
  Have disabled all extensions and custom fields.
  
  Have disabled CiviCase.
  
  Still have the problem.
  
  Nothing in the civi error log.
  
  Nothing in the drupal log.
  
  Any ideas welcome.
  
  [![enter image description here](https://i.sstatic.net/OBBEE.png)](https://i.sstatic.net/OBBEE.png)
  
  **Tags:** activities
  
  > **Comments:**
  > **username_1**: I'd probably start by putting in some debugging in CRM/Activity/Form/Activity.php in formRule, around line 876, to see what it thinks the activity type id and pseudoconstant values are.and why that line is getting triggered.  
  > **username_1**: Are you saying that it causes the call to PseudoConstant::getKey for activity type/status to somehow get mixed up with the ids for user profile fields? Can you maybe edit the question to describe how you're seeing that code come into play on your site? I'm having trouble seeing the connection and I can't reproduce it on the public demo.  
  > **username_0**: Thanks username_1. I deleted that comment as when I retested with just that change all was good. I’ll go through all changes in 5.14 and narrow it down.  
  
  ---
  
  ## 0 answers
  
  