Max Limit of Sales order Confirmations at a time?

Hey,

What is the maximum limit of sales orders that can be confirmed at a time in AX 2012 R2?

The number of sales orders you have.

So when i select around 4000 - 5000 orders and click on confirm button i get an error saying “Error executing code: Insufficient memory to run script.” So is this related to the max buffer size on the database tuning of the AX server config utility?

I dont think so, that message usually references a max buffer reference, You need a technical consultant to check the memory - but why are you confirming 5000 orders and what are you doing with them?