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 Guys, after updating spryker packages to latest versions, I cannot generate transfer:databuilder

UN3B09WJK
UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi Guys, after updating spryker packages to latest versions, I cannot generate transfer:databuilder successfully. It seems that something is wrong with Shipment type but cannot find the cause. Any suggestions?

Β«1

Comments

  • care to share a bit more? why do you think it’s the shipment? how does that databuilder look for you?

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    I have tracked getGeneratorRules method, which fails when trying to instantiate Shipment transfer object

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    This one fails

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    do you have
    <property name="requestedDeliveryDate" type="string" /> in your <transfer name="Shipment"> ?

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2019

    in addition to that, have you re-generated transfer objects first (just to be sure) ?

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    I have that property inside vendor/spryker/tax/tests/_data/tax.databuilder.xml

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UN3B09WJK okay, don’t you have it any where else in the project?

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    no

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    got it. Which version of the spryker/shipment and spryker/tax do you have?

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    the missing property should be in shipment module, I would recommend to update it.

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    ➜ www composer show spryker/shipment
    name : spryker/shipment
    descrip. : Shipment module
    keywords :
    versions : * 6.10.0

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    ➜ www composer show spryker/tax
    name : spryker/tax
    descrip. : Tax module
    keywords :
    versions : * 5.8.4

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    both are up to date, except I didn’t want to bring shipment to 7

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    but will try that also

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    right, the actual shipment version is 7.0.0..

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    then it requires to update spryker/sales and a lot of dependent packages… trying to avoid such huge update

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    but your tax is up to date. Might be an issue in Spryker module dependencies, I’ll check

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    thank you

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UN3B09WJK as a quick solution, you can try to add
    <property name="requestedDeliveryDate" type="string" /> to your shipment

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    to extend that transfer to project level=?

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    but this is not a 100% stable solution - what if you’re missing something else..

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet
  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    anyway shipment is not used in our implementation, it is there only due to dependencies

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    I will try

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UKJSE6T47 it works when I put type as string… Will see how will the system behave now

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    thanks a lot

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    you’re welcome πŸ‘

  • UN3B09WJK
    UN3B09WJK Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    When issuing command setup:install, it argues about β€œThere is no command defined with the name β€œtransfer:entity:generate”. Make sure the command was registered properly.” I have updated all related packages to latest version (setup, install, propel…)

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UN3B09WJK I think this issue deserves separate message/thread in the channel πŸ™‚