Hi ZhoKai,
1. ODBC driver
2. Uncertain case, if put messagebox to display the input parameter value before call stored procedure or datawindow.retreive() then it worked fine.
3. Stored Procedure :-
CREATE PROCEDURE g_VerifyRestrictedIds
@id varchar(15)
,@ErrorMessage varchar(255) = NULL OUTPUT
AS
Declare
@login varchar(15)
Select @login = NULL
Select @login = id
from RestrictedIds
where id = @id
If @login != NULL
Begin
Select @ErrorMessage = 'You can not use ' + @id + ' Login ID to log on.'
return 20000
End
RETURN 0
go
Grant Execute ON dbo.g_VerifyRestrictedIds TO public
go
sp_procxmode 'g_VerifyRestrictedIds', 'unchained'
go
Table:-
CREATE TABLE dbo.RestrictedIds
(
id varchar(15) NOT NULL
)
LOCK ALLPAGES
go
CREATE UNIQUE CLUSTERED INDEX RestrictedIds_i
ON dbo.RestrictedIds( id)
go
4. Logs file cannot attached due to format issue.
In AppeonErorr log, got another similar issue happpened :-
2021-01-21 00:32:37.884 : [Application name=dbweb,conn cache=dbweb_DEVP_adca8li_KL_SP,SQLOrProcedure=g_PlanSlct]Procedure g_PlanSlct expects parameter @comp_nr, which was not supplied.
in AppeonServer log,
884:3 [21-01-21 00:32:37] [Sessions (GetSession)] sessionName=1913406593
884:3 [21-01-21 00:32:37] [DWRetrieveCommand (outputDataObjectHeader)] dataObjectName=dddw_plan, lastModifyTime=NULL
884:3 [21-01-21 00:32:37] [DWRetrieveCommand (executeOneDataObject- pos 10)] DataObject=dddw_plan, actualParamIndex=0, paramList=[DataParameterInfo[name=, dataType=STRING, Direction=Input, IsNull=False, value=886], DataParameterInfo[name=, dataType=STRING, Direction=Input, IsNull=False, value=CB]]
884:3 [21-01-21 00:32:37] [DWRetrieveCommand (execute - get SPWrapper)] spWrapper=SPWrapper[
884:3 [21-01-21 00:32:37] ResultSetNo=0,
884:3 [21-01-21 00:32:37] SQL=g_PlanSlct]
884:3 [21-01-21 00:32:37] [Sessions (getSessionNoUpdateTime)] sessionName1=1913406593
884:3 [21-01-21 00:32:37] [EonASENETCommand (add parameter)] index = 0; type = AnsiString; value = 886
884:3 [21-01-21 00:32:37] [EonASENETCommand (add parameter)] index = 0; type = AnsiString; value = CB
884:3 [21-01-21 00:32:37] [DWRetrieveCommand (execute- general info)] packageCount=1,objectIdList=[0], zipFlag=[0]
900:3 [21-01-21 00:32:37] [DWRetrieveCommand (execute- After execute)] returnValue=ReturnObject [ Code=34, Message=Procedure g_PlanSlct expects parameter @comp_nr, which was not supplied.
900:3 [21-01-21 00:32:37] , Exception=, ReturnValue= ]
900:3 [21-01-21 00:32:37] [JRouterImpl (execute - Before validateTransactionAfterExecute)] ReturnObject [ Code=34, Message=Procedure g_PlanSlct expects parameter @comp_nr, which was not supplied.
900:3 [21-01-21 00:32:37] , Exception=, ReturnValue= ]
900:3 [21-01-21 00:32:37] [Sessions (GetSession)] sessionName=1913406593
900:3 [21-01-21 00:32:37] [JRouterImpl (Call-After execute)] After execute command.execute()
900:3 [21-01-21 00:32:37] [AXDispatcher (doPost)]