Answers.Body: <p>This seems to be resolved with the commit from March 2, 2018 here: <a href="https://github.com/civicrm/civicrm-core/commit/b512c92fe8bbe9a8ef71ae9ba5adbcfe7500d81c" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/commit/b512c92fe8bbe9a8ef71ae9ba5adbcfe7500d81c</a> </p>
  
  <p>With that change applied, we longer receive the error and everything works as expected. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-06T14:47:38.213Z
Answers.LastActivityDate: 2018-03-06T14:47:38.213Z
Answers.UserDisplayName: T.J. Hellmann
Body: <p>We just updated to 4.7.30 and the latest Drupal 7 version. Now, when viewing participant records that include a contribution record, the following error is in the Fees section: </p>
  
  <p><em>Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
  Expected one Contribution but found 0</em></p>
  
  <p>As far as we can tell, participants are able to register just fine since the update. In the Selections section, the appropriate selections are there, but if we click the Change Selections link, we get the error: <em>Network Error: Unable to reach the server. Please refresh this page in your browser and try again.</em> Refreshing does not help.</p>
  
  <p>We are still able to edit the contribution records that are displayed on the participant record. We can register new participants manually and the error does not appear. The error also seems limited to events...does not appear in membership.</p>
  
  <p>We have no Civi Extensions on this site. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-25T19:47:27.307Z
Comments.Text: We are seeing this too, when looking at event registrations in 'edit' mode.  Also 4.7.30 and latest Drupal 7. Screenshot at https://drive.google.com/file/d/1RvfumRazCalSPuvIBlKFGhl1v6Zf45_7/view?usp=sharing
Comments.UserDisplayName: Robin Fenwick
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-01T19:21:48.730Z
Comments.Text: can this be replicated on one of the demo sites?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-07T23:38:14.610Z
Comments.Text: We are still having this issue even after posting the patch. Any other suggestions?
Comments.UserDisplayName: Sheila Burkett
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-08T03:42:28.467Z
Comments.Text: Sheila - do you have enough reputation to Comment? If so you should make this a Comment as it is not an Answer. hth.
Comments.UserDisplayName: petednz - fuzion
Tags: <civievent>
Title: Unable to Change Selections on Event Registration, Error: "Expected one Contribution but found 0"
ThreadText: # Unable to Change Selections on Event Registration, Error: "Expected one Contribution but found 0"
  
  (Asked by: username_0 on 2018-02-22)
  
  We just updated to 4.7.30 and the latest Drupal 7 version. Now, when viewing participant records that include a contribution record, the following error is in the Fees section:
  
  *Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
  Expected one Contribution but found 0*
  
  As far as we can tell, participants are able to register just fine since the update. In the Selections section, the appropriate selections are there, but if we click the Change Selections link, we get the error: *Network Error: Unable to reach the server. Please refresh this page in your browser and try again.* Refreshing does not help.
  
  We are still able to edit the contribution records that are displayed on the participant record. We can register new participants manually and the error does not appear. The error also seems limited to events...does not appear in membership.
  
  We have no Civi Extensions on this site.
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: We are seeing this too, when looking at event registrations in 'edit' mode.  Also 4.7.30 and latest Drupal 7. Screenshot at https://drive.google.com/file/d/1RvfumRazCalSPuvIBlKFGhl1v6Zf45_7/view?usp=sharing  
  > **username_2**: can this be replicated on one of the demo sites?  
  > **username_3**: We are still having this issue even after posting the patch. Any other suggestions?  
  > **username_2**: username_3 - do you have enough reputation to Comment? If so you should make this a Comment as it is not an Answer. hth.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2018-03-06. Score: 1
  
  This seems to be resolved with the commit from March 2, 2018 here: <https://github.com/civicrm/civicrm-core/commit/b512c92fe8bbe9a8ef71ae9ba5adbcfe7500d81c>
  
  With that change applied, we longer receive the error and everything works as expected.
  
  
  ---
  
  