Calling Developers!
We are reenergizing our code contribution process! Learn More

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..

Hi team What is this error about Starting import with /data/data/import/local/full_EU.yml configurat

Options
U04UE6DF06N
U04UE6DF06N Posts: 77 🧑🏻‍🚀 - Cadet

Hi team
What is this error about
Starting import with /data/data/import/local/full_EU.yml configuration file.
Symfony\Component\Yaml\Exception\ParseException - Exception: You cannot define a sequence item when in a mapping at line 228 (near "- data_entity: acl-role").
in /data/vendor/symfony/yaml/Parser.php (163)

Command: /data/vendor/bin/console data:import:acl-role

Trace:

0 /data/vendor/symfony/yaml/Parser.php(97): Symfony\Component\Yaml\Parser->doParse(Array, 0)

1 /data/vendor/symfony/yaml/Yaml.php(80): Symfony\Component\Yaml\Parser->parse('# Example of a ...', 0)

2 /data/vendor/spryker/util-data-reader/src/Spryker/Service/UtilDataReader/Dependency/YamlReaderBridge.php(32): Symfony\Component\Yaml\Yaml::parse('# Example of a ...')

3 /data/vendor/spryker/util-data-reader/src/Spryker/Service/UtilDataReader/Model/BatchIterator/YamlBatchIterator.php(69): Spryker\Service\UtilDataReader\Dependency\YamlReaderBridge->parse('# Example of a ...')

4 /data/vendor/spryker/util-data-reader/src/Spryker/Service/UtilDataReader/Model/BatchIterator/YamlBatchIterator.php(80): Spryker\Service\UtilDataReader\Model\BatchIterator\YamlBatchIterator->initialize()

5 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/Parser/DataImportConfigurationYamlParser.php(51): Spryker\Service\UtilDataReader\Model\BatchIterator\YamlBatchIterator->current()

6 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/Executor/DataImportExecutor.php(67): Spryker\Zed\DataImport\Communication\Console\Parser\DataImportConfigurationYamlParser->parseConfigurationFile('/data/data/impo...')

7 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/DataImportConsole.php(240): Spryker\Zed\DataImport\Communication\Console\Executor\DataImportExecutor->executeByConfigAndImporterType(Object(Symfony\Component\Console\Input\ArgvInput), '/data/data/impo...',

'acl-role')

8 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/DataImportConsole.php(222): Spryker\Zed\DataImport\Communication\Console\DataImportConsole->executeByConfigAndImporterType(Object(Symfony\Component\Console\Input\ArgvInput), '/data/data/impo...', 'acl-role')

9 /data/vendor/symfony/console/Command/Command.php(298): Spryker\Zed\DataImport\Communication\Console\DataImportConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

10 /data/vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

11 /data/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\DataImport\Communication\Console\DataImportConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

12 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(114): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

13 /data/vendor/symfony/console/Application.php(171): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

14 /data/vendor/spryker/console/bin/console(27): Symfony\Component\Console\Application->run()

15 /data/vendor/bin/console(120): include('/data/vendor/sp...')

16

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 ⚖️ - Guardians (admin)
    Options

    Hey,
    please take a moment before you post a question here - Time of everyone is value. And it should be threat like that. A lot of developers here in the community are more than willing to help if we have a minute and if we have an idea what the problem might could be.

    What is a bit demotivating is if we have more and more questions here which could have been solved with a very fast (google) search.

    If I for example search for “Symfony\Component\Yaml\Exception\ParseException - Exception: You cannot define a sequence item when in a mapping” i directly find a stackoverflow thread with a possible answer. Maybe give it a try - with this you learn to be much faster and independent from others 💪