Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Problem of HANA modeling - constraint is already existing

$
0
0

I created a analytic view in SAP HANA Studio and built up a data modle as following picture shows. I tried to save and validate this data modle, but there is a error message appeared like following:


Message :

  Repository: Encountered an error in repository runtime extension;Model inconsistency. Deploy Analytic View:

constraint 'PATH_/IAM/D_I_DATE_2.SAPMSV:/IAM/D_I_DATE.MANDT' is already existing(46)

 

 

SQL: transaction rolled back by an internal error: column store error: <?xml version="1.0" encoding="utf-8"?><createCubeResult version="1.0"><status><message>The scenario XML is not valid</message><errorCode>2112</errorCode></status><details><errors><detail><element>cubeSchema -> cube (_SYS_BIC:tmp.i302473/QMEL_ANA_DATE/olap) -> constraints -> joinPathConstraint (PATH_/IAM/D_I_DATE_2.SAPMSV:/IAM/D_I_DATE.MANDT)</element><code>46</code><message>constraint 'PATH_/IAM/D_I_DATE_2.SAPMSV:/IAM/D_I_DATE.MANDT' is already existing</message></detail><detail><element>cubeSchema -> cube (_SYS_BIC:tmp.i302473/QMEL_ANA_DATE/olap) -> constraints -> joinPathConstraint (PATH_/IAM/D_I_DATE_3.SAPMSV:/IAM/D_I_DATE.MANDT)</element><code>46</code><message>constraint 'PATH_/IAM/D_I_DATE_3.SAPMSV:/IAM/D_I_DATE.MANDT' is already existing</message></detail></errors></details></createCubeResult>

 

 

Create OLAP Scenario statement: CREATE OLAP SCENARIO '<?xml version="1.0" encoding="utf-8"?><cubeSchema version="3" operation="createHanaCube"><cube name="_SYS_BIC:tmp.i302473/QMEL_ANA_DATE/olap" registerCubeForApsFlag="true" registerCubeForSqlApsFlag="false"><cubeTables><cubeTable name="SAPMSV:/IAM/D_I_DATE" type="d-table"/><cubeTable name="SAPMSV:/IAM/D_I_ROOT" type="f-table"/></cubeTables><joinConditions><joinCondition name="JOIN_/IAM/D_I_ROOT_/IAM/D_I_DATE_1" joinType="rightOuter"><partner1 table="SAPMSV:/IAM/D_I_ROOT" column="DB_KEY"/><partner2 table="SAPMSV:/IAM/D_I_DATE" column="PARENT_KEY"/></joinCondition></joinConditions><joinPaths><joinPath name="PATH_/IAM/D_I_DATE_1"><joins><join name="JOIN_/IAM/D_I_ROOT_/IAM/D_I_DATE_1"/></joins></joinPath><joinPath name="PATH_/IAM/D_I_DATE_2"><joins><join name="JOIN_/IAM/D_I_ROOT_/IAM/D_I_DATE_1"/></joins></joinPath><joinPath name="PATH_/IAM/D_I_DATE_3"><joins><join name="JOIN_/IAM/D_I_ROOT_/IAM/D_I_DATE_1"/></joins></joinPath></joinPaths><dimensionAttributes><dimensionAttribute name="tmp.i302473/I_R_END$DB_KEY_END"><columnMappings><columnMapping name="DB_KEY_END" technicalName="tmp.i302473/I_R_END$DB_KEY_END" type="key" table="SAPMSV:/IAM/D_I_DATE" column="DB_KEY" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="tmp.i302473/I_R_END$DATE_TIME_END"><columnMappings><columnMapping name="DATE_TIME_END" technicalName="tmp.i302473/I_R_END$DATE_TIME_END" type="key" table="SAPMSV:/IAM/D_I_DATE" column="DATE_TIME" joinPath="PATH_/IAM/D_I_DATE_2" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="tmp.i302473/I_R_END$ROLE_CD_END"><columnMappings><columnMapping name="ROLE_CD_END" technicalName="tmp.i302473/I_R_END$ROLE_CD_END" type="key" table="SAPMSV:/IAM/D_I_DATE" column="ROLE_CD" joinPath="PATH_/IAM/D_I_DATE_2" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="tmp.i302473/I_R_START$DB_KEY_START"><columnMappings><columnMapping name="DB_KEY_START" technicalName="tmp.i302473/I_R_START$DB_KEY_START" type="key" table="SAPMSV:/IAM/D_I_DATE" column="DB_KEY" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="tmp.i302473/I_R_START$DATE_TIME_START"><columnMappings><columnMapping name="DATE_TIME_START" technicalName="tmp.i302473/I_R_START$DATE_TIME_START" type="key" table="SAPMSV:/IAM/D_I_DATE" column="DATE_TIME" joinPath="PATH_/IAM/D_I_DATE_3" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="tmp.i302473/I_R_START$ROLL_CD_START"><columnMappings><columnMapping name="ROLL_CD_START" technicalName="tmp.i302473/I_R_START$ROLL_CD_START" type="key" table="SAPMSV:/IAM/D_I_DATE" column="ROLE_CD" joinPath="PATH_/IAM/D_I_DATE_3" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="DATE_TIME"><columnMappings><columnMapping name="DATE_TIME" technicalName="DATE_TIME" type="key" table="SAPMSV:/IAM/D_I_DATE" column="DATE_TIME" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ROLE_CD"><columnMappings><columnMapping name="ROLE_CD" technicalName="ROLE_CD" type="key" table="SAPMSV:/IAM/D_I_DATE" column="ROLE_CD" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="TIME_ZONE_CD"><columnMappings><columnMapping name="TIME_ZONE_CD" technicalName="TIME_ZONE_CD" type="key" table="SAPMSV:/IAM/D_I_DATE" column="TIME_ZONE_CD" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="PARENT_KEY"><columnMappings><columnMapping name="PARENT_KEY" technicalName="PARENT_KEY" type="key" table="SAPMSV:/IAM/D_I_DATE" column="PARENT_KEY" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ISSUE_ID"><columnMappings><columnMapping name="ISSUE_ID" technicalName="ISSUE_ID" type="key" table="SAPMSV:/IAM/D_I_ROOT" column="ISSUE_ID" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ISSUE_TYPE"><columnMappings><columnMapping name="ISSUE_TYPE" technicalName="ISSUE_TYPE" type="key" table="SAPMSV:/IAM/D_I_ROOT" column="ISSUE_TYPE" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ISSUE_CATEGORY"><columnMappings><columnMapping name="ISSUE_CATEGORY" technicalName="ISSUE_CATEGORY" type="key" table="SAPMSV:/IAM/D_I_ROOT" column="ISSUE_CATEGORY" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="APPLICATION"><columnMappings><columnMapping name="APPLICATION" technicalName="APPLICATION" type="key" table="SAPMSV:/IAM/D_I_ROOT" column="APPLICATION" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="PRIORITY"><columnMappings><columnMapping name="PRIORITY" technicalName="PRIORITY" type="key" table="SAPMSV:/IAM/D_I_ROOT" column="PRIORITY" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="NODE_CAT_KEY"><columnMappings><columnMapping name="NODE_CAT_KEY" technicalName="NODE_CAT_KEY" type="key" table="SAPMSV:/IAM/D_I_DATE" column="NODE_CAT_KEY" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="COUNTRY"><columnMappings><columnMapping name="COUNTRY" technicalName="COUNTRY" type="key" table="SAPMSV:/IAM/D_I_ROOT" column="COUNTRY" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="MANDT"><columnMappings><columnMapping name="MANDT" technicalName="MANDT" type="key" table="SAPMSV:/IAM/D_I_DATE" column="MANDT" joinPath="PATH_/IAM/D_I_DATE_1" isVisible="true"/></columnMappings></dimensionAttribute></dimensionAttributes><measures><measure name="COUNT_ISSUE" table="SAPMSV:/IAM/D_I_ROOT" column="ISSUE_ID" aggregationType="count" isVisible="true"/></measures><constraints><constraint name="SAPMSV:/IAM/D_I_ROOT.MANDT" table="SAPMSV:/IAM/D_I_ROOT" column="MANDT" operator="eq" value="$$client$$"/><joinPathConstraint name="PATH_/IAM/D_I_DATE_1.SAPMSV:/IAM/D_I_DATE.MANDT" table="SAPMSV:/IAM/D_I_DATE" column="MANDT" operator="eq" value="$$client$$" joinPath="PATH_/IAM/D_I_DATE_1"/><joinPathConstraint name="PATH_/IAM/D_I_DATE_2.SAPMSV:/IAM/D_I_DATE.MANDT" table="SAPMSV:/IAM/D_I_DATE" column="MANDT" operator="eq" value="$$client$$" joinPath="PATH_/IAM/D_I_DATE_2"/><joinPathConstraint name="PATH_/IAM/D_I_DATE_2.SAPMSV:/IAM/D_I_DATE.ROLE_CD" table="SAPMSV:/IAM/D_I_DATE" column="ROLE_CD" operator="eq" value="302" joinPath="PATH_/IAM/D_I_DATE_2" forceUsageFlag="true" fixedValueFlag="true"/><joinPathConstraint name="PATH_/IAM/D_I_DATE_2.SAPMSV:/IAM/D_I_DATE.MANDT" table="SAPMSV:/IAM/D_I_DATE" column="MANDT" operator="eq" value="$$client$$" joinPath="PATH_/IAM/D_I_DATE_2" forceUsageFlag="true"/><joinPathConstraint name="PATH_/IAM/D_I_DATE_3.SAPMSV:/IAM/D_I_DATE.MANDT" table="SAPMSV:/IAM/D_I_DATE" column="MANDT" operator="eq" value="$$client$$" joinPath="PATH_/IAM/D_I_DATE_3"/><joinPathConstraint name="PATH_/IAM/D_I_DATE_3.SAPMSV:/IAM/D_I_DATE.ROLE_CD" table="SAPMSV:/IAM/D_I_DATE" column="ROLE_CD" operator="eq" value="301" joinPath="PATH_/IAM/D_I_DATE_3" forceUsageFlag="true" fixedValueFlag="true"/><joinPathConstraint name="PATH_/IAM/D_I_DATE_3.SAPMSV:/IAM/D_I_DATE.MANDT" table="SAPMSV:/IAM/D_I_DATE" column="MANDT" operator="eq" value="$$client$$" joinPath="PATH_/IAM/D_I_DATE_3" forceUsageFlag="true"/></constraints></cube></cubeSchema>'


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>