Body: <p>I have created a new webform in Drupal for membership signups.  When I try and test the form I get the error message &quot;The website encountered an unexpected error. Please try again later.&quot;</p>
  <p>Other forms with Civi integration are working fine, so there is an issue with just this specific form.  The only difference I can find is that I'm trying to create memberships on this form.</p>
  <p>Here is the setup for the membership - it is a free membership
  <a href="https://i.sstatic.net/PoGR4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/PoGR4.png" alt="enter image description here" /></a></p>
  <p>Any thoughts as to why this one form would not be working? Thanks</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-25T14:43:47.460Z
Comments.Text: Can you check your Drupal logs to find more details about the error?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-25T19:22:31.200Z
Comments.Text: CRM_Core_Exception: 'Provincial' is not a valid option for field custom_23 in civicrm_api3()
Comments.UserDisplayName: erin
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-25T20:53:59.237Z
Comments.Text: does that explain it enough for you. says there is a custom field id 23 in use but not happy with the options on the form
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-25T21:01:37.710Z
Comments.Text: not really, the list of options is being pulled directly from Civi, so how can the options on the form not be accepted?  It is set to Live Options, the options in Civi are identical to the options on the form
Comments.UserDisplayName: erin
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-25T21:07:20.020Z
Comments.Text: Nevermind - somehow a word had been entered into the "Value" field under "Title" - removing the word fixed the issue
Comments.UserDisplayName: erin
Tags: <webform-civicrm>
Title: Webform error "The website encountered an unexpected error. Please try again later."
ThreadText: # Webform error "The website encountered an unexpected error. Please try again later."
  
  (Asked by: username_0 on 2023-05-25)
  
  I have created a new webform in Drupal for membership signups. When I try and test the form I get the error message "The website encountered an unexpected error. Please try again later."
  
  Other forms with Civi integration are working fine, so there is an issue with just this specific form. The only difference I can find is that I'm trying to create memberships on this form.
  
  Here is the setup for the membership - it is a free membership
  [![enter image description here](https://i.sstatic.net/PoGR4.png)](https://i.sstatic.net/PoGR4.png)
  
  Any thoughts as to why this one form would not be working? Thanks
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_1**: Can you check your Drupal logs to find more details about the error?  
  > **username_0**: CRM_Core_Exception: 'Provincial' is not a valid option for field custom_23 in civicrm_api3()  
  > **username_2**: does that explain it enough for you. says there is a custom field id 23 in use but not happy with the options on the form  
  > **username_0**: not really, the list of options is being pulled directly from Civi, so how can the options on the form not be accepted?  It is set to Live Options, the options in Civi are identical to the options on the form  
  > **username_0**: Nevermind - somehow a word had been entered into the "Value" field under "Title" - removing the word fixed the issue  
  
  ---
  
  ## 0 answers
  
  