Answers.Body: <p>Not sure what was actually causing this but it has been resolved by updating Civirules.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-22T14:05:49.307Z
Answers.Text: If it happens again, the url itself will give a clue as to which parameter is invalid. You'll see something like ?id=&cid=123, and the one that doesn't have a value to the right of the = is the culprit. Can also check logs (https://docs.civicrm.org/dev/en/master/dev-tools/debugging/#viewing-log-files) which might have more clues.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-22T11:50:18.140Z
Answers.LastActivityDate: 2017-03-22T11:50:18.140Z
Answers.UserDisplayName: Lawrence Welsby
Body: <p>I have set up some new Case types and it was all working fine until a user tried to create a case and got the above error, this is happening for all case types now and seems to be being generated by Civirules code. </p>
  
  <p>The only thing I can think of which I have changed recently is I deleted some activity types (through CiviCRM's user interface) and some were likely included in some Case types as sequences or timelines. None of the deleted activity types are included on active Case types that I'm using now but could that be the reason? </p>
  
  <p>Do I need to track down the tables where activity types are linked to cases and get delete rows which are orphaned?</p>
  
Tags: <civicase><civirules>
Title: Error when creating new Case: One of parameters (value: ) is not of the type Integer
ThreadText: # Error when creating new Case: One of parameters (value: ) is not of the type Integer
  
  (Asked by: username_0 on 2017-03-22)
  
  I have set up some new Case types and it was all working fine until a user tried to create a case and got the above error, this is happening for all case types now and seems to be being generated by Civirules code.
  
  The only thing I can think of which I have changed recently is I deleted some activity types (through CiviCRM's user interface) and some were likely included in some Case types as sequences or timelines. None of the deleted activity types are included on active Case types that I'm using now but could that be the reason?
  
  Do I need to track down the tables where activity types are linked to cases and get delete rows which are orphaned?
  
  **Tags:** civicase, civirules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-03-22. Score: 2 | Accepted answer
  
  Not sure what was actually causing this but it has been resolved by updating Civirules.
  
  > **Comments:**
  > **username_1**: If it happens again, the url itself will give a clue as to which parameter is invalid. You'll see something like ?id=&cid=123, and the one that doesn't have a value to the right of the = is the culprit. Can also check logs (https://docs.civicrm.org/dev/en/master/dev-tools/debugging/#viewing-log-files) which might have more clues.  
  
  ---
  
  