BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Could not infer value #122

Closed betterapp closed 11 months ago

betterapp commented 11 months ago

We try to use AI for getting data from OpenAI.

We have configured everything like in YouTube demonstration

When we run dataport we get such error:

[ALERT] Could not infer value. Argument 3 passed to Blackbit\DataDirectorBundle\lib\Pim\Item\Importer::infer() must implement interface Pimcore\Model\Element\ElementInterface, null given, called in /var/www/pimcore.dev/www/vendor/blackbit/data-director/lib/Pim/Item/Importer.php on line 1629

Is it a bug or we do something wrong.

Pim: 6.9 DD: 3.4.11

betterapp commented 11 months ago

OK. I have found. There was no Id (key mapping) for object

BlackbitDevs commented 11 months ago

Is fixed. Actually the infer method code was already implemented to not need the $dataObject but the parameter was not allowed to be null. Have fixed this now. As you say, it works now for you but if you need another 3.4.x release, just notify me.