web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Could not find stored procedure 'sp_WHSOnHand'.

(0) ShareShare
ReportReport
Posted on by 1,559

Going to Inventory, got following error:

SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'sp_WHSOnHand'.

This is AX 2012 R3 with demo data. Going to SQL studio, under AX db, there is no such SP.

Any hint is greatly appreciated.

River.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at

    Hi River, simply recreate the sp_WHSOnHand stored procedure using SQL Server Management Studio. Find another AX database (same version as your AX database with the missing stored procedure) and open the Programmability > Stored Procedures node. Right click and select modify. This will generate a SQL script. In this SQL script, change ALTER PROCEDURE [dbo].[sp_WHSOnHand] to CREATE PROCEDURE [dbo].[sp_WHSOnHand]. Now copy the entire SQL script and execute it on the AX database without this stored procedure. Make sure that the permissions on this store procedure are the same as the others. That's all.

  • Suggested answer
    Ivan (Vanya) Kashperuk Profile Picture
    on at

    Before going with the above suggestion, I would simply try to synchronize the database.

    That should automatically trigger the creation of this stored procedure. Unless of course you have changed certain methods in the Application class?

  • Ganriver1 Profile Picture
    1,559 on at

    Thanks Guys, We are having sync problem. That's probably why.

  • Community Member Profile Picture
    on at

    Could you please send the screen shot of the error,

    this will help visualize the issue

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans