CSV import error on label()

Hello all,

I was wondering if you could help me figure out the following issue:
Everything was running smoothly, however i now tried to import a csv and get zero response and the following error-log. Can you help me figure out what the issue is?

Fatal error: Uncaught Error: Call to a member function label() on null in /home/u479907350/domains/linkeddata-artifact.nl/public_html/modules/LinkedDataSets/Module.php:139
Stack trace:
#0 /home/u479907350/domains/linkeddata-artifact.nl/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): LinkedDataSets\Module->dispatchJobs()
#1 /home/u479907350/domains/linkeddata-artifact.nl/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#2 /home/u479907350/domains/linkeddata-artifact.nl/public_html/application/src/Db/Event/Subscriber/Entity.php(117): Laminas\EventManager\EventManager->triggerEvent()
#3 /home/u479907350/domains/linkeddata-artifact.nl/public_html/application/src/Db/Event/Subscriber/Entity.php(78): Omeka\Db\Event\Subscriber\Entity->trigger()
#4 /home/u479907350/domains/linkeddata-artifact.nl/public_html/vendor/doctrine/event-manager/lib/Doctrine/Common/EventManager.php(41): Omeka\Db\Event\Subscriber\Entity->postPersist()
#5 /home/u479907350/domains/linkeddata-artifact.nl/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/Event/ListenersInvoker.php(99): Doctrine\Common\EventManager->dispatchEvent()
#6 /home/u479907350/domains/linkeddata-artifact.nl/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1158): Doctrine\ORM\Event\ListenersInvoker->invoke()
#7 /home/u479907350/domains/linkeddata-artifact.nl/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(425): Doctrine\ORM\UnitOfWork->executeInserts()
#8 /home/u479907350/domains/linkeddata-artifact.nl/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(392): Doctrine\ORM\UnitOfWork->commit()
#9 /home/u479907350/domains/linkeddata-artifact.nl/public_html/application/src/Api/Adapter/AbstractEntityAdapter.php(418): Doctrine\ORM\EntityManager->flush()
#10 /home/u479907350/domains/linkeddata-artifact.nl/public_html/application/src/Api/Manager.php(227): Omeka\Api\Adapter\AbstractEntityAdapter->batchCreate()
#11 /home/u479907350/domains/linkeddata-artifact.nl/public_html/application/src/Api/Manager.php(97): Omeka\Api\Manager->execute()
#12 /home/u479907350/domains/linkeddata-artifact.nl/public_html/modules/CSVImport/src/Job/Import.php(364): Omeka\Api\Manager->batchCreate()
#13 /home/u479907350/domains/linkeddata-artifact.nl/public_html/modules/CSVImport/src/Job/Import.php(266): CSVImport\Job\Import->create()
#14 /home/u479907350/domains/linkeddata-artifact.nl/public_html/modules/CSVImport/src/Job/Import.php(205): CSVImport\Job\Import->processBatchData()
#15 /home/u479907350/domains/linkeddata-artifact.nl/public_html/application/src/Job/DispatchStrategy/Synchronous.php(34): CSVImport\Job\Import->perform()
#16 /home/u479907350/domains/linkeddata-artifact.nl/public_html/modules/Log/src/Job/Dispatcher.php(82): Omeka\Job\DispatchStrategy\Synchronous->send()
#17 /home/u479907350/domains/linkeddata-artifact.nl/public_html/application/data/scripts/perform-job.php(66): Log\Job\Dispatcher->send()
#18 {main}
thrown
in /home/u479907350/domains/linkeddata-artifact.nl/public_html/modules/LinkedDataSets/Module.php on line 139

Hi @svis ,

It looks like the error is coming from the Linked Data Sets module. Looking at the code, it appears you might not have a resource template associated with an item that is being imported.

Thank you very much for your answer. I disabled it for now, but i will soon test it with a resource template associated.