/
Re-order reports sometimes give an error 'Failed to retrieve data from the database' when running
Re-order reports sometimes give an error 'Failed to retrieve data from the database' when running
Problem
Weighted YTD Average Re-Order and Replenish Re-Order reports can sometime give an error 'Failed to retrieve data from the database' when running
Solution
Sound SQL skills are required
A good knowledge of SQL is required to complete this task.
The issue was caused by the underlying stored procs declaring a varchar variable too small to hold the SQLstatement. We have modified "usp_Jiwa_PurchaseOrder_ReplenishToMinimum" and "usp_Jiwa_PurchaseOrder_WeightedYTDAverage" to use VARCHAR(MAX) to solve the issue.
Download the attached stored procedures to run over the data.
Related articles
, multiple selections available,
Related content
POINF022 - Replenish ReOrder report ignored the criteria selection for 'BOM Parents?'
POINF022 - Replenish ReOrder report ignored the criteria selection for 'BOM Parents?'
More like this
REINF010 - Receival Slips Uninvoiced report is including reversals - 7.00.175 and earlier
REINF010 - Receival Slips Uninvoiced report is including reversals - 7.00.175 and earlier
More like this
Loading a new Job Costing job that has back orders errors 'Invalid row index:...get_item' - 7.02.00.00 SR3 only
Loading a new Job Costing job that has back orders errors 'Invalid row index:...get_item' - 7.02.00.00 SR3 only
More like this
Process Back Orders is not fulfilling back orders on Warehouse Transfers - 7.00.175, 7.02.00, 7.02.01
Process Back Orders is not fulfilling back orders on Warehouse Transfers - 7.00.175, 7.02.00, 7.02.01
More like this
Where Supply Order Units > 1 stock is being over-ordered using Replenish to Minimum Re-Order method
Where Supply Order Units > 1 stock is being over-ordered using Replenish to Minimum Re-Order method
More like this
Purchase Invoice first invoice in warehouse produces error - 7.00.157 and prior only
Purchase Invoice first invoice in warehouse produces error - 7.00.157 and prior only
More like this