Can someone tell me what this means?

Internal error

iDB2DCFunctionErrorException

Message code: 32503
An unexpected error occurred

Running stored procedure from c# application

Code:
CREATE OR REPLACE PROCEDURE STSIQRY_PCMSDA_FILINGPROCESS(
	@iAppcode varchar(10),
	@iCmscase Numeric(10),
	@iFilename varchar(30),
	@iCrtUser varchar(30),
    @iSearchFlag varchar(30),
	@oImgPath varchar(512))
	LANGUAGE SQL
	MODIFIES SQL DATA
BEGIN
	Declare @ltrseq numeric(10);
	Declare @docseq numeric(10);
	Declare @warantno varchar(30);
	Declare @casenbr varchar(30);
	Declare @mstcseno varchar(30);
	Declare @LetterType varchar(30);
	Declare @filepath varchar(255);
	Declare @imgdocid varchar(100);
	Declare @curdate date;
	Declare @curtime time;
	Declare @rowcnt numeric(10);
	Declare @mstcseq numeric(10);
	Declare @prtyseq numeric(10);
	Declare @ltrdesc varchar(100);
	Declare @fil_app varchar(10);
	Declare @fil_cms numeric(10);
	Declare @fil_pty numeric(10);
	Declare @fil_ltr numeric(10);
	DECLARE @NullDate Date;
	DECLARE @NullTime Time;
	DECLARE @docseqLoc numeric(10);
	 DECLARE @Length1 int;
	 DECLARE @IMGDOC varchar(30);
	 
	 DECLARE SQLCODE INTEGER DEFAULT 0;

	DECLARE not_found
        CONDITION FOR sqlstate '42704';
    DECLARE v_sqlcode INT;
    
	Declare C1 scroll cursor with return for
	Select APPCODE,CMSCASE,CASPTYSQ,LTRSEQ From CMLIDXP Where APPCODE = @iAppcode and (CMSCASE = @iCmscase or 
		CMSCASE = @mstcseq) and STSCDE = 'RFD'
	fetch first 1000 rows only
	for read only optimize for 1000 rows;
	
	DECLARE CONTINUE HANDLER FOR SQLSTATE '01532',SQLSTATE '42704'
        SET v_sqlcode = SQLCODE;
        
	Set @NullDate = '1/1/0001';
	set @NullTime = '00.00.00';
	
	UPDATE cmcasep
	SET PM447A = current_date
	WHERE appcode = @iAppcode and cmscase=@iCmscase;
	  
    --Get Letter Type
    if @iSearchFlag = 'WEB' then
      set @LetterType = 'DEFINQ';
    else 
      set @LetterType = 'DISNTF';
	end if;
	
	--Get File Image Path
	Set @filepath = '';
	Select TRIM(CTRLCHAR) into @filepath From CMXCONP Where APPCODE = @iAppcode and CTRLVAL = 'IMGAPATH';
	
	--Get Warrant No#
	Set @warantno = '';
	Set @casenbr = '';
	Set @mstcseno = '';
	Set @mstcseq = 0;
	Select RTRIM(a.WARANTNO), RTRIM(a.CASENBR), RTRIM(c.Mstcode), c.MSTCSEQ into @warantno, @casenbr, @mstcseno, @mstcseq From CMCASEP a 
		inner join CMMCRCP b on a.appcode=b.appcode and a.cmscase=b.cmscase
		inner join CMMSTCP c on b.mstcseq=c.mstcseq
		where a.appcode=@iAppcode and a.cmscase=@iCmscase;

	--Get Party Seq
	Set @prtyseq = 0;
	Select CASPTYSQ into @prtyseq From CMCPTYP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CPTYPINT = 'DF';
	
	--Get Letter Index Sequence
	Set @ltrseq = 0;
	Select Max(LTRSEQ) + 1 into @ltrseq From CMLIDXP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CASPTYSQ = @prtyseq;
	If IFNULL(@ltrseq,0) = 0 then
		Set @ltrseq = 1;
	end if;
	
	--Set current Date
	Set @curdate = current_date;
	Set @curtime = current_time;

	--Get Letter Type Desc
	Set @ltrdesc = '';
	Select TRIM(CSLTRDSC) into @ltrdesc From CMTLTYP Where CSLTRTYP = @LetterType;
	
	SET @IMGDOC = IFNULL(@warantno, '') || '-' || IFNULL(@LetterType, '');
	
	--Get Image Doc Seq
	Set @docseq = 0;
	Set @rowcnt = 0;
	Select Count(*) into @rowcnt From CMLIDXP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CASPTYSQ = @prtyseq and 
		LOCATE(@IMGDOC,imgdocid) > 0;
	If IFNULL(@rowcnt,0) = 0 then
		Set @docseq = 1;
	Else
		if(@IMGDOC = '') then
			Set @docseq = 1;
		else
			Set @Length1 = length(@IMGDOC) + 1;
			
			Select (Max(Cast(Substring(IMGDOCID,length(@IMGDOC)+1,length(IMGDOCID)-length(@IMGDOC)) as numeric))+1) into @docseq 
			From CMLIDXP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CASPTYSQ = @prtyseq and LOCATE(@IMGDOC,IMGDOCID) > 0;
		end if;
	End if;
	Set @imgdocid = @IMGDOC || Cast(@docseq as varchar(10));
	
	--Set Image File Path
	Set @filepath = @filepath || '' || @warantno || '\' || TRIM(@iFilename);
	Set @oImgPath = @filepath;

	--Insert Into CMIMGDP
	Set @rowcnt = 0;
	Select Count(*) into @rowcnt From CMIMGDP Where RTRIM(ImgDocID) = RTRIM(@imgdocid);
	If IFNULL(@rowcnt,0) > 0 then
		Delete From CMIMGDP Where RTRIM(ImgDocID) = RTRIM(@imgdocid);
	End if;
	INSERT INTO CMIMGDP(ImgDocID,ImgBchYN,DOCNAME,ImagPath,ImgUser,ImgScnDt,ImgScnTm,WARANTNO,CASENBR,Crtuser,
		Crtdate,OBF003,DPUPDUSR,Chgdate,OBF006,APPCODE)
     VALUES(IFNULL(@imgdocid, ''),'N',@iFilename,@filepath,@iCrtuser,@curdate,@curtime,@warantno,@casenbr,@iCrtuser,@curdate,@curtime,'',
		@NullDate, @NullTime,@iAppcode);
	--Insert Into CMLIDXP & CMLIEXP
	Set @rowcnt = 0;
	Select Count(*) into @rowcnt From CMLIDXP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CASPTYSQ = @prtyseq and LTRSEQ = @ltrseq;
	If IFNULL(@rowcnt,0) > 0 then
		Delete From CMLIDXP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CASPTYSQ = @prtyseq and LTRSEQ = @ltrseq;
	End if;
	INSERT INTO CMLIDXP(APPCODE,CMSCASE,CASPTYSQ,LTRSEQ,CSLTRTYP,ACTTYPE,CSMMLTRDT,CSMMLTRTM,CSLTRDSC,CONVYN,
		ImgDocID,MediaTyp,CMPDATE,STSCDE,PRIORCD,Crtuser,Crtdate,OBF003,DPUPDUSR,Chgdate,OBF006)
     VALUES(@iAppcode,@iCmscase,@prtyseq,@ltrseq,@LetterType,'',@curdate,@curtime,@ltrdesc,'N',ifnull(@imgdocid, ''),'1',@NullDate,'','',
		@iCrtuser,@curdate,@curtime,'',@NullDate, @NullTime);
	Set @rowcnt = 0;
	Select Count(*) into @rowcnt From CMLIEXP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CASPTYSQ = @prtyseq and LTRSEQ = @ltrseq;
	If IFNULL(@rowcnt,0) > 0 then
		Delete From CMLIEXP Where APPCODE = @iAppcode and CMSCASE = @iCmscase and CASPTYSQ = @prtyseq and LTRSEQ = @ltrseq;
	End if;
	INSERT INTO CMLIEXP(APPCODE,CMSCASE,CASPTYSQ,LTRSEQ,DOCDUDAT,DOCFIDAT,STDQTY,DOCNFDAT,EXECDAT,PagesNum,DAYDUDAT,
		DAYNFDAT,LIECHR1,LIECHR2,LIEDesc1,LIEDesc2,LIEFlg1,LIEFlg2,LIAMT1,LIAMT2,CTYFILING,Crtuser,Crtdate,OBF003,
		DPUPDUSR,Chgdate,OBF006)
     VALUES(@iAppcode,@iCmscase,@prtyseq,@ltrseq,@NullDate,@NullDate,0,@NullDate,@NullDate,0.00,0,0,'','','','','N','N',0,0,'',
		@iCrtuser,@curdate,@curtime,'', @NullDate, @NullTime);
		
	--Update       
        
	Open C1;
	Fetch C1 Into @fil_app, @fil_cms, @fil_pty, @fil_ltr;
	While SQLCODE = 0 do
		Set @rowcnt = 0;
		Select Count(*) into @rowcnt From CMLIEXP Where APPCODE = @fil_app and CMSCASE = @fil_cms and CASPTYSQ = @fil_pty and LTRSEQ = @fil_ltr;
		If IFNULL(@rowcnt,0) = 0 then
			INSERT INTO CMLIEXP(APPCODE,CMSCASE,CASPTYSQ,LTRSEQ,DOCDUDAT,DOCFIDAT,STDQTY,DOCNFDAT,EXECDAT,PagesNum,
				DAYDUDAT,DAYNFDAT,LIECHR1,LIECHR2,LIEDesc1,LIEDesc2,LIEFlg1,LIEFlg2,LIAMT1,LIAMT2,CTYFILING,
				Crtuser,Crtdate,OBF003,DPUPDUSR,Chgdate,OBF006)
			VALUES(@fil_app,@fil_cms,@fil_pty,@fil_ltr,@NullDate,@NullDate,0,@NullDate,@NullDate,0.00,0,0,'','','','','N','N',
				0,0,'',@iCrtuser,@curdate,@curtime,'',@NullDate,@NullTime);
		End if;
        if @iSearchFlag = 'WEB' then
			Update CMLIEXP Set LIEFLG2 = 'Y' Where APPCODE = @fil_app and CMSCASE = @fil_cms and CASPTYSQ = @fil_pty and LTRSEQ = @fil_ltr;
        else
			Update CMLIEXP Set liamt1 = 1 Where APPCODE = @fil_app and CMSCASE = @fil_cms and CASPTYSQ = @fil_pty and LTRSEQ = @fil_ltr;
		end if;
		Fetch C1 Into @fil_app, @fil_cms, @fil_pty, @fil_ltr;
	End While;
	Close C1;
END