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

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Dexterity stored procedure refusing to compile

(0) ShareShare
ReportReport
Posted on by 185

I have created a stored procedure in SQL as follows;

ALTER PROCEDURE .[dbo].[stp_SalesItemDetail] 
	-- Add the parameters for the stored procedure here
	@custnmbr char(15),
	@itemnmbr char(31),
	@docdate datetime,
	@qty numeric(19,5) = 1,
	@currency char(16) = 'GBP',
	@custprice numeric(19,5) output,
	@prcshid char(15) output,
	@listprice numeric(19,5) output
AS
BEGIN

Then in dex I have created a procedure called stp_SalesItemDetail with the following code;

sproc returns long sproc_status;

in string IN_custnmbr;
in string IN_itemnmbr;
in currency IN_qty;
in string IN_currency;
in date	IN_docdate;
inout currency INOUT_custprce;
inout string INOUT_prcshid;
inout currency INOUT_listprce;

call sproc "stp_SalesItemDetail", sproc_status, 
	IN_custnmbr, 
	IN_itemnmbr, 
	IN_docdate, 
	IN_qty, 
	IN_currency, 
	INOUT_custprce, 
	INOUT_prcshid, 
	INOUT_listprce;


However I am getting Type Incompatibility errors when I try to compile;

Type incompatibility 'script stp_SalesItemDetail Parameter #4'
Type incompatibility 'script stp_SalesItemDetail Parameter #5'
Type incompatibility 'script stp_SalesItemDetail Parameter #6'

If I change those parameters to strings in the dexterity code it compiles but then those are incorrect?!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Alvin Evans Profile Picture
    185 on at
    RE: Dexterity stored procedure refusing to compile

    OK, found the problem.

    I didn't realise that you had to declare the in_variables in the dexterity procedure in the same order they appear in the stored procedure, moving the IN_docdate declaration to above the IN_qty solved it, even though I had them in the correct order in the call function.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans