OFBiz
  1. OFBiz
  2. OFBIZ-4469

Load product dimension when and only when the product is created successfully

    Details

      Description

      Service "loadType1ProductInProductDimension" is triggered by "createProduct" service on "commit" events in "async" mode.

      Sometimes, there're too much backend work to do after a product is created and before the whole transaction is commited, as other "sync" mode secas, transaction itself and so on.

      In such situation, the loadType1ProductInProductDimension service cannot get the product info because the new created product has not been truely commited yet, and then it will fail with error message "cannot found product" in log.

      Patch: use "global-commit" event instead of "commit" to resolve this problem.

        Issue Links

          Activity

          Hide
          Jacques Le Roux added a comment -

          Please don't put tabs in you patches but 4 spaces, thanks

          Show
          Jacques Le Roux added a comment - Please don't put tabs in you patches but 4 spaces, thanks
          Hide
          Jacques Le Roux added a comment -

          Thanks Leon (and Martin for helpful advice),

          Your patch is in
          trunk r1184999
          R11.04 r1185007
          R10.04 r1185006
          R09.04 r1185008

          Show
          Jacques Le Roux added a comment - Thanks Leon (and Martin for helpful advice), Your patch is in trunk r1184999 R11.04 r1185007 R10.04 r1185006 R09.04 r1185008
          Hide
          Leon added a comment -
          Show
          Leon added a comment - use event "global-commit-post-run" instead. thanks Martin's comments in http://ofbiz.135035.n4.nabble.com/Should-loadSalesInvoiceFact-be-run-on-return-instead-of-commit-td3896289.html

            People

            • Assignee:
              Jacques Le Roux
              Reporter:
              Leon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development