CHILD form error FRM-30100: Block must have at least one primary key item.

Hi friends,
I have increased the DML array of the child block from 1 to 10, but it throws me error:
FRM-30100: Block must have at least one primary key item.
Block: CEC_ADJUSTMENT_RECON
Form: CEC_ADJ
FRM-30085: Unable to adjust form for output.
How does a form know that the table does not have primary key? Is it referring to it?
Thanks a lot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I dont understand why do you increase the DML array size..
Because it says in the HELP
Specifies the maximum array size for inserting, updating, and deleting records in the database at one time.
A larger size reduces transaction processing time by reducing network traffic to the database, but requires more memory.  The optimal size is the number of records a user modifies in one transaction.
The FRM-30100 comes not because of the above property..
If your query data source type is other than TABLE, it is a must to set at least one database field's PRIMARY KEY ITEM PROPERTY in the block to be a YES.

Similar Messages

  • FRM-30100: Block must have at least one primary key item.

    Hi,
    I am customizing a form in 6i. I added one database column to one block using data block wizard. Form Compiled successfully. But when I compile the form in Unix, it compiled the form and created the .fmx file but gave the below error.
    FRM-30100: Block must have at least one primary key item. Can you please help me what needs to be done to fix this.
    Thanks,
    HC

    Please see if these docs help.
    Troubleshooting: FRM-30085 [ID 783768.1]
    Basing a Block on a Stored Procedure - Sample Code [ID 66887.1]
    Thanks,
    Hussein

  • TBridge must have at least one redirect command error!

    Hi there,
    Possibly this is a very dork question!, sorry I can't find the trick.
    We are connecting Tux8.0 and WLS7.0sp1 through WTC. and the following error is
    showed when trying to deployed WTCServer component. in the log file attached is
    showed that connecction is successfully established and the problem comes with
    Tbride.
    Any suggestions really very welcomed!
    Config info:
    <WTCServer Name="WTCServer" Targets="cfeserver">
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044988984998"
    RemoteAccessPointList="S74DEMO" RemoteName="QUERYSAP"
    ResourceName="QUERYSAP"/>
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044989017524"
    RemoteAccessPointList="S74DEMO"
    RemoteName="QUERYSICOM" ResourceName="QUERYSICOM"/>
    <WTCLocalTuxDom AccessPoint="BEA2" AccessPointId="BEA2"
    ConnectionPolicy="ON_STARTUP"
    NWAddr="//16.179.26.99:6550"
    Name="WTCLocalTuxDom-1044988580045"/>
    <WTCRemoteTuxDom AccessPoint="S74DEMO"
    AccessPointId="S74DEMO"
    ConnectionPolicy="ON_STARTUP" LocalAccessPoint="BEA2"
    NWAddr="//16.179.20.132:6540"
    Name="WTCRemoteTuxDom-1044988657236"/>
    <WTCResources FldTbl32Classes="fmls.cfemsgflds"
    Name="WTCResources-1044989048309"/>
    <WTCtBridgeGlobal
    JmsFactory="weblogic.jms.ConnectionFactory"
    JndiFactory="weblogic.jndi.WLInitialContextFactory"
    Name="WTCtBridgeGlobal-1044989083549"
    Transactional="NO"
    TuxFactory="tuxedo.services.TuxedoConnection"
    WlsErrorDestination="weblogic.jms.errorqueue">
    <WTCtBridgeRedirect Direction="JmsQ2TuxS"
    Name="WTCtBridgeRedirect-1044989289125"
    ReplyQ="weblogic.jms.replyq"
    SourceAccessPoint="BEA2"
    SourceName="weblogic.jms.ConsultaPedido"
    TargetAccessPoint="S74DEMO"
    TargetName="QUERYSAP" TranslateFML="FLAT"/>
    </WTCtBridgeGlobal>
    </WTCServer>
    Error:
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000365> <Server state
    changed to RUNNING>
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000360> <Server started
    in RUNNING mode>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180047> <tBridge must have at least
    one redirect command>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180115> <tBridge cannot parse the
    configuration MBeans: Failure: no tbridge redirect info defined>
    [wtcdebug.txt]

    Mauricio,
    I think this is an old console error in creating this mbean. The
    WTCtBridgeRedirect
    is mistakenly defined under the scope of the WTCtBridgeGlobal mbean
    where it should be at the same level(ie a child of the WTCServer mbean).
    The WTCService expects to find it as a child of the WTCServer mbean and
    throws the exeption when it doesn't see it.
    I think the fix is to edit the config.xml and move the termination for
    WTCtBridgeGlobal("</WTCtBridgeGlobal>") to before the declaration
    of the WTCtBridgeRedirect.
    Bob Finan
    Mauricio Del Moral wrote:
    Config info:
    WTCServer Name="WTCServer" Targets="cfeserver">
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044988984998"
    RemoteAccessPointList="S74DEMO" RemoteName="QUERYSAP"
    ResourceName="QUERYSAP"/>
    <WTCImport LocalAccessPoint="BEA2"
    Name="WTCImport-1044989017524"
    RemoteAccessPointList="S74DEMO"
    RemoteName="QUERYSICOM" ResourceName="QUERYSICOM"/>
    <WTCLocalTuxDom AccessPoint="BEA2" AccessPointId="BEA2"
    ConnectionPolicy="ON_STARTUP"
    NWAddr="//16.179.26.99:6550"
    Name="WTCLocalTuxDom-1044988580045"/>
    <WTCRemoteTuxDom AccessPoint="S74DEMO"
    AccessPointId="S74DEMO"
    ConnectionPolicy="ON_STARTUP" LocalAccessPoint="BEA2"
    NWAddr="//16.179.20.132:6540"
    Name="WTCRemoteTuxDom-1044988657236"/>
    <WTCResources FldTbl32Classes="fmls.cfemsgflds"
    Name="WTCResources-1044989048309"/>
    <WTCtBridgeGlobal
    JmsFactory="weblogic.jms.ConnectionFactory"
    JndiFactory="weblogic.jndi.WLInitialContextFactory"
    Name="WTCtBridgeGlobal-1044989083549"
    Transactional="NO"
    TuxFactory="tuxedo.services.TuxedoConnection"
    WlsErrorDestination="weblogic.jms.errorqueue">
    <WTCtBridgeRedirect Direction="JmsQ2TuxS"
    Name="WTCtBridgeRedirect-1044989289125"
    ReplyQ="weblogic.jms.replyq"
    SourceAccessPoint="BEA2"
    SourceName="weblogic.jms.ConsultaPedido"
    TargetAccessPoint="S74DEMO"
    TargetName="QUERYSAP" TranslateFML="FLAT"/>
    </WTCtBridgeGlobal>
    </WTCServer>
    Error:
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000365> <Server>state
    changed to RUNNING>
    <Feb 11, 2003 12:31:11 PM CST> <Notice> <WebLogicServer> <000360> <Server>startedin
    RUNNING mode>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180047> <tBridge must have at least
    one redirect command>
    <Feb 11, 2003 12:50:41 PM CST> <Error> <WTC> <180115> <tBridge cannot parse the
    configuration MBeans: Failure: no tbridge redirect info defined>
    [att1.html]

  • Erro in bursting ZIP file must have at least one entry

    Hi All ,
    i am using bursting utility for xmlp report ,but getting the following error
    --Exception
    ZIP file must have at least one entry
    java.util.zip.ZipException: ZIP file must have at least one entry
         at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:534)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    i have no clue y this error is coming ,any hint would be very helpful,
    Thanks in advance
    thanks
    Pratap

    Hi All
    i got resolved this error (Erro in bursting ZIP file must have at least one entry) ,was doing very silly mistake i was using the template name instead of Data Definition code name in location string
    location= ' '
    so the ZIP file error is removed ,now getting one more error after this ,which i am not able to under stand
    --Exception
    /tmp/011211_023243126/xdo1_164902_2.pdf (No such file or directory)
    java.io.FileNotFoundException: /tmp/011211_023243126/xdo1_164902_2.pdf (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:532)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:299)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Please help me on this
    Thanks
    Pratap

  • Bursting Error : ZIP file must have at least one entry

    Hai All,
    I am trying to Burst report in 11.5.10.2 instance. When tried bursting it the it got the following error.
    XML Publisher: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XDOBURSTREP module: XML Publisher Report Bursting Program
    Current system time is 04-JUN-2009 12:40:16
    XML/BI Publisher Version : 5.6.3
    Request ID: 387463
    All Parameters: ReportRequestID=387460:DebugFlag=Y
    Report Req ID: 387460
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:ERP
    Preparing parameters
    null output =/d02/appluat/uatcomn/admin/out/UAT_erp/o387463.out
    inputfilename =/d02/appluat/uatcomn/admin/out/UAT_erp/o387460.out
    Data XML File:/d02/appluat/uatcomn/admin/out/UAT_erp/o387460.out
    Set Bursting parameters..
    Temp. Directory:/tmp
    [060409_124018651][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
    [060409_124018653][][STATEMENT] setOAProperties called..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=387460, user-variable:cp:language=en, user-variable:cp:responsibility=50352, user-variable.OA_MEDIA=http://erp.adgs.ae:8030/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=387460, user-variable:cp:locale=en-US, user-variable:cp:user=GVU, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=387463, user-variable:cp:org_id=103, user-variable:cp:reportdescription=Pension Fund}
    Start bursting process..
    Bursting process complete..
    Generating Bursting Status Report..
    --Exception
    ZIP file must have at least one entry
    java.util.zip.ZipException: ZIP file must have at least one entry
         at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:292)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:534)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Can anyone please help me on this..
    Regards

    Pl help me is there any way to overcome this error, when supplier email address is present then , bursting file works fine, if supplier address is null , then it is giving me error , please find the error also.........
    Bursting XML File ...........
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXDBD_POPRPOP_SA/LIST_G_INIT_INFO/G_INIT_INFO/LIST_G_HEADERS/G_HEADERS">
    <xapi:delivery>
    <xapi:email server="mailgate.XXX.com" port="25" from="[email protected]">
    <xapi:message id="emailpo" to="${CP_VENDOR_EMAIL}" cc="[email protected],[email protected]" attachment="true"
    subject="Purchase Order No: ${POH_PO_NUM}">
    Please find attached PO ${POH_PO_NUM}.
    Regards,
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="Purchase Order ${POH_PO_NUM}" output-type="pdf" delivery="emailpo">
    <xapi:template type="rtf" location="xdo://XXDBDPO.XXDBD_POXPRPOP_SA1.en.US/?getSource=true" filter=".//G_HEADERS[CP_VENDOR_EMAIL !='']"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    ERROR Generated from bursting file ............Pl help me...........its urgent .............
    XML/BI Publisher Version : 5.6.3
    Updating request description
    Retrieving XML request information
    Preparing parameters
    Set Bursting parameters..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=529232, user-variable:cp:language=en, user-variable:cp:responsibility=20707, user-variable.OA_MEDIA=http://usncx054.XXX.com:8015/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=N, user-variable:cp:parent_request_id=529232, user-variable:cp:locale=en-US, user-variable:cp:user=RAJULAT, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=529233, user-variable:cp:org_id=84, user-variable:cp:reportdescription=DBD Printed Purchase Order Report English, user-variable:cp:Dummy for Data Security=Y}
    Start bursting process..
    Bursting process complete..
    Generating Bursting Status Report..
    --Exception
    ZIP file must have at least one entry
    java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
    at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:534)
    at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Thanks

  • Query SQL code gets deleted after export to Excel. "Query must have at least one destination field"

    Hi all,
    I'm getting really frustrated by this Access error. It happens when I export the result of a query through an Access macro to Excel, the first time it runs well but the next time, there is a chance that the query won't run and the error "Query
    must have at least one destination field" will be displayed. After that, I try to check the query SQL code and discover the code has vanished. I'm using simple Select query without joins, only "where", "group by" and "order by"
    statements.
    Thank you in advance for your help,
    Jesus 
    Edit:
    One of these queries are like the following (all of them are of this type):
    SELECT Field1, field2, field3, field4, field5, Sum(Field6) AS SumOfField6, Sum(Field7) AS SumOfField7
    FROM Table1
    WHERE Field6 is not null
    GROUP BY Field1, field2, field3, field4, field5
    Order By Sum(Field6) desc

    Hi Peter, 
    Thank you for your response, I updated the original question with one of the codes.
    Thanks,
    Jesus

  • Crashing on Startup: Assert: "WebFontData must have a least one variation"

    No matter what web site I try to open, Muse gives me the following:
    Adobe Muse will now shutdown.
    Assert: "WebFontData must have a least one variation"
    Can anybody tell me what this means and how to fix? Thank you! Stranded until I can get back to work!
    Message was edited by: Corey@Adobe (added error to title)

    The issue is related to changes made in the TypeKit service. The Muse engineering team is actively working with the Typekit team to resolve the issue.
    We apologize the for inconvenience and I will update the forum as soon as the problem is resolved.
    Best regards,
    Corey

  • Assert: "WebFontData must have a least one variation"

    After installing the newest version of Adobe Muse, every time I open up one of my saved sites a dialogue box comes up and says:
    Adobe Muse will now shutdown. 
    Assert: "WebFontData must have at least one variation."
    Thank you
    Message was edited by: Corey@Adobe (added full error to title)

    In order to avoid duplication, please refer to the following forum topic for updates on this issue:
    Crashing on Startup: Assert: "WebFontData must have a least one variation"
    http://forums.adobe.com/message/4681876
    Best regards,
    Corey

  • ZipException: ZIP file must have at least one entry

    When I place a security constraint on jar files in a Tomcat server to prevent unauthenticated access to the jar files
    <security-constraint>
    <display-name>Security Constraint</display-name>
    <web-resource-collection>
    <web-resource-name>ee</web-resource-name>
    <url-pattern>*.jnlp</url-pattern>
    <url-pattern>*.jar</url-pattern>
    </web-resource-collection>
    our jnlp applications can no longer download the needed jar resources and I get the following exception. ( It works fine when I take jar files out of the security-constraint list.) Any suggestions on why this is happening and how to get this to work?
    Thanks.
    java.util.zip.ZipException: ZIP file must have at least one entry
         at java.util.zip.ZipOutputStream.finish(Unknown Source)
         at java.util.zip.DeflaterOutputStream.close(Unknown Source)
         at java.util.zip.ZipOutputStream.close(Unknown Source)
         at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
         at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
         at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    What am i missing here???
    ZipOutputStream zos = new ZipOutputStream(new FileOutputStream("out.zip"));
    void goDir(String dirName) {
    File dirObj = new File(dirName);
    if (dirObj.exists() == true) {
    if (dirObj.isDirectory() == true) {
    // create an array of File objects
    File[] fileList = dirObj.listFiles();
    for (int i = 0; i < fileList.length; i++) {
    if (fileList.isDirectory()) {
    goDir(fileList[i].getPath());
    else if (fileList[i].isFile()) {
    goZip(fileList[i].getPath());
    } // loop
    else {
    else {
    void goZip(String filePath) {
    try {
    FileInputStream fis = new FileInputStream(filePath);
    BufferedInputStream bis = new BufferedInputStream(fis);
    ZipEntry fileEntry = new ZipEntry(filePath);
    zos.putNextEntry(fileEntry);
    byte[] buff = new byte[1024];
    int len;
    while ( (len = bis.read(buff)) > 0) {
    zos.write(buff, 0, len);
    zos.closeEntry();
    bis.close();
    catch (java.io.IOException ioe) {
    ioe.printStackTrace()

  • Can we have more than one primary key constraint to a Oracle Table?

    Hi,
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    Please somebody answer..
    Regards,
    Alaka

    811935 wrote:
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    In principle a table can have multiple keys if you need them. It is a very strong convention that just one of those keys is designated to be "primary" but that's just a convention and it doesn't stop you implementing other keys as well.
    Oracle provides two uniqueness constraints for creating keys: the PRIMARY KEY constraint and the UNIQUE constraint. The PRIMARY KEY constraint can only be used once per table whereas the UNIQUE constraint can be used multiple times. Other than that the PRIMARY KEY and UNIQUE constraints serve the same function (always assuming the column(s) they are applied to are NOT NULL).

  • Can I have more than one primary key ???????

    Hi
    Assuming an application has designed as CMP with findByPrimaryKey( ) method having more than one parameter.
    Example :- findByPrimarykey(String val1, String val2)
    Is it possible to have two parameters fot the finder methods instead using PrimaryKey class ?
    If yes, what are the changes required for following deployment descriptor element. ?
    1. <prim-key-class></prim-key-class>
    2. <primkey-field></primkey-field>
    Regards
    Edward.I

    If a primary key has more than one primary key fields; is a composite primary key, a primary key class is required.
    The parameter of the findByPrimaryKey() method is the primary key class.
    findByPrimaryKey(PrimaryKeyClass pkClass)
    Deepak

  • (0, 0) Activity 'ID463' validation failed: An IfElseActivity must have at least one child of type IfElseBranchActivity.)

    i have the following workflow inside SharePoint designer:-
    but when i tried publishing the workflow i got the following error:-

    Hi John,
    Designer workflow doesn't accept multiple Else If conditions. Modify the workflow to have 'If - Else If' and then try to publish. In other words 'If' condition should have only one 'Else If' condition.
    Note: 
    after modifying the workflow, save and close the designer. Clear the cache at the following folders and then open designer and publish the workflow.
    C:\Users\loggedin-id\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache  OR    %AppData%\AppData\Roaming\Microsoft\SharePoint
    Designer\ProxyAssemblyCache<o:p></o:p>
    C:\Users\loggedin-id\AppData\Local\Microsoft\WebsiteCache   OR
        %AppData%\ AppData\Local\Microsoft\WebsiteCache
    C:\Users\loggedin-id\ Roaming\Microsoft\Web Server Extensions\Cache   OR    %AppData%\Roaming\Microsoft\Web
    Server Extensions\Cache
    Thanks
    Senthu
    Please mark as 'Answer' if it resolves your query or 'Vote' if its helpful
    so how i am going to write this ? i though adding multiple If-else will work inside SharePoint designer.. so how i should chnage my workflow, not sure , as i have three different if statements??

  • 5007 an actionscript file must have at least one externally visible definition

    Hi,
    I am quite new to Adobe Flash professional, and I am trying to edit a FLA file.
    after edition I try to publish it to the same directory, and I just published it swf as I dont need the html file.
    it keeps showing the above error and when I play my published new swf it keeps blinking!
    does anyone know what is the problem?
    Thanks

    At the minimum, .as file should have below code to publish as document class.
    package
                    import flash.display.MovieClip;
                    public class ClassName extends MovieClip
                                    public function ClassName()
                                                    // constructor code

  • How to make this query executable in SSRS: The query cannot be prepared: The query must have at least one axis.

    WITH 
     MEMBER [FYDay].[DateHierarchy].[CurrentDay]    AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[PreviousDay]          AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .PREVMEMBER  }
    , [Measures].CURRENTMEMBER) 
    MEMBER [FYDay].[DateHierarchy].[CurrentDay1]           AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(1)  }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[CurrentDay2]          AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(2)  }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[CurrentDay3]          AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(3)  }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[CurrentDay4]          AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(4)  }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[CurrentDay5]          AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(5)    }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[CurrentDay6]          AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(6)  }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[CurrentDay7]          AS AGGREGATE( 
    {  [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]  .LEAD(7)  }
    , [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[PTD]                         AS AGGREGATE(PERIODSTODATE([FYDay].[DateHierarchy].[FPERIOD], 
      [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]
    ), [Measures].CURRENTMEMBER) 
     MEMBER [FYDay].[DateHierarchy].[WTD]                         AS AGGREGATE(PERIODSTODATE([FYDay].[DateHierarchy].[FWEEK], 
     [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]
    ), [Measures].CURRENTMEMBER) 
    SELECT  
     [FYDay].[DateHierarchy].[WTD], 
           [FYDay].[DateHierarchy].[PTD], 
           [FYDay].[DateHierarchy].[PreviousDay], 
           [FYDay].[DateHierarchy].[CurrentDay], 
           [FYDay].[DateHierarchy].[CurrentDay1], 
           [FYDay].[DateHierarchy].[CurrentDay2], 
           [FYDay].[DateHierarchy].[CurrentDay3], 
           [FYDay].[DateHierarchy].[CurrentDay4], 
           [FYDay].[DateHierarchy].[CurrentDay5], 
           [FYDay].[DateHierarchy].[CurrentDay6], 
           [FYDay].[DateHierarchy].[CurrentDay7] 
     } ON COLUMNS, 
     [Measures].[Store Budget], 
     [MEASURES].[SNAPSHOTSOLDAMOUNT], 
     [MEASURES].[SHIPPEDAMOUNT], 
     [MEASURES].[SHIPPED VS SOLD], 
     [Measures].[% To Budget]
     {[STOREMASTER].[SERVICINGDC].[SERVICINGDC].ALLMEMBERS} 
     )} ON ROWS 
     from ( select {[STOREMASTER].[SERVICINGDC].&[Houston]} on columns 
     FROM [Model] 

    Hi Ramparasad,
    In your query, you add a measures and dimension on Row axis which is not supported in query designer in SSRS. Please use the query below.
    WITH
    MEMBER [FYDay].[DateHierarchy].[CurrentDay] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[PreviousDay] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .PREVMEMBER }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[CurrentDay1] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(1) }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[CurrentDay2] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(2) }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[CurrentDay3] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(3) }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[CurrentDay4] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(4) }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[CurrentDay5] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(5) }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[CurrentDay6] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(6) }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[CurrentDay7] AS AGGREGATE(
    { [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014] .LEAD(7) }
    , [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[PTD] AS AGGREGATE(PERIODSTODATE([FYDay].[DateHierarchy].[FPERIOD],
    [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]
    ), [Measures].CURRENTMEMBER)
    MEMBER [FYDay].[DateHierarchy].[WTD] AS AGGREGATE(PERIODSTODATE([FYDay].[DateHierarchy].[FWEEK],
    [FYDay].[DateHierarchy].[FYEAR].&[2014].&[4].&[10].&[41].&[09/11/2014]
    ), [Measures].CURRENTMEMBER)
    SELECT
    [Measures].[Store Budget],
    [MEASURES].[SNAPSHOTSOLDAMOUNT],
    [MEASURES].[SHIPPEDAMOUNT],
    [MEASURES].[SHIPPED VS SOLD],
    [Measures].[% To Budget]
    }ON COLUMNS,
    { [FYDay].[DateHierarchy].[WTD],
    [FYDay].[DateHierarchy].[PTD],
    [FYDay].[DateHierarchy].[PreviousDay],
    [FYDay].[DateHierarchy].[CurrentDay],
    [FYDay].[DateHierarchy].[CurrentDay1],
    [FYDay].[DateHierarchy].[CurrentDay2],
    [FYDay].[DateHierarchy].[CurrentDay3],
    [FYDay].[DateHierarchy].[CurrentDay4],
    [FYDay].[DateHierarchy].[CurrentDay5],
    [FYDay].[DateHierarchy].[CurrentDay6],
    [FYDay].[DateHierarchy].[CurrentDay7]
    {[STOREMASTER].[SERVICINGDC].[SERVICINGDC].ALLMEMBERS}
    } ON ROWS
    from ( select {[STOREMASTER].[SERVICINGDC].&[Houston]} on columns
    FROM [Model]
    Regards,
    Charlie Liao
    TechNet Community Support

  • How I can do this update, when I have two records (one primary key, no seq)

    How I can do this update in pl\sql
    Here is the table with some data
    CREATE TABLE INSERT_TE
    PIDM        VARCHAR2(8),
    FORM_ID     VARCHAR2(2),
    TEACHER     VARCHAR2(30)
    INSERT into INSERT_TE
    PIDM,
    FORM_ID,
    TEACHER
    SELECT
    '1106651',
    'TE',
    'Teacher, Alber Howard'
    from dualcommit;
    INSERT into INSERT_TE
    PIDM,
    FORM_ID,
    TEACHER
    SELECT
    '1106651',
    'TE',
    'Teacher, Alber2 '
    from dualcommit;
    INSERT into INSERT_TE
    PIDM,
    FORM_ID,
    TEACHER
    SELECT
    '2321241',
    'TE',
    'Teacher, Silly Billy '
    from dualcommit
    You are going to ended with something like this: In a cursor..
    PIDM     FORM_ID     TEACHER
    1106651     TE     Teacher, Alber Howard
    1106651     TE     Teacher, Alber2
    2321241     TE     Teacher, Silly Billythen I need to update a table
    if the there is only one record like this one 2321241 TE Teacher, Silly Billy
    not problem I do this
    UPDATE   saturn.sarchkl
             SET
             sarchkl_receive_date = SYSDATE,
             sarchkl_activity_date = SYSDATE,
             sarchkl_source = 'U',
             sarchkl_source_date = SYSDATE
             WHERE
              sarchkl_pidm = v_pidm3
              AND sarchkl_receive_date IS NULL
              AND sarchkl_term_code_entry = p_term
              AND sarchkl_admr_code = 'REC1'But if there is a PIDM (pk) with two records
    PIDM FORM_ID TEACHER
    1106651 TE Teacher, Alber Howard
    1106651 TE Teacher, Alber2 I need to do 2 updates (notice the AND sarchkl_admr_code rec1 for the firs and rec2 for the second
    The first record should update the table when the condition is sarchkl_admr_code = 'REC1' and the second record with the
    condition is sarchkl_admr_code = 'REC2'
    UPDATE   saturn.sarchkl
             SET
             sarchkl_receive_date = SYSDATE,
             sarchkl_activity_date = SYSDATE,
             sarchkl_source = 'U',
             sarchkl_source_date = SYSDATE
             WHERE
              sarchkl_pidm = v_pidm3
              AND sarchkl_receive_date IS NULL
              AND sarchkl_term_code_entry = p_term
              AND sarchkl_admr_code = 'REC1'and
    UPDATE   saturn.sarchkl
             SET
             sarchkl_receive_date = SYSDATE,
             sarchkl_activity_date = SYSDATE,
             sarchkl_source = 'U',
             sarchkl_source_date = SYSDATE
             WHERE
              sarchkl_pidm = v_pidm3
              AND sarchkl_receive_date IS NULL
              AND sarchkl_term_code_entry = p_term
              AND sarchkl_admr_code = 'REC2'I am doing this in pl\sql, I don't have a sequence in the table INSERT_TE, how I know that the first record in
    1106651 TE Teacher, Alber Howard
    1106651 TE Teacher, Alber2 update a rec1 and the second updates when sarchkl_admr_code = 'REC2',
    I guess I can create a sequence, but I am inserting a table from a select satement, I am getting the error
    ORA-02287: sequence number not allowed here, when I try to do the following:
    INSERT INTO SYTEACH
    SYTEACH_PIDM,
    SYTEACH_ID,
    SYTEACH_TEACHER,
    SYTEACH_SEQ
    SELECT  
          DISTINCT
          spriden_pidm,
          sarchkl_admr_code,
          szsform_form_id,
          szsform_schl_off_type||', '||szsform_schl_off_firstname||' '||szsform_schl_off_lasttname teacher,
           SZSFORM_SEQ.NEXTVAL
            FROM   saturn_midd.szsform, saturn.spriden, saturn.sarchkl
           WHERE       spriden_ntyp_code = 'CAPP'
                   AND szsform_common_app_id = spriden_id
                   AND spriden_pidm = sarchkl_pidm
                   AND sarchkl_admr_code = 'REC1'
                   AND szsform_form_id = 'TE'
    What is the simple way of doing this update..

    Hi,
    you said:
    >
    But if there is a PIDM (pk) with two records
    PIDM FORM_ID TEACHER
    1106651 TE Teacher, Alber Howard
    1106651 TE Teacher, Alber2
    >
    No! pks are unique! (otherwise we don't call them pk)
    For your table you could define a unique like this:
    PIDM column + a sequence. (new column):
    ALTER TABLE INSERT_TE ADD(TEACH_SEQ NUMBER)
    UPDATE INSERT_TE x
       SET TEACH_SEQ =
              (SELECT n
               FROM   (SELECT ROWID rid,
                              ROW_NUMBER() OVER(PARTITION BY pidm ORDER BY TEACHER) n
                       FROM   INSERT_TE t) s
               WHERE  s.rid = x.ROWID)
    PIDM     FORM_ID     TEACHER     TEACH_SEQ
    1106651     TE     Teacher, Alber Howard      1
    1106651     TE     Teacher, Alber2       2
    2321241     TE     Teacher, Silly Billy      1I need to do 2 updates (notice the AND sarchkl_admr_code rec1 for the firs and rec2 for the second
    The first record should update the table when the condition is sarchkl_admr_code = 'REC1' and the second record with the condition is sarchkl_admr_code = 'REC2'
    >
    normally no.
    but you can (now) do
    select PIDM, FORM_ID, TEACHER, 'REC'||TEACH_SEQ TEACH_SEQ from INSERT_TE
    PIDM     FORM_ID     TEACHER     TEACH_SEQ
    1106651     TE     Teacher, Alber Howard     REC1
    1106651     TE     Teacher, Alber2      REC2
    2321241     TE     Teacher, Silly Billy      REC1and use the last column for you update ...
    Edited by: user11268895 on Aug 20, 2010 2:01 PM

Maybe you are looking for

  • Selection indicator for costing line items in production order

    Dear all, Do anyone know how to change field "AFVGD-SELKZ" of operation inside producion order? Any user-exit or standard program? As content of field "AFVGD-SELKZ" is carried from routing. But is it possible to change in production order level? Plea

  • Creating a view with a primary key

    I want to create a view with a defined primary key. I understand the view is created within a select statement, but do not understand how you would define a particular field as a primary key in the view. Also if your select statement attempts to buil

  • Price control for material as per delivery

    They are purchasing material which are used in the production process  these have a fluctuating price and the price paid is the price at the point of delivery not the point of ordering.  The prices are fixed for three months at a time but the deliver

  • How to Smart Card integrated with database ..im beginner

    Dear, im beginner for Technologies Smart Card.. I have ACOS2 and reader ACR30D ..I hope u can helping me..please my question? 1. How to java or Visul Basic integrated and presenting data on file in card (like name, address, phone number, ..etc)? 2. P

  • Time Machine - Time Capsule hangs when finishing

    Recently upgraded to Leopard and added a 500 GB TC. After many hours the initial backup finally finished, but now whenever it tries to do the hourly backup, it hangs at the "finishing backup" stage. No error message, just stays in that state until I