CiviCRM 5.67.0 - PHP Fatal error: Uncaught TypeError: CRM_Import_Parser::getFieldMetadata when using a Import Mappings
This site was upgraded from CiviCRM 5.64.4 to CiviCRM 5.67.0 and then this problem was reported.
When using a Import Mappings for a membership import, immediately throws a PHP fatal error after the field mapping step.
PHP message: PHP Fatal error: Uncaught TypeError: CRM_Import_Parser::getFieldMetadata(): Return value must be of type array, null returned
Screenshots below indicate the cause of the issue. Discarding that field mapping and starting again is the only solution. None of the drop-downs have the "Do not import" available.
Agileware Ref: CIVICRM-2194
Historically this was fixed before #3511 (closed) and https://github.com/civicrm/civicrm-core/pull/23760