Impossible to import fields created in the Events Module
We have tried to import a database to Vtiger with fields created for the Events module, the error occurs when you use 'custom fields' (those that begin with cf_) when importing. When carrying out the import process it allows us to select the fields created to perform the match, however when clicking on import it notifies as if the import had been carried out, an "error" appears and in the end there is no imported record. Anyone who can help solve the problem?
Error:
Fatal error: Uncaught Error: Call to a member function getName() on null in /var/www/html/vt/modules/Import/readers/FileReader.php:141 Stack trace: #0 /var/www/html/vt/modules/Import/readers/FileReader.php(116): Import_FileReader_Reader->getDBColumnType() #1 /var/www/html/vt/modules/Import/readers/CSVReader.php(73): Import_FileReader_Reader->createTable() #2 /var/www/html/vt/modules/Import/views/Main.php(184): Import_CSVReader_Reader->read() #3 /var/www/html/vt/modules/Import/views/Main.php(31): Import_Main_View->copyFromFileToDB() #4 /var/www/html/vt/modules/Vtiger/views/Import.php(239): Import_Main_View::import() #5 /var/www/html/vt/includes/runtime/Controller.php(64): Vtiger_Import_View->import() #6 /var/www/html/vt/modules/Vtiger/views/Import.php(50): Vtiger_Controller->invokeExposedMethod() #7 /var/www/html/vt/includes/main/WebUI.php(215): Vtiger_Import_View->process() #8 /var/www/html/vt/index.php(20): Vtiger_WebUI->process() #9 {main} thrown in /var/www/html/vt/modules/Import/readers/FileReader.php on line 141
We created a manual for clients but there should be a division of both modules since clients constantly create fields to make their records more precise and some others who have wanted to migrate their information find it impossible to have the same in their new Vtiger.
I share the manual we created so you have an idea of what we face with clients.
- The same field mapping is used, you display Tasks and Events fields but the records that will be created are Events.
- The import only considers fields that are shared by both Tasks and Events modules.
- It will let you map fields created in Tasks but they will not be imported even if they are required.
- It is not possible to import information from fields that you have created in the Events module. Although it allows you to map fields that are from the Events module, when importing it will cause an error. You should not choose them to map and if they are mandatory you should remove the mandatory nature from them.
- The Location field that is in the Events module in the Column Assignment you must choose the Location field.
- In the Activity Type field that is in Events in the Column Mapping you must choose the Task Type field.
- The End Date and Time field that is in Events in the Column Mapping you must choose the End Date field.