Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Prototype Procedure showing error "cannot find script" (stored procedure name)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have created a stored procedure in SQL as below

CREATE PROC dbo.HBM_TestRun1  

AS  

select * from HBM060   -- custom table

 GO

 GRANT EXECUTE ON HBM_TestRun1 TO DYNGRP

but when I write prototype procedure in dexterity as below:

sproc returns long Ret_Code;

call sproc "HBM_TestRun1",Ret_Code;

it shows error message "cannot find script HBM_TestRun1"

Till yesterday morning, I am able to call stored procedures perfectly from dexterity

but now I am not able to call any new stored procedure.

I did another activity, to modify (add another parameter) to an existing SP, for which prototype Stored Procedure is working correctly,  and surprisingly the prototype procedure compiled successfully without giving error for new parameter. I then add new parameter and it won't compile. Meaning, the dexterity is not able to refresh the db connection.

Can anyone, help me out in resolving this issue.

GP Version is 10 with SP5 (10.00.1579)

Dexterity Version 10.0.332.0

Note: the spelling of SQL procedure and prototype is exactly same (as shown in the above code).

Regards,

Waliullah

*This post is locked for comments

  • Suggested answer
    soma Profile Picture
    soma 24,408 on at
    RE: Prototype Procedure showing error "cannot find script" (stored procedure name)

    While compiling the code, Dexterity will through the error message for calling Stored Procedure only if the below conditions.

    1. If the Dexterity Procedure Name is not same to Called Stored Procedure name withing the dex script.

    Note: Dexterity compiler will not consider whether the stored procedure available or not in the company/system database. See the below screenshot. Here the SP "HBM_TestRun5" is not available in both system and company database. But while compiling the code, dexterity was not showing any error. Because the script name and called SP are same. While running this code within GP, then the GP will through the error. Dexterity not consider this.

    2. The input parameter with the dex code is not match with the passed parameters in called stored procedure.

    Hope this helps!!!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Prototype Procedure showing error "cannot find script" (stored procedure name)

    Thanks Santosh, it solved my problem.

    Thanks Naga for your reply too.

    Regards,

    Waliullah

  • Suggested answer
    Naga Kiran Profile Picture
    Naga Kiran on at
    RE: Prototype Procedure showing error "cannot find script" (stored procedure name)

    If you have set the series properly, I suspect your ODBC connection. Do you have multiple SQL Server instances? If so please verify your ODBC connection whether its pointing to the correct SQL server instance where you created the stored procedure.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Prototype Procedure showing error "cannot find script" (stored procedure name)

    Hi,

    first create a Dex procedure HBM_TestRun1 (same name exactly as the Stored procedure name).

    and then you need to add the below script, into that dex procedure,

    sproc returns long Ret_Code;

    call sproc "HBM_TestRun1",Ret_Code;

    hope this will work for you,

    Regards,

    SantoshG

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Prototype Procedure showing error "cannot find script" (stored procedure name)

    Hi Naga,

    I already verified that, the stored procedure is created in COMPANY database (TWO) and I am creating prototype procedure in Dexterity under 'Sales' series.

    Regards,

    Waliullah

  • Suggested answer
    Naga Kiran Profile Picture
    Naga Kiran on at
    RE: Prototype Procedure showing error "cannot find script" (stored procedure name)

    The possible mistake here would be:

    You have created the stored proc for the company database then prototype procedure in Dexterity is under 'System' series . That means company procs should not be listed under 'System' series in Dex.

    Similarly System DB stored procedures should be under 'System' series in Dexterity

    Hope this helps.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans