Uploaded image for project: 'Development'
  1. Development
  2. DEV-7000

Activating a GRN may produce the error "Unable to insert into IN_WarehouseSOH Module:CreateStockLines"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Backlog
    • Resolution: Done
    • Affects Version/s: 07.02.00.00
    • Fix Version/s: 07.02.02.00
    • Component/s: Goods Received Notes
    • Labels:
      None

      Description

      If an inventory item does not have an IN_WarehouseSOH record for a logical warehouse that a GRN is on, then when the GRN is activated the following error will occur:

      ---------------------------
      Error
      ---------------------------
      Error : unable to insert into IN_WarehouseSOH
      Module : CreateStockLines
      ---------------------------
      OK
      ---------------------------

      The system does first attempt to UPDATE IN_WarehouseSOH and if the rows affected is 0, it then attempts to INSERT into IN_WarehouseSOH as a defensive action.

      However, the logic to perform the INSERT is flawed and it actually just attempts the UPDATE again.

      Workaround is to run theĀ usp_Jiwa_IN_WarehouseSOH_ReBuild stored procedure to create the missing IN_WarehouseSOH records and then the error will not occur.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mikes@jiwa.com.au Mike Sheen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: