CRM_Core_Session::setStatus('Kon geen MySQL tabel aanmaken voor migratie, check of je het juiste verldscheidingsteken gebruikt en of de data lijkt te kloppen en geen rare tekens bevat.','Migratie van bestand mislukt','error');
returnFALSE;
}
}
/**
* Method to validate if file has the correct ext and can be opened
$query="INSERT INTO ".$this->_tableName." (".implode(",",$columnNames).") VALUES (".implode(",",$elements).")";
try{
CRM_Core_DAO::executeQuery($query,$queryParams);
}
catch(Exception$ex){
CRM_Core_Session::setStatus("Could not write a record for a csv file row, ask your system administrator to check the CiviCRM error log","Could not add row from csv file","error");
Civi::log()->error("Could not write table record for csv file row in ".__METHOD__.", error message: ".$ex->getMessage());