二次开发单据,组织隔离,设置报错
金蝶云社区-云社区用户O74V1234
云社区用户O74V1234
0人赞赏了该文章 546次浏览 未经作者许可,禁止转载编辑于2016年11月16日 16:25:11


oralce 数据库保存报错
发生时间: 2016-11-16 16:20:45
错误来源:
错误类型: Kingdee.BOS.SQL.Exception.ParserException, Kingdee.BOS.SQL, Version=6.1.121.9, Culture=neutral, PublicKeyToken=null
错误信息: format sql error. target database is 'Oracle' detail message is :
formate table stmt error. table name is 'PAEZ_t_Cust_Entry101501_Issue'
constraint name greate than 30, constraint name is 'pk_PAEZ_t_Cust_Entry101501_Issue'
source sql is :
CREATE TABLE PAEZ_t_Cust_Entry101501_Issue (
FIssuePKID varchar(36) NOT NULL,
FID BIGINT NOT NULL,
FIssueOrgID bigint NOT NULL default(0),
FIssueMan bigint NOT NULL default(0),
FIssueDate datetime NULL,
CONSTRAINT pk_PAEZ_t_Cust_Entry101501_Issue
PRIMARY KEY(FID));
===================================================
调用堆栈:
Server stack trace:
at Kingdee.BOS.SQL.TransUtil.format(String ksql, IList stmtCol, Int32 targetDbType, FormatOptions options)
at Kingdee.BOS.App.Data.AbstractDatabase.CreateCommandByCommandType(CommandType commandType, String commandText, Boolean needTranslate, Int32 commandTimeout)
at Kingdee.BOS.App.Data.AbstractDatabase.CreateCommandByCommandType(CommandType commandType, String commandText, Int32 commandTimeout)
at Kingdee.BOS.App.Data.DBUtils.ExecuteBatch(Context ctx, List`1 lstSqlObj)
at Kingdee.BOS.App.Core.AlertTableUtil.CreateTable(Context ctx, BusinessInfo info, Entity entity)
at Kingdee.BOS.App.Core.AlertTableUtil.UpdateTableByBusinessInfo(Context ctx, BusinessInfo businessInfo)
at Kingdee.BOS.App.Core.MetaServicePlugIn.FormMetaServicePlugIn.AfterSaveTransaction(EventArgs eventArgs)
at Kingdee.BOS.App.Core.MetadataXmlWriter.Save(AbstractBusinessMetadata metadata, Boolean bUpdateVersion)
at Kingdee.BOS.App.Core.MetaDataService.Save(Context ctx, AbstractBusinessMetadata metadata)
Exception rethrown at [0]:
at Kingdee.BOS.ServiceHelper.MetaDataServiceHelper.Save(Context ctx, AbstractBusinessMetadata metadata)
at Kingdee.BOS.ServiceFacade.ServicesStub.Metadata.MetadataService.Save(AbstractBusinessMetadata metaData)