Sage 100

 View Only
  • 1.  Rebuild Sort Files

    Posted 08-08-2024 08:05

    What does the Rebuild Sort Files utility do?  I know the quantity on order gets recalculated.  What else does the utility do and why do sort files need to be rebuilt, particularly if the instance is a premium / SQL database?  I have a customer on Premium and it takes 1.5 hours to rebuild the PO sort files.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------


  • 2.  RE: Rebuild Sort Files

    Posted 08-08-2024 08:31

    from kb article:

    Sort files are automatically maintained when records are added or deleted from the master files. Use the Rebuild Application Sort Files utility for the following reasons:

    • The sort files are damaged, resulting in a missing record error (Error 11) or missing information in a report.
    • Data files have been rebuilt or reinitialized.
    • Balances must be recalculated to resolve a specific issue.


    ------------------------------
    Brett Zimmerman
    Net at Work
    Greater Boston Area
    ------------------------------



  • 3.  RE: Rebuild Sort Files

    Posted 08-08-2024 08:47

    Thanks @Brett Zimmerman  I am also curious what purpose the sort files serve, particularly is the database is SQL.  SQL uses indexing so it is perplexing to me why a sort file would be necessary.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 4.  RE: Rebuild Sort Files

    Posted 08-08-2024 08:45

    See if they have mucho years of P.O. history involved.  Maybe copy some to history and purge a few years.



    ------------------------------
    Lee Graham
    Friendly Systems, Inc.
    ------------------------------



  • 5.  RE: Rebuild Sort Files

    Posted 08-08-2024 08:54

    Thanks @Lee Graham  Yes, they probably have a lot of history that's never been purged.  I will check that and test removing PO info and re-running the rebuild sort files in a backup company.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 6.  RE: Rebuild Sort Files

    Posted 08-08-2024 09:34

    I looked at the Providex code for purchase order / rebuild sort files. It looks like it recalculates the "on po" quantities in IM_ItemWarehouse. table, and it purges and recalculates the quantities in the table PO_OpenOrderDetailByItem. The program only looks at the PO_PurchaseOrderHeader and PO_PurchaseOrderDetail tables. it does not look at the PO history tables so purging history is not likely to help. @Doug Higgs Do they have a lot of obsolete purchase orders with a lot of detail?  The program looks at every line in the PO_PurchaseOrderDetail table and has to see if there are any un-received quantities 



    ------------------------------
    David Overholt
    DWD Technology Group
    ------------------------------



  • 7.  RE: Rebuild Sort Files

    Posted 08-08-2024 13:30

    The customer says for the last 15 years the PO rebuild took 5 minutes, then starting 2 months ago it takes 40 minutes.  They wonder if there is possibly something going on with the network.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 8.  RE: Rebuild Sort Files

    Posted 08-20-2024 10:56

    @David Overholt  Running the Purge Completed Purchase Orders utility solved it.  Thank you! The Rebuild PO Sort Files now takes 2 minutes.  Do you know what the Rebuild Job Cost Sort Files program does?  This takes 40 minutes or so.  What tables need to be cleaned up?



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 9.  RE: Rebuild Sort Files

    Posted 08-20-2024 11:17

    I have not looked at rebuild Job Cost files (until today that is).

     

    The rebuild Job Cost Sort files looks at

    • JC_Job
    • JC_JobCostCodeDetail
    • JC_JobTransactionDetail

     

    When the sort runs:

    • It looks at each Job in JC_Job where Accounting Method <> "C" (Completed Contract)
    • Then sets the values for unbilled Cost and Unbilled units to zero.

     

    • Once it has set that for all jobs, it reads every record in JC_JobTransactionDetail table and looks for unbilled costs and adds that value to unbilled cost in the file JC_JobCostCodeDetail.

     

     

    If that is taking time to run you might consider closing jobs and purging them to history, but I have clients that don't ever want to move the jobs out of open for one reason or another, so I would talk that through very carefully with the client and show them the results in a test company.

     

     

    Please note: I will be on vacation from Thursday August 22 through Monday September 2nd. I will not have any access to emails or voicemails during that time.

     

     

    David Overholt

    DWD Technology Group, Inc.

    9921 Dupont Circle Drive West, Suite 300 | Fort Wayne, IN 46825

    260.423.2414 main

    260.399.8655 Direct

    800.232.8913 toll free

    sagesupport@dwdtechgroup.com

    www.dwdtechgroup.com

     

    A black background with white text  Description automatically generated

     






  • 10.  RE: Rebuild Sort Files

    Posted 08-20-2024 11:51

    Thank you @David Overholt !  Terrific information.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------