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 While importing data using command data:import shows the error like Exception: Call to undefined

U03CDV6GDSP
U03CDV6GDSP Posts: 38 🧑🏻‍🚀 - Cadet

Hi
While importing data using command data:import
shows the error like

Exception: Call to undefined method Pyz\Zed\DataImport\Business\DataImportBusinessFactory::getStore()
in /data/src/Pyz/Zed/DataImport/Business/DataImportBusinessFactory.php (1143)

Can anyone please guide and help to get the cause and respective fixes
Thank you

Comments

  • U03CDV6GDSP
    U03CDV6GDSP Posts: 38 🧑🏻‍🚀 - Cadet

    Hi @UNGMX0012, @UQK3ZPJEN
    any idea on such error, could you please share any helping hint
    Thank you

  • U03CDV6GDSP
    U03CDV6GDSP Posts: 38 🧑🏻‍🚀 - Cadet

    Hi
    Could someone please guide and help to get resolution of these errors come across while data import
    Thank you so much

  • sebastian.larisch
    sebastian.larisch Spryker Customer Posts: 143 🧑🏻‍🚀 - Cadet
    edited February 2023

    actually a clear error message. you are calling getStore() in line 1143 in your factory. which does not exist anymore. guess removed in vendor class. check what you need instead as a dependency. if it is the AddLocalesStep which was

    return new AddLocalesStep($this->getStore());
    

    before, you need to inject Facade instead:

    return new AddLocalesStep($this->getDataImportStoreFacade());
    

    but the constructor of the related class should tell u what u have to inject