ALTER PROCEDURE [dbo].[NST_InsertTblGenLedDet]
@GHDHeader int,
@Gldtype text,
@GldAccount text,
@GldDate DateTime,
@GldVoucherType int,
@GldDebit float=null,
@GldCredit float= null,
@GldDtaLine int= null
AS
DECLARE @ERR INT
BEGIN TRANSACTION
Insert into [TblGenLedDet]
(GHDHeader,Gldtype,GldAccount,GldDate, GldVoucherType, GldDebit,GldCredit,GldDtaLine)
values (@GHDHeader,@Gldtype,@GldAccount,@GldDate, @GldVoucherType, @GldDebit,@GldCredit,@GldDtaLine)
SET @ERR = @@Error
IF @ERR = 0
BEGIN
COMMIT TRANSACTION
END
ELSE
BEGIN
ROLLBACK TRANSACTION
RETURN @ERR
END

I am getting this error again and again though i have specified the parameter name as @GldCredit it shows Parameter name as Parameter1
In your code, you initialize
gldCredit, but then updategldDebit. YourgldCreditparameter never has any of its members set, and thus, has itsParaameterNamedefautled to"@Paremeter1".It looks like you copy/pasted the
gldDebitcode for setting up your parameter, but forgot to update all the references in the new block of code to point togldCredit.