Answers.Body: <p>You also need to install the coda extension: <a href="https://github.com/Project60/org.project60.coda" rel="nofollow noreferrer">https://github.com/Project60/org.project60.coda</a> (check the installation instruction).
  Once you have done that you should be able to add a Coda configuration and import a Coda file.</p>
  <p>Please note that Coda is a Belgian thing so folks here might not recognize your question :-)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T08:15:08.310Z
Answers.Text: Oh what is that red thing in the corner over there? Oh yes ... it is me full of shame. Found it! Thank you Erik!
Answers.UserDisplayName: stijn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T08:22:14.590Z
Answers.Text: After installing (following procedure here: https://github.com/Project60/org.project60.coda/issues/2) I do get an error though:
  Error: Cannot access private property Codelicious\Coda\Statements\Statement::$transactions in CRM_Banking_PluginImpl_Importer_CODA->import_file() (line 97 of modules/civicrm-ext/org.project60.coda/CRM/Banking/PluginImpl/Importer/CODA.php).
Answers.UserDisplayName: stijn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T09:27:00.610Z
Answers.Text: Did you do the composer install and clear all your caches afterwards? It works fine in all my local and customer environments where they use Coda (5 at the moment)....
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T10:38:57.750Z
Answers.Text: I did, but at first I ran composer inside the extension folder. As this did not load I added the library to my general composer and it was picked up, but resulting in the above error.
  
  Instead I now added  if (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
    require_once __DIR__ . '/../../../../vendor/autoload.php';
  }
  which seems to work
Answers.UserDisplayName: stijn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T13:32:55.097Z
Answers.Text: Cool, glad it works :-)
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-04T08:08:01.833Z
Answers.LastActivityDate: 2022-11-04T08:08:01.833Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>We installed CiviBanking 0.80 on a Drupal 9/CiviCRM 5.33. Then tried to import configs from <a href="https://github.com/Project60/org.project60.banking/tree/master/configuration_database/Importer/CODA" rel="nofollow noreferrer">https://github.com/Project60/org.project60.banking/tree/master/configuration_database/Importer/CODA</a> but it fails with 'Import/update failed: Import failed: Expected one OptionValue but found 0'</p>
  <p>Trying to create the plugin in the interface with the code provided in the examples doesn't help either.</p>
  <p>I really feel I must be missing something very obvious here but what ...?</p>
  
Tags: <civibanking>
Title: Any luck with importing CODA files?
ThreadText: # Any luck with importing CODA files?
  
  (Asked by: username_0 on 2022-11-04)
  
  We installed CiviBanking 0.80 on a Drupal 9/CiviCRM 5.33. Then tried to import configs from <https://github.com/Project60/org.project60.banking/tree/master/configuration_database/Importer/CODA> but it fails with 'Import/update failed: Import failed: Expected one OptionValue but found 0'
  
  Trying to create the plugin in the interface with the code provided in the examples doesn't help either.
  
  I really feel I must be missing something very obvious here but what ...?
  
  **Tags:** civibanking
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-11-04. Score: 2
  
  You also need to install the coda extension: <https://github.com/Project60/org.project60.coda> (check the installation instruction).
  Once you have done that you should be able to add a Coda configuration and import a Coda file.
  
  Please note that Coda is a Belgian thing so folks here might not recognize your question :-)
  
  > **Comments:**
  > **username_0**: Oh what is that red thing in the corner over there? Oh yes ... it is me full of shame. Found it! Thank you Erik!  
  > **username_0**: After installing (following procedure here: https://github.com/Project60/org.project60.coda/issues/2) I do get an error though: Error: Cannot access private property Codelicious\Coda\Statements\Statement::$transactions in CRM_Banking_PluginImpl_Importer_CODA->import_file() (line 97 of modules/civicrm-ext/org.project60.coda/CRM/Banking/PluginImpl/Importer/CODA.php).  
  > **username_1**: Did you do the composer install and clear all your caches afterwards? It works fine in all my local and customer environments where they use Coda (5 at the moment)....  
  > **username_0**: I did, but at first I ran composer inside the extension folder. As this did not load I added the library to my general composer and it was picked up, but resulting in the above error.  Instead I now added  if (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {   require_once __DIR__ . '/../../../../vendor/autoload.php'; } which seems to work  
  > **username_1**: Cool, glad it works :-)  
  
  ---
  
  