Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Problem posting inventory recalculation and closing. Connection is busy with results for another command.

$
0
0

We started receiving this error just recently while attempting to recalculate or close inventory in batch. 

Object Server 01:  The database reported (session 14 (user)): [Microsoft][SQL Server Native Client 11.0]Connection is busy with results for another command. The SQL statement was: "CREATE PROCEDURE [dbo].[sp_PreCloseNonFinTransfer]


I've traced the problem back to the method syncDBStoredProcedure in the class InventCostPreCloseNonFinTransferHelper. It attempts to drop a SP and then creates it the next line. It appears that the drop is still going on when the create is called. I've tried various things such as throwing a 60 second sleep in between the lines just to see if it works but I still receive the error. I've debugged it and I don't see where any new customizations may have been introduced that would affect this.

Has anyone ran into this or have any suggestions? Not running in batch is not an option as it takes much too long. 

Any help would be appreciated. Thanks!


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>