Hello,
adding a new export mapping doesn't seem to work on CA 2. Neither on the Demo system ( https://demo.collectiveaccess.org/manage/MetadataExport/Index )
The exact same mapping does work on CA 1.7. Did the schema for the mapping xlsx file change?
we recently updated from CA 1.7 to CA 2.0.5a.
When trying to upload a new export mapping, it's stuck at 100% without adding the export to the list. In the apache error log we get:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 83886080 bytes) in /local/www/html/ca/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php on line 107, referer: https://smsbsag-tst.srv.mwn.de/ca/index.php/manage/MetadataExport/Index
(When upgrading from 1.7 to 2.0.5 the already existing mapping was automatically migrated, but this export doesn't work, therefore we tested uploading another mapping, which lead to this situation)
PHP 8.2 /.3 /.4 (All tested)
Ubuntu 24.04.2 LTS
Apache 2.4.58
Simple Mapping File:
ca_objects.object_inventarnr_container.obj_inv_number,ID,Parent ID,Element,Source,Options,Notes,Original values,Replacement values
Constant,17,,TestElement,test text,,,,
,,,,,,,,
,,,,,,,,
,Setting,Setting Value,Description,Notes,,,,
Setting,code,mapping_min,,,,,,
Setting,name,Mapping Min,,,,,,
Setting,table,ca_objects,,,,,,
Setting,exporter_format,XML,,,,,,
Setting,wrap_before,<rootElement>,,,,,,
Setting,wrap_after,</rootElement>,,,,,,
Expected output (when exporting a set with three objects) [but adding the mapping doesn't even work therefore the export can't be run in the first place on CA 2.0]:
<rootElement>
<TestElement>test text</TestElement>
<TestElement>test text</TestElement>
<TestElement>test text</TestElement>
</rootElement>