金蝶KIS旗舰版委外加工入库单生成凭证提示:运行时错误“3265”,在对应所需名称或序数的集合中,未找到项目。

请按照以下方法解决:

if exists(select 1 From ICChatBillTitle where FTypeID = 56 and FColName='FVchInterID') 

begin 

delete From ICChatBillTitle where FTypeID = 56 and FColName='FVchInterID' 

insert into ICChatBillTitle(FInterID,FTypeID,FColCaption,FColName,FTableName,FColType,FColWidth,FVisible,FItemClassID,FVisForQuest,FReturnDataType,FCountPriceType,FCtlIndex,FName,FTableAlias,FAction,FNeedCount,FIsPrimary,FLogicAction,FStatistical,FMergeable,FVisForOrder,FColCaption_CHT,FColCaption_EN,FControl,FMode,FControlType,FAlign,FEditable,FFormat,FFormatType,FMustSelected) 

values(-5,56,'凭证单ID$','FVchInterID','ICStockBill',3,1000,1,-1,1,0,2,0,'FVchInterID','v1','',0,5,'',0,0,1,'憑證單ID$','Voucher ID$',0,1,5,0,0,'',0,1) 

end 

else 

begin 

insert into ICChatBillTitle(FInterID,FTypeID,FColCaption,FColName,FTableName,FColType,FColWidth,FVisible,FItemClassID,FVisForQuest,FReturnDataType,FCountPriceType,FCtlIndex,FName,FTableAlias,FAction,FNeedCount,FIsPrimary,FLogicAction,FStatistical,FMergeable,FVisForOrder,FColCaption_CHT,FColCaption_EN,FControl,FMode,FControlType,FAlign,FEditable,FFormat,FFormatType,FMustSelected) 

values(-5,56,'凭证单ID$','FVchInterID','ICStockBill',3,1000,1,-1,1,0,2,0,'FVchInterID','v1','',0,5,'',0,0,1,'憑證單ID$','Voucher ID$',0,1,5,0,0,'',0,1) 

end