What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
@U025NCYDECF ```Zed.CRITICAL: Spryker\Zed\DataImport\Business\Exception\DataSetBrokerTransactionFa
Zed.CRITICAL: Spryker\Zed\DataImport\Business\Exception\DataSetBrokerTransactionFailedException - Class 'Pyz\Zed\Antelope\Dependency\AntelopeEvents' not found in "/data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataSet/DataSetStepBrokerTransactionAware.php::59" {"exception":"[object] (Spryker\\Zed\\DataImport\\Business\\Exception\\DataSetBrokerTransactionFailedException(code: 0): Class 'Pyz\\Zed\\Antelope\\Dependency\\AntelopeEvents' not found at /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataSet/DataSetStepBrokerTransactionAware.php:59)
Comments
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
can you double check the file Pyz\Zed\Antelope\Dependency\AntelopeEvents.php ?
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
can you maybe paste the path + filename here?
0 -
src/Pyz/Zed/Antelope/Dependency/AntelopeEvents.php
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
and in there you have
namespace Pyz\Zed\Antelope\Dependency; interface AntelopeEvents
right?
if yes, can you please double check the content of src/Pyz/Zed/DataImport/Business/Model/Antelope/AntelopeWriterStep.php ?
0 -
for AntelopeEvents.php - yes
double checked AntelopeWriterStep.php
0 -
<?php namespace Pyz\Zed\DataImport\Business\Model\Antelope; use Orm\Zed\Antelope\Persistence\PyzAntelopeQuery; use Spryker\Zed\DataImport\Business\Model\DataImportStep\DataImportStepInterface; use Spryker\Zed\DataImport\Business\Model\DataSet\DataSetInterface; use Pyz\Zed\Antelope\Dependency\AntelopeEvents; use Spryker\Zed\DataImport\Business\Model\DataImportStep\PublishAwareStep; class AntelopeWriterStep extends PublishAwareStep implements DataImportStepInterface { public const KEY_NAME = 'name'; public const KEY_COLOR = 'color'; /** * @param \Spryker\Zed\DataImport\Business\Model\DataSet\DataSetInterface $dataSet * * @throws \Spryker\Zed\DataImport\Business\Exception\EntityNotFoundException * * @return void */ public function execute(DataSetInterface $dataSet) { $antelopeEntity = PyzAntelopeQuery::create() ->filterByName($dataSet[static::KEY_NAME]) ->findOneOrCreate(); $antelopeEntity->setColor($dataSet[static::KEY_COLOR]); if ($antelopeEntity->isNew() || $antelopeEntity->isModified()) { $antelopeEntity->save(); } $this->addPublishEvents(AntelopeEvents::ENTITY_PYZ_ANTELOPE_CREATE, $antelopeEntity->getIdAntelope()); } }
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
the exception happens on executing the data:import:antelope?
0 -
y
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
if you remove the line
$this->addPublishEvents(AntelopeEvents::ENTITY_PYZ_ANTELOPE_CREATE, $antelopeEntity->getIdAntelope());
β’ is it still throwing the exception?
0 -
no
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
Can you paste the content of your AntelopeEvents.php pls?
0 -
hold on
0 -
guess I found the issue
0 -
damn.. itβs working
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
what was the problem?
0 -
AntelopeEvents.php had a space after the .php β¦
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
π Would be cool if the IDE would show this better π but glad we could solve this
0 -
i found out by trying to look up the file on the console
0 -
@U02KNGVH7BP
That also took me 2 hours of my lifetime.
pyz_antelope_search.schema.xml had a trailing space in my PhpStorm, so no table was generated.
@florian.scholz Maybe somehow you can notfiy your students next time to be extra careful, when copying class/filenames π0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 βοΈ - Guardians (admin)
Yes, I agree with you. Maybe we can also upvote this here: https://youtrack.jetbrains.com/issue/IDEA-256426
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random