(Creator I Update 8) datatable: no matching row found for rowindex

I am creating an editable data table with a TextField column. The database is Oracle. I set concurrency of the underlying rowset. as CONCUR_UPDATEABLE. In the event handler I call datatablemodel.commit();
But I'm getting "no matching row found for rowindex 0" error.
There is only one related post and it doesn't give any definitive answers.
Thanks for the solution.
-Jie

Hi Jie,
I would highly recommend you to upgrade/use Creator 2 Update1. There has been two big releases of Creator after this release of Creator 2004Q2 you are using. There have been lots of new features and lot of bug fixes which could make things really easy for you.
Please check out: http://developers.sun.com/prodtech/javatools/jscreator/downloads/index.jsp
Best Regards,
Sakthi

Similar Messages

  • No row found for rowKey.

    Hi I am using Oracle Jdeveloper 11g Release 1
    I have a database table:
    SQL> desc em_cs_cc_history;
    Name                                      Null?    Type
    NAME                                      NOT NULL VARCHAR2(64)
    VERSION                                   NOT NULL VARCHAR2(64)
    DESCRIPTION                                        VARCHAR2(800)
    ORIGIN_SITE_ID                            NOT NULL RAW(16)
    ORIGIN_SITE_NAME                                   VARCHAR2(128)
    IS_PUBLISHED                                       NUMBER(1)
    IS_SYSTEM                                          NUMBER(1)
    IS_LOCAL                                           NUMBER(1)
    DNAME_NLS_ID                                       VARCHAR2(64)
    DESCRIPTION_NLSID                                  VARCHAR2(64)
    OWNER                                              VARCHAR2(256)
    XML_SNAPSHOT                                       BLOB
    XML_SNAPSHOT_TS                                    DATEWhich i am using in my model and view . My Entity Object definition on the table is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <!---->
    <Entity
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EmCsCcHistoryEO"
      Version="11.1.1.62.68"
      InheritPersonalization="true"
      DBObjectType="table"
      DBObjectName="EM_CS_CC_HISTORY"
      AliasName="EmCsCcHistoryEO"
      BindingStyle="OracleName"
      UseGlueCode="false"
      RowClass="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEOImpl"
      DefClass="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEODefImpl"
      CollClass="oracle.sysman.emSDK.core.adfext.bc.EMEntityCache">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Delete|Access|Def"/>
        <AttrArray Name="_publishEvents"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <Attribute
        Name="Name"
        IsNotNull="true"
        Precision="64"
        ColumnName="NAME"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        TableName="EM_CS_CC_HISTORY"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="64"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="Version"
        IsNotNull="true"
        Precision="64"
        ColumnName="VERSION"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        TableName="EM_CS_CC_HISTORY"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="64"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="Description"
        Precision="800"
        ColumnName="DESCRIPTION"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="800"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="OriginSiteId"
        IsNotNull="true"
        Precision="255"
        ColumnName="ORIGIN_SITE_ID"
        SQLType="VARCHAR"
        Type="oracle.jbo.domain.Raw"
        ColumnType="RAW"
        TableName="EM_CS_CC_HISTORY"
        PrimaryKey="true"
        RetrievedOnUpdate="true"
        RetrievedOnInsert="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="64"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="IsPublished"
        Precision="1"
        Scale="0"
        ColumnName="IS_PUBLISHED"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="2"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="IsSystem"
        Precision="1"
        Scale="0"
        ColumnName="IS_SYSTEM"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="2"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="IsLocal"
        Precision="1"
        Scale="0"
        ColumnName="IS_LOCAL"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="2"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="DnameNlsId"
        Precision="64"
        ColumnName="DNAME_NLS_ID"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="64"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="DescriptionNlsid"
        Precision="64"
        ColumnName="DESCRIPTION_NLSID"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="64"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="Owner"
        Precision="256"
        ColumnName="OWNER"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="256"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="XmlSnapshot"
        IsQueriable="false"
        ColumnName="XML_SNAPSHOT"
        SQLType="CLOB"
        Type="oracle.jbo.domain.ClobDomain"
        ColumnType="CLOB"
        TableName="EM_CS_CC_HISTORY"/>
      <Attribute
        Name="XmlSnapshotTs"
        ColumnName="XML_SNAPSHOT_TS"
        SQLType="TIMESTAMP"
        Type="oracle.jbo.domain.Date"
        ColumnType="DATE"
        TableName="EM_CS_CC_HISTORY">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="7"/>
        </DesignTime>
      </Attribute>
      <Key
        Name="EmCsCcHistoryPk"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="EM_CS_CC_HISTORY_PK"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEO.Name"/>
          <Item
            Value="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEO.Version"/>
          <Item
            Value="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEO.OriginSiteId"/>
        </AttrArray>
      </Key>
      <Key
        Name="SysC007949">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="SYS_C007949"/>
          <Attr Name="_checkCondition" Value='"NAME" IS NOT NULL'/>
          <Attr Name="_isCheck" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEO.Name"/>
        </AttrArray>
      </Key>
      <Key
        Name="SysC007950">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="SYS_C007950"/>
          <Attr Name="_checkCondition" Value='"VERSION" IS NOT NULL'/>
          <Attr Name="_isCheck" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEO.Version"/>
        </AttrArray>
      </Key>
    </Entity>My VO on it is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="EmCsCcHistoryVO"
      Version="11.1.1.62.68"
      InheritPersonalization="true"
      BindingStyle="OracleName"
      CustomQuery="true"
      RowClass="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVORowImpl"
      ComponentClass="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVOImpl"
      DefClass="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVODefImpl"
      PageIterMode="Full"
      UseGlueCode="false">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Def|Coll|VarAccess"/>
        <Attr Name="_isCodegen" Value="true"/>
        <Attr Name="_isExpertMode" Value="true"/>
      </DesignTime>
      <Variable
        Name="name"
        Kind="viewcriteria"
        Type="java.lang.String"/>
      <Variable
        Name="originSiteId"
        Kind="viewcriteria"
        Type="oracle.jbo.domain.Raw"/>
      <Variable
        Name="version"
        Kind="viewcriteria"
        Type="java.lang.String"/>
      <ViewAccessor
        Name="PackagePublishedVO1"
        ViewObjectName="oracle.sysman.core.gccompliance.model.library.packages.history.view.PackagePublishedVO"
        RowLevelBinds="true"/>
      <ListBinding
        Name="LOV_IsPublished"
        ListVOName="PackagePublishedVO1"
        ListRangeSize="-1"
        NullValueFlag="start"
        NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="IsPublished"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="IsPublishedUI"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="IsPublishedUI"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
      <SQLQuery>
        <![CDATA[SELECT EmCsCcHistoryEO.NAME,
           EmCsCcHistoryEO.VERSION,
           EmCsCcHistoryEO.DESCRIPTION,
           EmCsCcHistoryEO.ORIGIN_SITE_ID,
           EmCsCcHistoryEO.IS_PUBLISHED,
           EmCsCcHistoryEO.IS_SYSTEM,
           EmCsCcHistoryEO.IS_LOCAL,
           EmCsCcHistoryEO.DNAME_NLS_ID,
           EmCsCcHistoryEO.DESCRIPTION_NLSID,
           EmCsCcHistoryEO.OWNER,
           EmCsCcHistoryEO.XML_SNAPSHOT,
           EmCsCcHistoryEO.XML_SNAPSHOT_TS
    FROM EM_CS_CC_HISTORY EmCsCcHistoryEO
    LEFT OUTER JOIN EM_CS_CC_HISTORY cp
    on (EmCsCcHistoryEO.NAME = cp.NAME and em_compliance_util.normalize_version(EmCsCcHistoryEO.VERSION) < em_compliance_util.normalize_version(cp.VERSION) and EmCsCcHistoryEO.ORIGIN_SITE_ID = cp.ORIGIN_SITE_ID)
    where cp.NAME is null]]>
      </SQLQuery>
      <EntityUsage
        Name="EmCsCcHistoryEO"
        Entity="oracle.sysman.core.gccompliance.model.library.packages.history.entity.EmCsCcHistoryEO"/>
      <ViewAttribute
        Name="NameTransient"
        IsUpdateable="false"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR">
        <TransientExpression><![CDATA[object.Name]]></TransientExpression>
        <Dependencies>
          <Item
            Value="Name"/>
        </Dependencies>
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="COMPLIANCE_PACKAGE"/>
            <DISPLAYWIDTH
              Value="100"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="DescriptionTransient"
        IsUpdateable="false"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR">
        <TransientExpression><![CDATA[object.Description]]></TransientExpression>
        <Dependencies>
          <Item
            Value="Description"/>
        </Dependencies>
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="DESCRIPTION"/>
            <DISPLAYWIDTH
              Value="100"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="Name"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="Name"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="NAME">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="COMPLIANCE_PACKAGE"/>
            <DISPLAYHINT
              Value="Hide"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="Version"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="Version"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="VERSION">
        <Properties>
          <SchemaBasedProperties>
            <DISPLAYWIDTH
              Value="100"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="Description"
        PrecisionRule="true"
        EntityAttrName="Description"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="DESCRIPTION">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="DESCRIPTION"/>
            <DISPLAYHINT
              Value="Hide"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="OriginSiteName"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR">
        <Dependencies>
          <Item
            Value="OriginSiteId"/>
        </Dependencies>
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="ORIGIN_SITE_ID"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="OriginSiteId"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="OriginSiteId"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="ORIGIN_SITE_ID">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="ORIGIN_SITE_ID"/>
            <DISPLAYWIDTH
              Value="100"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="IsPublishedUI"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR"
        DefaultValue="No">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVO.IsPublished_LABEL"/>
            <CONTROLTYPE
              Value="choice"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="IsPublished"
        PrecisionRule="true"
        EntityAttrName="IsPublished"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="IS_PUBLISHED"
        LOVName="LOV_IsPublished">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVO.IsPublished_LABEL"/>
            <CONTROLTYPE
              Value="choice"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="IsSystem"
        PrecisionRule="true"
        EntityAttrName="IsSystem"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="IS_SYSTEM"/>
      <ViewAttribute
        Name="IsLocalUI"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR"
        DefaultValue="No">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="IS_LOCAL"/>
            <DISPLAYWIDTH
              Value="100"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="IsLocal"
        PrecisionRule="true"
        EntityAttrName="IsLocal"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="IS_LOCAL">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVO.IsLocal_LABEL"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="DnameNlsId"
        PrecisionRule="true"
        EntityAttrName="DnameNlsId"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="DNAME_NLS_ID"/>
      <ViewAttribute
        Name="DescriptionNlsid"
        PrecisionRule="true"
        EntityAttrName="DescriptionNlsid"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="DESCRIPTION_NLSID"/>
      <ViewAttribute
        Name="Owner"
        PrecisionRule="true"
        EntityAttrName="Owner"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="OWNER">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="OWNER"/>
            <DISPLAYWIDTH
              Value="100"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="XmlSnapshot"
        IsQueriable="false"
        PrecisionRule="true"
        EntityAttrName="XmlSnapshot"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="XML_SNAPSHOT">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="XML_SNAPSHOT"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>
      <ViewAttribute
        Name="XmlSnapshotTs"
        PrecisionRule="true"
        EntityAttrName="XmlSnapshotTs"
        EntityUsage="EmCsCcHistoryEO"
        AliasName="XML_SNAPSHOT_TS"/>
      <ViewCriteria
        Name="EmCsCcHistoryVOCriteria"
        ViewObjectName="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVO"
        Conjunction="AND"
        Mode="3">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="true"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="vcrow211"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="NameTransient"
            ViewAttribute="NameTransient"
            Operator="CONTAINS"
            Conjunction="AND"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="DescriptionTransient"
            ViewAttribute="DescriptionTransient"
            Operator="CONTAINS"
            Conjunction="AND"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="Version"
            ViewAttribute="Version"
            Operator="CONTAINS"
            Conjunction="AND"
            Required="Optional">
            <Properties>
              <CustomProperties>
                <Property
                  Name="renderedMode"
                  Value="Advanced"/>
              </CustomProperties>
            </Properties>
          </ViewCriteriaItem>
          <ViewCriteriaItem
            Name="IsPublishedUI"
            ViewAttribute="IsPublishedUI"
            Operator="="
            Conjunction="AND"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="IsLocalUI"
            ViewAttribute="IsLocalUI"
            Operator="="
            Conjunction="AND"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="Owner"
            ViewAttribute="Owner"
            Operator="CONTAINS"
            Conjunction="AND"
            Required="Optional">
            <Properties>
              <CustomProperties>
                <Property
                  Name="renderedMode"
                  Value="Advanced"/>
              </CustomProperties>
            </Properties>
          </ViewCriteriaItem>
        </ViewCriteriaRow>
      </ViewCriteria>
      <ViewCriteria
        Name="EmCsCcHistoryVOKeyCriteria"
        ViewObjectName="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVO"
        Conjunction="AND"
        Mode="3">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="false"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="vcrow126"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="Name"
            ViewAttribute="Name"
            Operator="="
            Conjunction="AND"
            Value=":name"
            IsBindVarValue="true"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="Version"
            ViewAttribute="Version"
            Operator="="
            Conjunction="AND"
            Value=":version"
            IsBindVarValue="true"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="OriginSiteId"
            ViewAttribute="OriginSiteId"
            Operator="="
            Conjunction="AND"
            Value=":originSiteId"
            IsBindVarValue="true"
            Required="Optional"/>
        </ViewCriteriaRow>
      </ViewCriteria>
      <ViewCriteria
        Name="EmCsCcHistoryVOAllVersionCriteria"
        ViewObjectName="oracle.sysman.core.gccompliance.model.library.packages.history.view.EmCsCcHistoryVO"
        Conjunction="AND"
        Mode="3">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="false"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="vcrow20"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="Name"
            ViewAttribute="Name"
            Operator="="
            Conjunction="AND"
            Value=":name"
            IsBindVarValue="true"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="OriginSiteId"
            ViewAttribute="OriginSiteId"
            Operator="="
            Conjunction="AND"
            Value=":originSiteId"
            IsBindVarValue="true"
            Required="Optional"/>
        </ViewCriteriaRow>
      </ViewCriteria>
      <LOVUIHints
        ListType="105"
        MRUCount="0"
        ListRangeSize="-1"
        NullValueId="LOVUIHints_NullValueId"
        NullValueFlag="start">
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="IsPublishedUI"/>
          <Item Value="IsLocalUI"/>
        </AttrArray>
        <DisplayCriteria/>
      </LOVUIHints>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="oracle.sysman.core.gccompliance.model.CoreGccomplianceModelMsg"/>
      </ResourceBundle>
    </ViewObject>I am using this is a jspx page to show as a table:
    <af:table value="#{bindings.EmCsCcHistory1.collectionModel}"
                          var="row" rows="#{bindings.EmCsCcHistory1.rangeSize}"
                          emptyText="#{bindings.EmCsCcHistory1.viewable ? coregccomplianceuiBundle.MSG_NO_DATA_DISPLAY : coregccomplianceuiBundle.MSG_ACCESS_DENIED}"
                          fetchSize="#{bindings.EmCsCcHistory1.rangeSize}"
                          rowBandingInterval="0"
                          binding="#{viewScope.packages_libraryBean.ccpTable}"
                          columnStretching="column:c4"
                          styleClass="AFStretchWidth"
                          selectionListener="#{bindings.EmCsCcHistory1.collectionModel.makeCurrent}"
                          disableColumnReordering="true"
                          rowSelection="multiple" id="t1"
                          summary="#{coregccomplianceuiBundle.COMPLIANCE_PACKAGES_TABLE_SUMMARY}"
                          contentDelivery="immediate">
                <af:column id="csel" width="10" rowHeader="true"/>
                <af:column sortProperty="IsSystem" sortable="true"
                             headerText="#{coregccomplianceuiBundle.BLANKTEXT}" id="CS32" rowHeader="unstyled" width="16">
                             <af:switcher id="sw1" facetName="#{row.IsSystem}" defaultFacet="1">
                              <f:facet name="1">
                                 <af:panelGroupLayout id="pg1" layout="horizontal">
                                    <af:image source="/images/lock_ena.png" id="ccpl1"
                                              shortDesc="#{coregccomplianceuiBundle.SYSTEM_DEFINED_COMPLIANCE_STANDARD}"/>
                                  </af:panelGroupLayout>
                                </f:facet>
                                <f:facet name="0">
                                <af:panelGroupLayout id="pg1-1" layout="horizontal">
                                <af:image source="/images/unlock_ena.png" id="ccpl2"
                                              shortDesc="#{coregccomplianceuiBundle.USER_DEFINED_COMPLIANCE_STANDARD}"/>
                                  </af:panelGroupLayout>
                                </f:facet>
                             </af:switcher>
                  </af:column>
                  <af:column sortProperty="NameTransient" sortable="true"
                             headerText="#{bindings.EmCsCcHistory1.hints.NameTransient.label}"
                             id="c1" width="200" rowHeader="unstyled"
                             noWrap="false">
                    <af:outputText value="#{row.NameTransient}" id="ot4"/>
                  </af:column>
                  <af:column sortProperty="Version" sortable="true"
                             headerText="#{bindings.EmCsCcHistory1.hints.Version.label}"
                             id="c6">
                    <af:outputText value="#{row.Version}" id="ot5"/>
                  </af:column>
                  <af:column sortProperty="DescriptionTransient" sortable="true"
                             headerText="#{bindings.EmCsCcHistory1.hints.DescriptionTransient.label}"
                             id="c4">
                    <af:outputText value="#{row.DescriptionTransient}" id="ot2"/>
                  </af:column>
                  <af:column sortProperty="IsPublishedUI" sortable="true"
                             headerText="#{bindings.EmCsCcHistory1.hints.IsPublishedUI.label}"
                             id="c3">
                    <af:outputText value="#{row.IsPublishedUI}" id="ot12"/>
                  </af:column>
                  <af:column sortProperty="IsLocalUI" sortable="true"
                             headerText="#{bindings.EmCsCcHistory1.hints.IsLocalUI.label}"
                             id="c2">
                    <af:outputText value="#{row.IsLocalUI}" id="ot14"/>
                  </af:column>
                  <af:column sortProperty="OriginSiteName" sortable="true"
                             headerText="#{bindings.EmCsCcHistory1.hints.OriginSiteName.label}"
                             id="c76">
                    <af:outputText value="#{row.OriginSiteName}" id="ot26"/>
                  </af:column>
                </af:table>On the jspx table the rows are displayed correct.
    After i select a row i want to see the details (which opens up another task-flow) , the details for action are:
    <af:group id="CCP24">
                  <af:commandToolbarButton id="CCP25"
                                           partialSubmit="true"
                                           partialTriggers="t1"
                                           text="#{coregccomplianceuiBundle.MENU_SHOW_DETAILS}"
                                           shortDesc="#{coregccomplianceuiBundle.MENU_SHOW_DETAILS}"
                                           icon="/images/view_ena.png"
                                           disabled="#{viewScope.packages_libraryBean.packageDetailsDisabled}"
                                           action="#{viewScope.packages_libraryBean.handleShowDetails}"
                                           useWindow="true" windowHeight="700"
                                           windowWidth="900"
                                           disabledIcon="/images/view_dis.png"/>
        </af:group>But when i am clicking on the show details button , nothing is happening.
    In the diagnostic logs i can see a warning:
    [2013-02-28T03:03:09.579-08:00] [EMGC_OMS1] [WARNING] [] [*oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding*] [tid: [ACTIVE].ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: SYSMAN] [ecid: 004pgRM19yp7e5B5JZ_Aif00041z0000_F,0:1] [APP: emgc] [URI: /em/faces/core-gccompliance-complianceLibrary] ADFv: No row found for rowKey: [oracle.jbo.Key[LINUX5_PACKAGES 12.1.0.0.0 00000000000000000000000000000000 ]].
    Can somebody please point out to what am i missing?
    Edited by: Tripuresh on Feb 28, 2013 4:45 PM

    Hi Frank,
    Thanks for the response.
    Yes this is a valid key for my row as i fetched the key for selected row in the table during debugging.
    Also when show details is called using:
    <af:group id="CCP24">
                  <af:commandToolbarButton id="CCP25"
                                           partialSubmit="true"
                                           partialTriggers="t1"
                                           text="#{coregccomplianceuiBundle.MENU_SHOW_DETAILS}"
                                           shortDesc="#{coregccomplianceuiBundle.MENU_SHOW_DETAILS}"
                                           icon="/images/view_ena.png"
                                           disabled="#{viewScope.packages_libraryBean.packageDetailsDisabled}"
                                           *action="#{viewScope.packages_libraryBean.handleShowDetails}"*
                                           useWindow="true" windowHeight="700"
                                           windowWidth="900"
                                           disabledIcon="/images/view_dis.png"/>
        </af:group>The control of debugger is not even going to the action="#{viewScope.packages_libraryBean.handleShowDetails}" method-call.
    Edited by: Tripuresh on Feb 28, 2013 11:53 PM

  • Not able to send Email in SOA Suite 12c,getting No matching driver found for delivery type = EMAIL

    Hi All,
    I am getting following Errror whlie Sending Testing Mail from Human Workflow .
    No matching driver found for delivery type = EMAIL
    I followed all the steps mentioned in blogs.
    Steps that I followed--
    1,Downloaded Gmail and Imap Certificate.
    2.Imported in Keystore
    3.Create a Email driver properties.
    Than

    Did you resolve this? I am running into the same problem. Not sure if it a configuration issue or an issue with 12c (go figure). I have tried both a blank sender address list and explicitly putting the target address in. Notification mode is set to email. I am using the Notification Test under Human Workflow/Notification Managent. Where else could it be trying to match the driver to EMAIL?
    exception.type: ERROR
    exception.severity: 2
    exception.name: Error status received from UMS.
    exception.description: Status detail :
      Status type : DELIVERY_TO_DRIVER:FAILURE,
      Status Content : No matching driver found for delivery type = EMAIL,
      Addressed to : EMAIL:[email protected],
      UMS Driver : null,
      UMS Message Id : dcb01e3ec0a8456856fe8a439e6ecf3f,
      Gateway message Id : null,
      Status Received at : Mon Jan 12 00:49:27 EST 2015.
    exception.fix: Check status details and fix the underlying reason, which caused error.
    >

  • ThinkVantage System Update - "There are no applicable packages found for your system"

    QuestionWhen running TVSU, I am getting a system notification of "There are no applicable packages found for your system"
    AnswerThis issue has occured at various times, and may more commonly occur when TVSU updates itself.  At the time this article was originally written, the symptom was noted by some customers after updating from version 4.01.0010.
    After updating System Update, if no packages are found for your system, please try the following to uninstall and manually reinstall the current version of system update.
    Click Start
    Click Control Panel
    Click Programs and Features
    Select System Update
    Click Uninstall
    Reboot
    Download latest version of ThinkVantage System Update
    Install it and reboot
    Run ThinkVantage System Update and the list of updated drives will now populate correctly.

    There are a few comments here that have come in over 3 years...
    1) Please update to the latest version of TVSU appropriate for your version of operating system.  TVSU should update itself, but please check the reported version when TVSU starts up against the most recent version available to download on support.lenovo.com.  Uninstall, download the newer version, and re-install if it does not auto update and you have confirmed a newer version.
    2) From time to time, there are issues with the TVSU catalog and updates may not be reported as available for a specific system.  Lenovo software teams do their best to ensure the update catalog is current for all supported models, but in the event that you find no updates for your system and believe this is in error, please manually check several of the principle driver versions in device manager and compare with the versions available for manual download on the support site for your model.  If later versions of drivers and BIOS are available on the support site, but not made available through TVSU, then use this feedback link to notify the e-support team so they may investigate.
    http://support.lenovo.com/us/en/websitefeedback
    3) If you have recently changed the system board in your system, or service has changed the board, and TVSU can no longer find updates, or reports an error detecting your system, please reboot and press F1 to enter BIOS.  (Note, you may need to shut and restart to enter BIOS).  In BIOS, check that the system model type and serial number are correctly displayed.  These should match the type and serial numbers on the sticker on the bottom of your system.  TVSU identifies correct updates by checking these values in BIOS.   When a system board is replaced, there is a service proceedure to update the type and serial number values in BIOS to match that of the new system.  If these are shown as blank, this was not performed, and is the reason TVSU is not detecting updates.  Please contact Lenovo service if this is the case.

  • Formatted search to update Batch attribute to match row project code

    We have extented project codes to the batch level by creading a UDF OIBT.U_ProjectCode.
    Is it possible to create a formatted search in the "Batch Setup " window to update this UDF with the project code from the corresponding row of the purchase order? Keep in mind not all rows on the purchase order may be tracked by batches.

    Hi,
    Formatted search can only get value from database or current form. There is no access to other open forms.
    Thanks,
    Gordon

  • There was an error while updating row count for "SH".."SH".CHANNELS

    Hi All,
    Am new to OBIEE.Pls help in this regard.
    Am building the physical layer as per Repository guide.When am importing the data in to this,am getting the below error.
    *"There was an error while updating row count for "SH".."SH".CHANNELS" :"*
    channles is the table name and having 5 rows.
    but am able to see the data in the sql prompt. like SELECT * FROM SH.CHANNELS then 5 rows data would be displaying..
    pls help in this regard and where is the excat problem?
    Thanks,

    what is the error?
    Make sure that your connection pool settings are okay..
    Make sure that, you are using correct driver in case of if you are using ODBC dsn..
    Also make sure that, your oracle server is running... TNS and Oracle server services

  • How to get row count(*) for each table that matches a pattern

    I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.
    Currently a single column is returned: tablename. I want to add the column RowCount.
    DECLARE @SQLCommand nvarchar(4000)
    DECLARE @TableName varchar(128)
    SET @TableName = 'ods_TTstat_master' --<<<<<< change this to a table name
    SET @SQLCommand = 'SELECT [name] as zhistTables FROM dbo.sysobjects WHERE name like ''%' + @TableName + '%'' and objectproperty(id,N''IsUserTable'')=1 ORDER BY name DESC'
    EXEC sp_executesql @SQLCommand

    The like operator requires a string operand.
    http://msdn.microsoft.com/en-us/library/ms179859.aspx
    Example:
    DECLARE @Like varchar(50) = '%frame%';
    SELECT * FROM Production.Product WHERE Name like @Like;
    -- (79 row(s) affected)
    For variable use, apply dynamic SQL:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Rows count all tables:
    http://www.sqlusa.com/bestpractices2005/alltablesrowcount/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Peculiar behavior in Studio Creator 2 update on hp  amd 64  bit

    I'm a newbie, the Studio Creator program is incredible!
    using the awesome Studio Creator 2 update, with the "Most Excellent"
    tutorial: "CreatorFieldGuide", page 354, to perform the "step 3",
    you must type in the class and hit the Save all button on the toolbar to assign the style , if you hit enter -or - tab you will loose your typed in class -(it will dissappear) ,
    also in the properties window ; styleClass's pop-up
    is blank , seemingly not connected to the style sheet.
    also , the pallets work fine ,but quirky, placing the mouse
    over a pallet will cause it to open/close or go from the right side
    of the screen to the left side of the screen, but they work to date except
    for this one quirk.
    using hp pavilion model a1268c
    amd 64 bit processor dual core
    windows xp media version 2005
    some day I'm going to try a solaris os
    Thank you,
    Douglas1

    I'm a newbie, the Studio Creator program is incredible!
    using the awesome Studio Creator 2 update, with the "Most Excellent"
    tutorial: "CreatorFieldGuide", page 354, to perform the "step 3",
    you must type in the class and hit the Save all button on the toolbar to assign the style , if you hit enter -or - tab you will loose your typed in class -(it will dissappear) ,
    also in the properties window ; styleClass's pop-up
    is blank , seemingly not connected to the style sheet.
    also , the pallets work fine ,but quirky, placing the mouse
    over a pallet will cause it to open/close or go from the right side
    of the screen to the left side of the screen, but they work to date except
    for this one quirk.
    using hp pavilion model a1268c
    amd 64 bit processor dual core
    windows xp media version 2005
    some day I'm going to try a solaris os
    Thank you,
    Douglas1

  • Select count(*) on sql statement returning zero when a matching row exists.

    Our account has an ANSI C application that checks for the existence a row on an Oracle table(s) by using the following SQL:
    int iCount = 0;
    EXEC SQL
    SELECT count(rownum) INTO :iCount
    FROM sys.all_tab_columns
    WHERE table_name IN
    (SELECT table_name FROM
    sys.all_synonyms
    WHERE upper(synonym_name) = upper(:szDestTable))
    AND upper(column_name) = upper(:szColumnName)
    AND owner = 'DBAUSER';
    The bind variables szDestTable and szColumnName are populated with values parsed from columns on another database table. This application is executed through out the day. Occasionally, the application will report a zero in the iCount when there should be a match. I have verified the szDestTable and szColumnName are populated with the correct values which would find a match and they are correct. To make matters even stranger, the application will parse the same input values and find a match (as it should). At some point during the day, and it can be at any time, the application will NOT find a match on the same file, same values. Every subsequent execution of this application will not find a match on the same values. Once the database is brought down and started up in the evening for its normal backups, the application will find a match again on the same values. This problem does not occur every day. I could be a week or a week and a half between incidents.
    I printed the contents of the sqlca.sqqlerrm.sqlerrmc field to a log file. The sqlca.sqlerrm.sqlerrmc field reported an ORA-1405 bind variable was null when the iCount was reporting a zero. When I compiled this application, I set the Proc*C flag to UNSAFE_NULLS=yes since there are other bind variable in the application that can be NULL and that is ok.
    The above SQL is compiled into the C application using the Proc*C compiler. It is compiled using the Oracle 11.2.0.2 libraries. The application is executed against an Oracle 11.2.0.2 database. The database and application are executed on an HP/Unix 11.31 platform.
    This problem did not start occurring until our account went from Oracle 10.2 to Oracle 11.2. Recently, I have changed the SQL to perform a “SELECT COUNT(rownum)” instead of the “SELECT COUNT(*)”. I compiled the application and executed the new application with the SELECT COUNT(rownum) against the same database where the same application with the SELECT COUNT(*) was failing to find a row that actually existed. The application with the SELECT COUNT(rownum) found the matching row as it should have. The new application has been executing in production for about 10 days now without any problems against ten various Oracle 11.2 databases.
    Why would SELECT COUNT(*) and SELECT COUNT(rownum) be any different?

    This forum is about C programming in general, and about using Studio C in particular.
    Your question is about Oracle database programming. You are more likely to find a helpful answer in a forum about database programming. Start here:
    https://forums.oracle.com/forums/category.jspa?categoryID=18

  • How to select a random row with for update?

    Hi,
    I have a package that needs to assign a random, reusable number (ID) that is not currently being used - to a procedure.
    I'm trying to simulate a pool of numbers (IDs) using a table that has an ID and IS_USED columns.
    How do I do:
    select a random ID (random row)
    from pool_table
    where IS_USED is 0 (not taken)
    FOR UPDATEThe for update is to lock the row from being taken by another process calling the package.
    OR:
    Can I simulate a pool of numbers with a different object (not a table)?
    I need the numbers to be coherent between sessions (thus package variables will not work) and only one session uses the same ID at any given time. When it finishes the number becomes available for further runs.
    Thanks.
    Edited by: Pyrocks on Nov 7, 2010 10:45 AM

    This works on Oracle 11g (probably on 10g too, but I haven't tested):
    CREATE OR REPLACE PACKAGE REUSABLE_RANDOM_NUMBERS
    IS
      FUNCTION GET_NUMBER RETURN NUMBER;
    END REUSABLE_RANDOM_NUMBERS;
    create or replace
    PACKAGE BODY REUSABLE_RANDOM_NUMBERS
    IS
      TYPE NUM_TABLE_TYPE IS TABLE OF CHAR INDEX BY PLS_INTEGER;
      MIN_VALUE CONSTANT PLS_INTEGER := 0;
      max_value CONSTANT PLS_INTEGER := 10;
      NUM_TABLE NUM_TABLE_TYPE;
      FUNCTION GET_NUMBER RETURN NUMBER
      IS
        num PLS_INTEGER;
      BEGIN
        FOR I IN 1 .. 100 LOOP
           NUM := DBMS_RANDOM.VALUE( min_value, max_value );
           IF NOT NUM_TABLE.EXISTS( NUM ) THEN
              NUM_TABLE( NUM ) := 'X';
              RETURN NUM;
           END IF;
        END LOOP;
        FOR I IN MIN_VALUE .. MAX_VALUE LOOP
          IF NOT NUM_TABLE.EXISTS( i ) THEN
              NUM_TABLE( i ) := 'X';
              RETURN i;
           END IF;
        END LOOP;
        RAISE_APPLICATION_ERROR( -20991, 'All possible values have ben used, cannot assign a new one' );
      END;
    END REUSABLE_RANDOM_NUMBERS;
    SELECT REUSABLE_RANDOM_NUMBERS.GET_NUMBER
    FROM DUAL
    connect by level <= 11;
    GET_NUMBER            
    3                     
    4                     
    6                     
    2                     
    1                     
    7                     
    8                     
    0                     
    9                     
    5                     
    10                    
    11 rows selected
    SELECT REUSABLE_RANDOM_NUMBERS.GET_NUMBER
    FROM DUAL;
    Error starting at line 44 in command:
    SELECT REUSABLE_RANDOM_NUMBERS.GET_NUMBER
    FROM DUAL
    Error report:
    SQL Error: ORA-20991: All possible values have ben used, cannot assign a new one
    ORA-06512: przy "TEST.REUSABLE_RANDOM_NUMBERS", linia 26

  • How to get only matching rows in Full Outer Join

    HI All,
    I was recently asked this question.
    How to fetch only matching data from two tables using Full Outer Join. Now, I understand that this is not the objective of using Full Joins but I was wondering whether this is possible or not.
    Any help in this regard will be highly appreciated.

    Full outer join returns both matching and not matching rows, if you want only matching rows why you don't use INNER JOIN?
    The following query does an INNER JOIN using a FULL JOIN which I think it doesn't make any sense.
    SELECT *
    FROM
    A FULL OUTER JOIN B
    ON A.ColumnName = B.ColumnName
    WHERE
    A.ColumnName IS NOT NULL
    AND B.ColumnName IS NOT NULL
    EntityLite: A Lightweight, Database First, Micro ORM

  • Generate non matching rows without outerjoin

    Oracle Database 11g
    I have a query
    select B.YEAR_NUMBER ,SUM(NVL(TOTAL_COUNT,0))
    from ODS_PERMIT_MV a, DATE_DIM b
    where a.PERMIT_ISSUE_DATE_KEY = b.DATE_KEY
    and B.CALENDAR_DATE<=trunc(sysdate)
    group by B.YEAR_NUMBER
    which gives me records in this form
    YEAR| COUNT
    2011     328
    2012     684
    However I want result set like
    YEAR| COUNT
    2009 0
    2010 0
    2011     328
    2012     684
    I can get this result with an outer join
    select B.YEAR_NUMBER ,SUM(NVL(TOTAL_COUNT,0))
    from ODS_PERMIT_MV a, DATE_DIM b
    where a.PERMIT_ISSUE_DATE_KEY *(+)* = b.DATE_KEY
    and B.CALENDAR_DATE<=trunc(sysdate)
    group by B.YEAR_NUMBER
    but this again is not acceptable.
    Another solution was this
    select YEAR_NUMBER,SUM(TOTAL_COUNT) from
    select B.YEAR_NUMBER as "YEAR_NUMBER" ,SUM(NVL(TOTAL_COUNT,0)) as "TOTAL_COUNT"
    from ODS_PERMIT_MV a, DATE_DIM b
    where a.PERMIT_ISSUE_DATE_KEY = b.DATE_KEY
    and B.CALENDAR_DATE<=trunc(sysdate)
    group by B.YEAR_NUMBER
    union
    select to_number(to_char(add_months(sysdate,(level-1)*-12),'YYYY')),0
    from dual
    connect by level <=5
    group by YEAR_NUMBER
    order by YEAR_NUMBER desc
    Still complex, but is there any other way to achieve this?
    Regards,
    Franklin
    Edited by: user486459 on Dec 20, 2012 7:59 AM

    Hi,
    >
    <<outer-join-query>>
    but this again is not acceptable.
    >
    Why? Could you please explain this further. I think it's a simple(/the simplest) way to get your result.
    I tried a few other ways, but nothing looks as nice as an outer join. Brief and easy to understand.
    -- I tried to break this down to only two columns
    -- because you provided no scripts; hopefully I didn't
    -- miss anything
    -- this is probably a materialized view in your situation
    Create Table Ods_Permit_Mv (
       Year_Number    Number(4)
       ,total_count   number
    truncate table Ods_Permit_Mv;
    -- test-data
    Insert Into Ods_Permit_Mv Values (2011,200);
    Insert Into Ods_Permit_Mv Values (2011,138);
    Insert Into Ods_Permit_Mv Values (2012,100);
    Insert Into Ods_Permit_Mv Values (2012,200);
    Insert Into Ods_Permit_Mv Values (2012,300);
    Insert Into Ods_Permit_Mv Values (2012,84);
    commit;
    Create Table Date_Dim(
       Year_Number    Number(4) Primary Key
    Insert Into Date_Dim Values(2009);
    Insert Into Date_Dim Values(2010);
    Insert Into Date_Dim Values(2011);
    Insert Into Date_Dim Values(2012);
    Commit;
    -- this is your solution for matching rows only
    select B.YEAR_NUMBER ,SUM(NVL(TOTAL_COUNT,0))
    From Ods_Permit_Mv A, Date_Dim B
    Where A.Year_Number = B.Year_Number
    And B.Year_Number<=extract(year from Sysdate)
    group by B.YEAR_NUMBER;
    -- is this version really better than an outer-join??? or more understandable???
    Select   B.Year_Number
             ,(Select sum(  Case
                            When Year_Number = B.Year_Number
                            then
                               Sum(Nvl(Total_Count,0))
                            Else
                               0
                            end)
             From Ods_Permit_Mv A
             group by year_number) as total_count
    From Date_Dim B
    where B.Year_Number <= extract(year from Sysdate);
    -- or this??? (union-all-idea taken from Keith Jamieson)
    With help as(
       select B.YEAR_NUMBER year_number, SUM(NVL(TOTAL_COUNT,0)) total_count
       From Ods_Permit_Mv b
       group by B.YEAR_NUMBER
       Union All
       Select  Year_Number Year_Number,  0 Total_Count
       From Date_Dim)   --end with-clause
    Select Help.Year_Number, Sum(Help.Total_Count) total_count
    From Help
    Where Year_Number <=Extract(Year From Sysdate)
    group by help.year_number;
    -- why don't you like the idea of an outer join?
    Select Dim.Year_Number, Sum(Nvl(Fact.Total_Count,0)) Total_Count
    From  Date_Dim Dim
          Left Outer Join
          Ods_Permit_Mv Fact
             On (Dim.Year_Number = Fact.Year_Number)
    group by Dim.Year_Number;At the end of one post you wrote
    >
    Still complex, but is there any other way to achieve this?
    >
    Yes there are, obviously. But why ...
    Bye
    stratmo
    PS: For you further postings please take a look at
    Formatting options: [url https://wikis.oracle.com/display/Forums/Forums+FAQ]Forums FAQ the formatting options can be found searching for "formatting options" in the current window (they are mentioned further down that page) (reading the whole FAQ is very helpful; probably you my read it afterwards)
    and
    [url https://forums.oracle.com/forums/ann.jspa?annID=719]Announcement: Forums Etiquette / Reward Points please because this makes helping easier for the very good ones on this forum. Obviously not me :(

  • Fail to Abend when Row Not Found for Update?

    I'm using Coldfusion 9 against a IBM mainframe DB2 database.  I have a condition that when a row is not found for update in a cfquery, execute an insert cfquery.  Sounds logical and easy, right?  Not so!  Error trapping is failing to return an error condition when the row was not found for update! 
    Here's the code:
    <cftry>
         <cfinclude template="qry_update_table.cfm">
         <cfcatch type="any">
              <cfinclude template="dsp_errorInformation.cfm">
              <cfabort>
         </cfcatch>
    </cftry>
    <cfdump var=#tmec04_result#><cfabort>
    The Query code is:
    <cflock timeout="15" name="UpdateTUID04Lock" type="exclusive">
         <cfquery datasource="#APPLICATION.DB2_DSN#" name="update_tuid04" result="tmec04_result">
              UPDATE #APPLICATION.SQLID#.TUID04
                   SET   MON_BEG_TIME  = <cfqueryparam value = #NEW_MON_BEG# cfsqltype="cf_sql_time">
                          , MON_END_TIME  = <cfqueryparam value = #NEW_MON_END# cfsqltype="cf_sql_time">
              WHERE  USER_ID    = <cfqueryparam value = #NEW_USER_ID# cfsqltype="cf_sql_varchar">
         </cfquery>
    </cflock>
    There is no row for the NEW_USER_ID, so I would expect an error condition.  No such luck.  The dump of temc04_result just shows me the SQL, the record count (0), the execution time (0), and the cached status (false).  No SQL code.  And a dump of CFCATCH shows that all is well.  I expected to get cfcatch.nativeerrorcode = 100 (Row not found).  Nope.  Got a zero.
    Any suggestions.

    Regarding this:
    There is no row for the NEW_USER_ID, so I would expect an error condition.
    Your expectation is incorrect.  What actually happens is that the query executes and no rows get updated.
    What has to happen is that you have to see whether or not the record is there, and if not, insert it.  There are lot's of ways to do that.  I think the simplest is an insert query,
    insert into yourtable
    (field1, field2, etc)
    select distinct value1, value2, etc
    from some small table
    where not exists (something)
    Followed by the update query.

  • Sales Order - Rows - Warehouse][line 2],'No matching records found 'G/L Acc

    Dear Expert,
    I got an error while i got approval from super user...
    Sale order Draft[Approval]
    item/services=Services
    Sales Order - Rows - Warehouse][line 2],'No matching records found 'G/L Account' (OACT)(ODBC-2028)[msg 131-183]"
    Please Mention me all step

    Hi Kevin,
      In Sales Order document, second Row of the Item section click the
    warehouse code it opens the Warehouse default Setup window
    click accounting Tab check the Account are defined ex Sales Revenue, Inventory A/c etc..
    Regards
    Jambulingam.P

  • Error -2028 Update No matching records found (ODBC -2028)

    An apology for my English, I'm trying to update a field but I get this error:
    No matching records found (ODBC -2028)
    This is part of the code that I use to add new ones and works fine, when I change the oItems.Add (); by oItems.Update () does not work.
    public static void addItem(DataRow itemObject)
       oItems = (SAPbobsCOM.Items)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems));
       oItems.ItemCode = itemObject["ItemCode"].ToString();
       oItems.ItemName = itemObject["ItemName"].ToString();
       lRetCode = oItems.Add();
       if (lRetCode != 0)
          oCompany.GetLastError(out lErrCode, out sErrMsg);
    I get the data from MySql, and I tried putting the data manually from an existing record and does not work
    Any ideas why?

    Hi,
    Before you can call Update on an item you need to call the GetByKey method to retrieve the item you want to update:
    public static void updateItem(DataRow itemObject)
       oItems = (SAPbobsCOM.Items)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems));
       if(oItems.GetByKey(itemObject["ItemCode"].ToString())
            oItems.ItemName = itemObject["ItemName"].ToString();
            lRetCode = oItems.Update();
            if (lRetCode != 0)
                    oCompany.GetLastError(out lErrCode, out sErrMsg);
    Kind Regards,
    Owen

Maybe you are looking for