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 , I am running Command docker/sdk up --build it cause a error : - Exception - Exception: Val

U04UE6DF06N
U04UE6DF06N Posts: 77 🧑🏻‍🚀 - Cadet

Hi team ,
I am running Command docker/sdk up --build it cause a error : -
Exception - Exception: Value mismatch for "Address.firstName" transfer property. Value1: "firstName"; Value2: "firstName()". To fix this, search for 'property name="firstName"' in the code base and fix the wrong one.
in /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/Model/Generator/TransferDefinitionMerger.php (160)

Command: vendor/bin/console transfer:databuilder:generate

Trace:

0 /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/Model/Generator/TransferDefinitionMerger.php(120): Spryker\Zed\Transfer\Business\Model\Generator\TransferDefinitionMerger->mergeProperties(Array, Array, 'Address')

1 /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/Model/Generator/TransferDefinitionMerger.php(67): Spryker\Zed\Transfer\Business\Model\Generator\TransferDefinitionMerger->mergeProperty(Array, Array, 'Address')

2 /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/Model/Generator/TransferDefinitionMerger.php(42): Spryker\Zed\Transfer\Business\Model\Generator\TransferDefinitionMerger->mergeDefinitions(Array, Array, 'Address')

3 /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/Model/Generator/DataBuilderDefinitionBuilder.php(45): Spryker\Zed\Transfer\Business\Model\Generator\TransferDefinitionMerger->merge(Array)

4 /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/Model/DataBuilderGenerator.php(48): Spryker\Zed\Transfer\Business\Model\Generator\DataBuilderDefinitionBuilder->getDefinitions()

5 /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Business/TransferFacade.php(57): Spryker\Zed\Transfer\Business\Model\DataBuilderGenerator->execute()

6 /data/vendor/spryker/transfer/src/Spryker/Zed/Transfer/Communication/Console/DataBuilderGeneratorConsole.php(54): Spryker\Zed\Transfer\Business\TransferFacade->generateDataBuilders(Object(Symfony\Component\Console\Logger\ConsoleLogger))

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

8 /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))

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

10 /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))

11 /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))

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

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

14

Please help me

Comments

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

    Hey, have you created/touched transfer files on project level?

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

    no i didn't

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

    what does git status show?

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

    $ git status
    fatal: unsafe repository ('//wsl.localhost/Ubuntu/home/aashu89/spryker-new/b2c-demo-shop' is owned by someone else)
    To add an exception for this directory, call:

        git config --global --add safe.directory '%(prefix)///wsl.localhost/Ubuntu/home/aashu89/spryker-new/b2c-demo-shop'
    

    Set the environment variable GIT_TEST_DEBUG_UNSAFE_DIRECTORIES=true and run
    again for more information.

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

    It would be also beneficial for you to learn some more git basics if you work on projects 🙂 - What does git status do? It shows the “current status” of your local repository. Incl. possible changed files. So please make your environment work properly with git in order to look further into the problem you are facing

  • U04UE6DF06N
    U04UE6DF06N Posts: 77 🧑🏻‍🚀 - Cadet
    edited March 2023

    i am not using git