SEQUENCE issuing numbers more than once?

This is all on
Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64) 
Oct 19 2012 13:38:57 
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
Running on Server 2008 Standard as a VMWare instance
I have an ETL load process that requires me to merge data form 4 sources. To do this we load data incrementally from each of the 4 instances into a STAGING table then we load it onwards into the destination table. During the load into the STAGING table we
issue a unique RowID value for each loaded row based on a SEQUENCE attached to the STAGING table which is built using a script like this
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[STAGING].[Fact_Bert]') AND type in (N'U'))
DROP TABLE [STAGING].[Fact_Bert]
GO
IF  EXISTS (SELECT * FROM sys.sequences WHERE name = N'Bert_SEQ')
DROP SEQUENCE [FACT].[Bert_SEQ]
GO
IF NOT EXISTS (SELECT * FROM sys.sequences WHERE name = N'Bert_SEQ')
BEGIN
CREATE SEQUENCE [FACT].[Bert_SEQ] 
 AS [int]
 START WITH 1
 INCREMENT BY 1
 MINVALUE -2147483648
 MAXVALUE 2147483647
 CYCLE 
 CACHE  100 
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [STAGING].[Fact_Bert](
[source_system_sk] [int] NOT NULL,
[RowID] [int] NOT NULL,
... other cols for data
CONSTRAINT [PK_STAGING_Bert] PRIMARY KEY CLUSTERED 
[source_system_sk] ASC,
... other PKEY cols form source system
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, 
IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, 
ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [STAGING]
) ON [STAGING]
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[FACT].[DF_Bert_RowID') AND type = 'D')
BEGIN
ALTER TABLE [STAGING].[Fact_Bert] ADD  DEFAULT (NEXT VALUE FOR [FACT].[Bert_SEQ]) FOR [RowID]
END
GO
So each row in STAGING ends up with a unique RowID, we carry these forwards into the LIVE tables and RowID is used as the PKEY on the LIVE tables.
This should be all well and good.
Every day a SQL Agent job runs a SSIS package that loads data into STAGING (after truncating it) and then moves it into LIVE.
The problem is that for some of the STAGING tables every time we run the daily load jobs we find that it re-allocates SEQUENCE values. So when we try and move data into the LIVE tables we get a PKEY error. Looking at the data before we run a load we can
see that there are values in the STAGING table that run to 2700010 but if I look at the sys.sequences DMV the current_value for the sequence concerned is 2700000 and
SELECT NEXT
VALUE FOR
[FACT].[Bert_SEQ]
-- returns 2700008
So when we run the package we end up with values in STAGING that already exist in the LIVE table and hey presto a PKEY violation when we try and move the data into LIVE
I've got an SP that I can run on the table that will look at the sequence and reset it to start at a new value if the currently used value is higher than the current value returned by the DMV (it pads the values by 1000) I had to write this as manually figuring
it out was taking forever
The server isn't usually restarted between loads, though I have done that deliberately today between load issues and it seems to make no difference.
The SEQUENCES are CACHED but the CACHE size is 100 and the overlaps seem pretty randomly sized. Though the more data I load the bigger the overlap seems to be. This makes me think that something is amiss in the way data is loaded by the OLEDB Destination
in the SSIS packages that populate the STAGING tables. I'm not using transactions anywhere nor am I using SSIS transaction/rollback capability
I'm going to try switching the SEQUENCES to NO CACHE to see if that fixes the issue, though I don't like the perf hit I'm going to take as we're loading many tens of thousands running to hundreds of thousands of rows a day across 30+ tables. I appreciate
this isn't exactly big but its big enough to be a problem.
Has anyone got an ideas/advice?
many thanks
Steve
BI Addict!

I have built a small DB and SSIS package that reproduce the issue reliably and have been testing out the scenarios where it fails.
Interestingly it seems this is only failing on 2 environments nth have the build number mentioned at the top of the post.
The other environments seem to have 
Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) 
and do not exhibit the same behaviour. So it would seem this was fixed between these two builds and it is a legacy
issue of the mixed platforms we have.
I will update the connect item with this info as well.
BI Addict!

Similar Messages

  • HT1918 I'm having some issues trying to change my account billing---I have a new debit card and i need to punch in the new number but when i go to edit my info itunes says my 'session has timed out.' i've logged in and out more than once. what's the probl

    i'm having some issues trying to change my account billing---I have a new debit card and i need to punch in the new number but when i go to edit my info itunes says my 'session has timed out.' i've logged in and out more than once. what's the problem?

    Try to change the credit information from your iphone or other ios device. Tap on settings > store > tap Apple ID > tap view account > tap payment information > change

  • Use Topic in TOC more than once...

    We have just purchased RoboHelp 6 for our Help System
    generation as well as to begin developing online training courses.
    I have a WebHelp File that contains 5 books - one book per
    procedure. I have a topic that is applicable to two procedures.
    Without having to make a copy of the topic, is it possible to set
    up the TOC to use the topic in question more than once?
    The problem arises when I am setting up the Browse Sequence.
    I tried to set up the Browse Sequence using the Auto-create using
    TOC...option, but the sequence appears to be in alphabetically
    order. In fact, it is in no way, shape or form even close to the
    TOC (as indicated in the Help - Topics in each browse sequence will
    be in the same order as in the TOC)!!!
    So, I tried to manually create the browse sequence. I used a
    browse sequence to contain all topics, then I set up another browse
    sequence to contain the duplicate topic. When I use the navigation
    arrows to move through the toc, it will not advance to the second
    browse sequnce.
    Any ideas or suggestions would be greatly appreciated. Thanks
    in advance.
    Lisa

    Hi LNT1
    The trick to all this is to never directly link from the TOC
    to the desired topic. Let's assume the TOC should have a topic
    appearing in two different places. In order to make this work, you
    link from two different redirect pages.
    Now if you generate WebHelp, I see where there could be an
    issue, because the browse sequence can only link from one topic to
    another. In other words, a topic can only have a single link to and
    a single link from it. So in this case, the redirect trick would
    fail. However, another trick comes to mind that may work. Instead
    of a Redirect page, you could have two different pages that instead
    of redirecting, contained an Inline Frame (IFRAME) that simply
    displayed the contents of the desired page. Basically, the pages
    containing the IFRAME would link properly and provide the desired
    effect.
    For more on IFRAMEs, download my Tips and Tricks file and
    scan it for how to create IFRAMES.
    Cheers... Rick

  • Heading level hierarchy errors when topics are in TOC more than once

    I have discovered that the hierarchy in the Heading levels in
    the Printed Documentation will differ from than in my online help
    table of contents hierarchy, and that the problem is due to topics
    that are intentionally in the TOC more than once.
    For example, in chapter 5 of a particular help system the
    hierarchy should be:
    Heading 1 < Chapter 5 title from top-level book>
    Heading 2 <title of second level book>
    Heading 3 <title of topic that appears under second-level
    book>*
    What I actually get is:
    Heading 1 < Chapter title from top-level book>
    Heading 2 <title of second level book>
    Heading 4 <title of topic that appears under second-level
    book>*
    * This same topic appeared in an earlier chapter. In that
    chapter it was really at a Heading 4 level.
    Due to company styles, etc. we use a numbering system at the
    headings and in the TOC, so instead of
    5
    5.1
    5.1.1
    I erroneously get
    5
    5.1
    5.1.1.1
    This type of hierarchy issue appears multiple times in this
    particular document (which I inherited by the way.)
    Other than restructuring the document to not reuse topics in
    different places in the TOC, is there a solution or a workaround
    for this problem?
    What I am doing so far, is generating the Print Documentation
    one chapter at a time. As long as a topic is not reused with the
    same chapter, my hierarchy of heading levels is maintained;
    otherwise, it is not. Then I can put the chapters back together
    after fixing the few places that still have heading level problems.
    This however, will be quite cumbersome as this document is
    translated into nine other languages.
    I am using RoboHelp X5 for Word / Word 2003 for the source
    and most of the translations; RoboHelp Asian Edition, Simplified
    Chinese / Word 2003 for the Chinese translation. The heading level
    hierarchy error occurs in both versions.

    >> AF: I've commented in sections...
    Without Maintain Heading Levels, RH will apply heading levels
    to the books and then the topic levels will get bumped down. So a
    top level book will be Heading 1 and the Headings in the topic will
    get bumped down to 2, 3 and 4 etc. If then you have another book
    one level down so that it gets Heading 2 applied, the same topic
    but under the level two book would then get 3, 4 and 5 applied.
    That is not the original problem but hopefully we are agreed
    that is how things work on that.
    >> Yes - that is the expected behavior. When it didn't
    happen as expected, that's what led me to the discovery of the
    cause of the problem (topic reuse).
    Your problem was that firstly Heading 3 got bumped to Heading
    4 if the same topic was inserted into the TOC twice. I assume it
    was OK in the first instance, or is it that when you add it twice
    it goes wrong everywhere?
    >> Your assumption is correct. First occurrence is
    correct. Second, third, and fourth (yes - there is one topic that
    is used 4 times! ) are not correct based on TOC hierarchy.
    On the numbering, nothing surprises me. If you look at my
    site you will see that for RH HTML, i gave up on getting it right.
    I have had many queries on this and more than a few people have
    indicated they will work on the problem and get it working. I'm
    still waiting. There are many posts about outline numbering
    problems. Has anyone got it working satisfactorily?
    >> I don't really have numbering problems. The
    numbering is following the RoboHelp-generated hierarchy and the
    .dot template that I apply. It's just that the RH-generated
    hierarchy and its heading levels don't correspond to the "real"
    hierarchy because of the reuse issue.
    I have seen various Word gurus maintain that numbering has
    not worked entirely satisfactorily since Word 2! Also enough posts
    to convince me this is a Word issue, not a RH issue.
    If you want to create a new project and knock something up
    that demonstrates this problem, by all means zip it up and send it.
    I'll assume it will be a small project and zip to less than 5mb. If
    more, contact me first.
    >> Unless you have RoboHelp X3 Asian Edition,
    Simplified Chinese, there is really no need. I plan to either avoid
    the reuse issue in the source, or build the print doc in sections
    which is easy enough in RoboHelp X5 for the non-Chinese languages.
    It is in the older Asian edition where the problems are compounded
    by the omitted reuse topics. If you do have RoboHelp X3 Asian
    Edition, Simplified Chinese and want to experiment, I can send you
    a cut-down version of the project. Don't feel obligated though;
    unless you can read Chinese (I can't) it is very tedious to work
    with.

  • Performance... Why a function column in a view is executed more than once...?

    Why a function column created inside a view is executed more than once when called more than once?
    EXAMPLE:
    create or replace view aux1 as
    date_column,
    any_function(date_column) column1
    from any_table
    create or replace view aux2 as
    column1 c1,
    column1 c2,
    column1 c3
    from aux1
    select * from aux2
    It will execute 3 times the function any_function... logically the value will be the same for all columns...
    I understand why!... are 3 calls... but...
    Why not to create a "small" verification and if the function column was execute replace the second, the third... value? ... instead of execute 3, 4... times...
    tks
    Braga

    Actually, this is more than a performance issue. This is a consistency problem. If the function is NOT deterministic then you may get different values for each call which is clearly not consistent with selecting 3 copies of the same column from a row. Oracle appears to have fixed this in 9i...
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.2.0 - Production
    create view v1 as select dbms_random.value(1,100) r from dual;
    create view v2 as select r r1, r r2 from v1;
    select * from v2;
              R1           R2
              93           74
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.3.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.3.0 - Production
    create view v1 as select dbms_random.value(1,100) r from dual;
    create view v2 as select r r1, r r2 from v1;
    select * from v2;
              R1           R2
              78           78Richard

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • How to use same page fragment more than once in a page,

    Hi Gurus,
    How to use same page fragment more than once in a page. I have a complex page fragment which has lots of Bindings (Binding Property set with backingBean variables).
    I want to use the same page fragment multiple times on the same page with different tabs.
    I want different ApplicationModule Instance for the page fragment in different tabs.
    So I have created a Bounded Taskflow with pagefragments which has this complex pagefragment.
    I've dragged the taskflow to page and created regions.
    I'm able to execute the page successfully when I have only one region but fails if I have region more than once in the page.
    Can anyone help me how to resolve this issue.
    Web User Interface Developer's Guide for Oracle Application Development Framework: section 19-2 states we can have same pagefragment more than once in a page.
    Thanks,
    Satya

    java.lang.IllegalStateException: Duplicate component id: 'pt1:r1:0:t2:si5', first used in tag: 'com.sun.faces.taglib.jsf_core.SelectItemsTag'
    +id: j_id_id1
    type: javax.faces.component.UIViewRoot@1d23189
      +id: d1
       type: RichDocument[UIXFacesBeanImpl, id=d1]
        +id: j_id_id5
         type: HtmlScript[UIXFacesBeanImpl, id=j_id_id5]
          +id: j_id0
           type: javax.faces.component.html.HtmlOutputText@bc252
        +id: m1
         type: RichMessages[UINodeFacesBean, id=m1]
        +id: f1
         type: RichForm[UIXFacesBeanImpl, id=f1]
          +id: pt1
           type: RichPageTemplate[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@2a0cc, id=pt1]
            +id: ps1
             type: RichPanelSplitter[UIXFacesBeanImpl, id=ps1]
              +id: pt3
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1199)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag265(__projectrevenuern_jsff.java:12356)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag264(__projectrevenuern_jsff.java:12317)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag263(__projectrevenuern_jsff.java:12262)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag262(__projectrevenuern_jsff.java:12200)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag261(__projectrevenuern_jsff.java:12147)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag260(__projectrevenuern_jsff.java:12099)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag259(__projectrevenuern_jsff.java:12047)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag258(__projectrevenuern_jsff.java:11992)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag257(__projectrevenuern_jsff.java:11948)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag255(__projectrevenuern_jsff.java:11860)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag254(__projectrevenuern_jsff.java:11808)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag9(__projectrevenuern_jsff.java:510)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag8(__projectrevenuern_jsff.java:461)
         at jsp_servlet.__projectrevenuern_jsff._jspx___tag1(__projectrevenuern_jsff.java:149)
         at jsp_servlet.__projectrevenuern_jsff._jspService(__projectrevenuern_jsff.java:67)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
         at oracle.adfinternal.view.faces.taglib.region.IncludeTag.__include(IncludeTag.java:443)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:153)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:128)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:492)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag50(__projectrevenuepg_jspx.java:2392)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag49(__projectrevenuepg_jspx.java:2353)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag46(__projectrevenuepg_jspx.java:2209)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag45(__projectrevenuepg_jspx.java:2162)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag9(__projectrevenuepg_jspx.java:526)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag8(__projectrevenuepg_jspx.java:475)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag7(__projectrevenuepg_jspx.java:424)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag6(__projectrevenuepg_jspx.java:373)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag2(__projectrevenuepg_jspx.java:202)
         at jsp_servlet.__projectrevenuepg_jspx._jspx___tag1(__projectrevenuepg_jspx.java:144)
         at jsp_servlet.__projectrevenuepg_jspx._jspService(__projectrevenuepg_jspx.java:71)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = CAMIND1 TXID =  CONTEXTID =  TIMESTAMP = 1262712477691 
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <JMXWatchNotificationListener><handleNotification> failure creating incident from WLDF notification
    oracle.dfw.incident.IncidentCreationException: DFW-40116: failure creating incident
    Cause: DFW-40112: There was an error executing adrci commands; the following errors have been found "DIA-48415: Syntax error found in string [create home base=C:\\Documents and Settings\\tammineedis\\Application] at column [69]
    DIA-48447: The input path [C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr] does not contain any ADR homes
    DIA-48447: The input path [diag\ofm\defaultdomain\defaultserver] does not contain any ADR homes
    DIA-48494: ADR home is not set, the corresponding operation cannot be done
    Action: Ensure that command line tool "adrci" can be executed from the command line.
         at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createADRIncident(DiagnosticsDataExtractorImpl.java:708)
         at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createIncident(DiagnosticsDataExtractorImpl.java:246)
         at oracle.dfw.spi.weblogic.JMXWatchNotificationListener.handleNotification(JMXWatchNotificationListener.java:195)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1732)
         at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
         at javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)
         at javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)
         at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
         at weblogic.management.jmx.modelmbean.WLSModelMBean.sendNotification(WLSModelMBean.java:824)
         at weblogic.diagnostics.watch.JMXNotificationProducer.postJMXNotification(JMXNotificationProducer.java:79)
         at weblogic.diagnostics.watch.JMXNotificationProducer.sendNotification(JMXNotificationProducer.java:104)
         at com.bea.diagnostics.notifications.JMXNotificationService.send(JMXNotificationService.java:122)
         at weblogic.diagnostics.watch.JMXNotificationListener.processWatchNotification(JMXNotificationListener.java:103)
         at weblogic.diagnostics.watch.Watch.performNotifications(Watch.java:621)
         at weblogic.diagnostics.watch.Watch.evaluateLogRuleWatch(Watch.java:546)
         at weblogic.diagnostics.watch.WatchManager.evaluateLogEventRulesAsync(WatchManager.java:765)
         at weblogic.diagnostics.watch.WatchManager.run(WatchManager.java:525)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.dfw.common.DiagnosticsException: DFW-40112: failed to execute the adrci commands "create home base=C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr product_type=ofm product_id=defaultdomain instance_id=defaultserver
    set base C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr
    set homepath diag\ofm\defaultdomain\defaultserver
    create incident problem_key="BEA-101020 [HTTP]" error_facility="BEA" error_number=101020 error_message="null" create_time="2010-01-05 12:27:58.155 -05:00" ecid="0000INzXpbB7u1MLqMS4yY1BGrHn00000K"
    Cause: There was an error executing adrci commands; the following errors have been found "DIA-48415: Syntax error found in string [create home base=C:\\Documents and Settings\\tammineedis\\Application] at column [69]
    DIA-48447: The input path [C:\\Documents and Settings\\tammineedis\\Application Data\\JDeveloper\\system11.1.1.2.36.55.36\\DefaultDomain\\servers\\DefaultServer\\adr] does not contain any ADR homes
    DIA-48447: The input path [diag\ofm\defaultdomain\defaultserver] does not contain any ADR homes
    DIA-48494: ADR home is not set, the corresponding operation cannot be done
    Action: Ensure that command line tool "adrci" can be executed from the command line.
         at oracle.dfw.impl.incident.ADRHelper.invoke(ADRHelper.java:1052)
         at oracle.dfw.impl.incident.ADRHelper.createIncident(ADRHelper.java:786)
         at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createADRIncident(DiagnosticsDataExtractorImpl.java:688)
         ... 19 moreI get the above Error.
    I have checked the bindings and it has 2 instances of the taskflow.
    I have changed the backingbean scope to backingBean

  • Using firefox 5 - when ever I try to use the same key more than once in a row, it does not work. Hitting the multiple times does nothing at all. How can this be corrected. HELP!!!

    everything that needs to be done on the keyboard is effected - letters, numbers, backspace, directionals, delete, home, end, page up, page down, '''all keys that are pressed more than once''' It does not matter what webpage I am on.
    PLEASE HELP
    this is very frustrating

    You may have switched on an accessibility feature called FilterKeys by keeping the Shift key pressed for too long.
    * http://www.microsoft.com/enable/products/windowsxp/default.aspx
    *http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/access_filterkeys_turnon.mspx?mfr=true

  • ORA-00604 & ORA-30512 CANNOT MODIFY TABLE MORE THAN ONCE IN A TRANSACTION

    We have a requirement where two tables should be in sync at any given point
    in time with respect to the structure of the tables.
    Any change on table/column via ALTER (MODIFY, ADD, RENAME COLUMN, DROP
    COLUMN) on the parent table should be replicated to the replica table.
    I created a DDL_TRIGGER on the schema and the desired result is achieved but
    for the following one scenario for which its failing.
    The issue is, if we try to reduce the width of the column (via ALTER ..
    MODIFY) it fails with the following error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
    transaction
    Please follow the steps to reproduce the issue (the issue is across the DB
    version checked on 10.2, 11.1 and 11.2 DB version)
    -- Step1 Create Parent Table
    CREATE TABLE abc (col1 VARCHAR2(10))
    -- Step2 Create Replica Table
    CREATE TABLE replica_abc (col1 VARCHAR2(10))
    -- Step3 Create DDL Trigger
    CREATE OR REPLACE TRIGGER ddl_trigger
    AFTER ALTER ON SCHEMA
    DECLARE
    operation VARCHAR2(30);
    object_name VARCHAR2(30);
    l_sqltext VARCHAR2(100);
    i PLS_INTEGER;
    l_count NUMBER:=0;
    sql_text dbms_standard.ora_name_list_t;
    BEGIN
    i := dbms_standard.sql_txt(sql_text);
    SELECT ora_sysevent, ora_dict_obj_name, UPPER(sql_text(i))
    INTO operation, object_name, l_sqltext
    FROM dual;
    IF ora_dict_obj_name = 'ABC' THEN
    l_count := INSTR(l_sqltext,'ADD CONSTRAINT',1,1);
    l_count := l_count + INSTR(l_sqltext,'DISABLE',1,1);
    l_count := l_count + INSTR(l_sqltext,'DROP CONSTRAINT',1,1);
    l_count := l_count + INSTR(l_sqltext,'PRIMARY KEY',1,1);
    l_count := l_count + INSTR(l_sqltext,'ADD CHECK',1,1);
    IF (l_count = 0) THEN
    l_count := INSTR(l_sqltext,'ADD',1,1);
    l_count := l_count + INSTR(l_sqltext,'MODIFY',1,1);
    l_count := l_count + INSTR(l_sqltext,'DROP COLUMN',1,1);
    l_count := l_count + INSTR(l_sqltext,'RENAME
    COLUMN',1,1);
    IF (l_count >0) THEN
    l_sqltext := REPLACE(l_sqltext,'TABLE ABC','TABLE REPLICA_ABC');
    execute immediate l_sqltext;
    END IF;
    END IF;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE ;
    END;
    -- Step 4 Issue the following ALTER command on the Parent table 'ABC'
    ALTER TABLE ABC MODIFY COL1 VARCHAR2(9);
    will show the following
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
    transaction
    ORA-06512: at line 34
    whereas the following commands works fine
    ALTER TABLE ABC MODIFY COL1 VARCHAR2(11);
    and also the rest of the operations
    ALTER TABLE ABC ADD COL2 VARCHAR2(20);
    ALTER TABLE ABC RENAME COLUMN COL2 TO COL3;
    ALTER TABLE ABC DROP COLUMN COL3;
    The issue is while reducing the size of VARCHAR2 columns, while the rest of
    option works fine.
    Any suggestion or workaround please.

    It looks like a bug to me. The failing statement from the SQL trace is
    PARSE ERROR #12:len=77 dep=3 uid=0 oct=3 lid=0 tim=1263332549608656 err=30512
    select /*+ first_rows */ 1 from "TIM"."REPLICA_ABC" where LENGTHB("COL1") > 9and exception cannot explain it.

  • Document contains some order item more than once - invoice verification

    Hi,
    we have one cross company stock transfer process in which when a billing is created in SD side, an IDOC will be triggered automatically and create an invoice verification at the MM side.
    The problem is some of our billing of this process having an IDOC application error that said.
    Document contains same order item more than once
    Message no. M8321
    Diagnosis
    Under the following circumstances, you can settle an order item in an invoice received via EDI more than once:
    - Goods-receipt-based Invoice Verification has been defined for the order item.
    - The IDoc contains the delivery note numbers of the goods receipts.
    System Response
    If this is not the case, the system cancels posting of the IDoc.
    Question:
    1 - The funny thing is IDOC showing 51 IDOC error code message on status record of INVOIC. But the invoice verfication get created in PO history.
    2 - I think this error is because we need to make the PO as GR-based Inverifcation. We have flagged it in Vendor master, and Info record, but this indicator is not flag automatically in the PO (and we cannot manually change the PO as this indicator is grey-out). How?
    3 - how to solve this error?
    Thanks

    Once PO history is created, you cannot change the "GR-based-IV" flag. Two options are there before you.
    1. Cancel all the GRs & Invoices posted in the STO then system will allow you to update the GR-based-IV flag. After updating this flag repost the GRs and invoices.
    2. Create a new STO, now since you have updated the vendor maser & info-record, this flag will automatically get updated during the STO creation itself.
    First option is tedious and should be selected only if you can go option 2 is not at all feasible

  • Restrict the receipt of same serial number more than once

    Hi,
    I want to restrict the same serial number to be taken in the stock more than once..
    Can somebody guide how to acheive this..
    At the same time I have the indicator set of auto creation of serial numbers at the time of goods receipt in serial number profile.
    e.g. I posted 2 material documents (101) one with material A and another with material B with the same serial number S
    when I check the serial number S in transaction code IQ03, it is showing against 2 mat. codes. I dont want this scenario to occur.

    IN IQ03 , you have to put both the material number and serial number.
    The serial number is tied to material number. Hence, different material number can have the same serial number.

  • AddOn: Prevent from loading more than once

    Good Afternoon
    Experts:
    I appreciate you patience as I resurrect this topic since it has become an
    increasing concern here.  We need a way to restrict our AddOn from "being in"
    Task.mgr more than once.  We are working with Terminal Services.  A couple ways we have found more than one instance in TM is the User just opening another session or opening another session after a "problem/Issue/Crash". 
    I have this code which restricts the AddOn from starting more than once here on my local machine:
    Public Sub Main()
            Try
                Dim x As Integer = 0
                Dim Ctr As Integer = 0
                Dim som() As System.Diagnostics.Process
                som = System.Diagnostics.Process.GetProcesses
                Dim Name As String
                For x = 0 To som.Length - 1
                    Name = som(x).ProcessName.ToUpper
                    If som(x).ProcessName = "Test.Enhance" Then
                        Ctr += 1
                    End If
                Next x
                If Ctr > 0 Then
                    MsgBox("LBSI.Enhance AddOn is already started...Exiting application.", MsgBoxStyle.Critical)
                    Exit Try
                Else
                    ReInitializeAddOn()
                    Application.Run()
                End If
            Catch ex As Exception
                HandleException("Main", ex, True)
            End Try
        End Sub
    Is there a better more elegant way to do this? How about for Terminal Services?
    Thanks in advance for your insight,
    EJD

    Not answered...so I will close.

  • Concatenating to a variable more than once?

    Is it possible to concat to the same variable more than once? For some reason I am thinking not.
    I have the following:
    declare v_sql VARCHAR2(2000);
    v_sql := 'Select blah balh Where myfield in (';
    if v_show1 = 1 then
    v_sql := v_sql || '1,'
    end if;
    if v_show2 = 1 then
    v_sql := v_sql || '2,'
    end if;
    if v_show3 = 1 then
    v_sql := v_sql || '3,'
    end if;
    v_sql := v_sql || '4)';
    Is that possible or is there another way to do this?
    Thanks,
    Greg

    Ok. I thought it was but just checking. Then I guess I have an issue with my procedure below. It doesn't appear to be looking at the v_statuslist as it is empty each time.
    CREATE OR REPLACE PROCEDURE USP_REPORTAUDITMETRICDEF(
         v_apprid IN PM_MetricDefData.M_ApprId%TYPE,
         v_startdate IN PM_MetricDefData.AsOfDate%TYPE := NULL,
         v_enddate IN PM_MetricDefData.AsOfDate%TYPE := NULL,
         v_bshowpending IN NUMBER,
         v_bshowapproved IN NUMBER,
         v_bshowrejected IN NUMBER,
         v_bshowprocessed IN NUMBER,
    cv_results OUT SYS_REFCURSOR)
    IS
         v_sql VARCHAR2(2000);
         v_statuslist VARCHAR2(20) := '';
         v_code VARCHAR2(10);
         v_parentid NUMBER;
    BEGIN
         Select M_Code, M_ParentId into v_code, v_parentid From PM_MetricDefApproved
         Where M_ApprId = v_apprid;
         if v_parentid = 0 then
              /* Select parent metric snapshot records */
              v_sql := 'Select MDS.M_Title, MDS.M_Code, MDS.M_Desig, MDS.M_Desc, MDS.M_SuggChgs, MDS.M_Remarks, '
                   || 'NVL(LV.ValueDesc, '''') as TypeDesc, MDS.M_ParentId, NVL(LV5.ValueDesc, '''') as UnitDesc, '
                   || 'LV6.ValueDesc as M_Compare, MDS.M_AllowDataEntry, MDS.M_VisiblePublic, '
                   || 'MDS.M_Weight, NVL(LV2.ValueDesc,'''') as AreaValueDesc, '
                   || 'MDS.M_ParaNum, MDS.M_Obj, MDS.M_Thresh, MDS.M_PWSNum, MDS.M_UpperDataLimit, MDS.M_LowerDataLimit, '
                   || 'NVL(LV3.ValueDesc,'''') as RptFreqValueDesc, NVL(LV4.ValueDesc,'''') as ColFreqValueDesc, '
                   || 'MDS.M_RptProcess, MDS.M_RptMethod, '
                   || 'MDS.PS_Level1, MDS.PS_Level2, MDS.PS_Level3, MDS.PS_Level4, MDS.PS_Level5, '
                   || 'MDS.AF_Level1, MDS.AF_Level2, MDS.AF_Level3, MDS.AF_Level4, MDS.AF_Level5, '
                   || 'AC.ApprovalDesc, '
                   || 'MDS.M_CreateDate, NVL(UL.UserName,''<unknown>'') as CreatedUserName '
                   || 'From PM_MetricDefSnapshots MDS, '
                   || 'PM_ApprovalCodes AC, '
                   || 'PM_LookupValues LV6, '
                   || 'PM_MetricDefApproved MDA, '
                   || 'PM_UserLookup UL, '
                   || 'PM_LookupValues LV, '
                   || 'PM_LookupValues LV2, '
                   || 'PM_LookupValues LV3, '
                   || 'PM_LookupValues LV4, '
                   || 'PM_LookupValues LV5 '
                   || 'Where MDS.M_ApprStatus=AC.ApprovalId '
                   || 'and MDS.M_CompareValueId=LV6.ValueId '
                   || 'and MDS.M_LinkApprId=MDA.M_ApprId(+) '
                   || 'and MDS.M_CreateUserId=UL.UserCAMID(+) '
                   || 'and MDS.M_TypeValueId=LV.ValueId(+) '
                   || 'and MDS.M_AreaValueId=LV2.ValueId(+) '
                   || 'and MDS.M_RptFreqValueId=LV3.ValueId(+) '
                   || 'and MDS.M_ColFreqValueId=LV4.ValueId(+) '
                   || 'and MDS.M_PSUnitValueId=LV5.ValueId(+) '
                   || 'and MDS.M_Code = :code ';
         else
              /* Select child metric snapshot records */
              v_sql := 'Select MDS.M_Title, MDS.M_Code, MDAP.M_Desig, MDAP.M_Desc, MDAP.M_SuggChgs, MDAP.M_Remarks, '
                   || 'NVL(LV.ValueDesc, '''') as TypeDesc, MDS.M_ParentId, NVL(LV5.ValueDesc, '''') as UnitDesc, '
                   || 'LV6.ValueDesc as M_Compare, MDS.M_AllowDataEntry, MDS.M_VisiblePublic, '
                   || 'MDS.M_Weight, NVL(LV2.ValueDesc,'''') as AreaValueDesc, '
                   || 'MDAP.M_ParaNum, MDAP.M_Obj, MDAP.M_Thresh, MDAP.M_PWSNum, MDS.M_UpperDataLimit, MDS.M_LowerDataLimit, '
                   || 'NVL(LV3.ValueDesc,'''') as RptFreqValueDesc, NVL(LV4.ValueDesc,'''') as ColFreqValueDesc, '
                   || 'MDAP.M_RptProcess, MDAP.M_RptMethod, '
                   || 'MDAP.PS_Level1, MDAP.PS_Level2, MDAP.PS_Level3, MDAP.PS_Level4, MDAP.PS_Level5, '
                   || 'MDAP.AF_Level1, MDAP.AF_Level2, MDAP.AF_Level3, MDAP.AF_Level4, MDAP.AF_Level5, '
                   || 'AC.ApprovalDesc, '
                   || 'MDS.M_CreateDate, NVL(UL.UserName,''<unknown>'') as CreatedUserName '
                   || 'From PM_MetricDefSnapshots MDS, '
                   || 'PM_MetricDefApproved MDAP, '
                   || 'PM_ApprovalCodes AC, '
                   || 'PM_LookupValues LV6, '
                   || 'PM_UserLookup UL, '
                   || 'PM_LookupValues LV, '
                   || 'PM_LookupValues LV2, '
                   || 'PM_LookupValues LV3, '
                   || 'PM_LookupValues LV4, '
                   || 'PM_LookupValues LV5 '
                   || 'Where MDS.M_ParentId=MDAP.M_ApprId '
                   || 'and MDS.M_ApprStatus=AC.ApprovalId '
                   || 'and MDAP.M_CompareValueId=LV6.ValueId '
                   || 'and MDS.M_CreateUserId=UL.UserCAMID(+) '
                   || 'and MDS.M_TypeValueId=LV.ValueId(+) '
                   || 'and MDAP.M_AreaValueId=LV2.ValueId(+) '
                   || 'and MDAP.M_RptFreqValueId=LV3.ValueId(+) '
                   || 'and MDAP.M_ColFreqValueId=LV4.ValueId(+) '
                   || 'and MDAP.M_PSUnitValueId=LV5.ValueId(+) '
                   || 'and MDS.M_Code = :code ';
         end if;
         /* if date range was specified, add it to where clause */
         if v_startdate is not null then
              v_sql := v_sql || 'and MDS.M_CreateDate Between :startdate and :enddate ';
         end if;
         /* Determine what status to retrieve */
         if v_bshowpending = 1 then
              v_statuslist := v_statuslist || '0,';
         end if;
         if v_bshowapproved = 1 then
              v_statuslist := v_statuslist || '1,';
         end if;
         if v_bshowrejected = 1 then
              v_statuslist := v_statuslist || '2,';
         end if;
         if v_bshowprocessed = 1 then
              v_statuslist := v_statuslist || '3,';
         end if;
         if substr(v_statuslist, length(v_statuslist)-1,1) = ',' then
              v_statuslist := substr(v_statuslist,1,length(v_statuslist)-1);
         end if;
         if v_statuslist <> '' then
              v_sql := v_sql || ' and MDS.M_ApprStatus in (' || v_statuslist || ')';
         end if;
         v_sql := v_sql || ' Order By MDS.M_CreateDate Desc';
         if v_startdate is not null then
              OPEN cv_results FOR v_sql
                   using v_code,
                        v_startdate,
                        v_enddate;
         else
              OPEN cv_results FOR v_sql
                   using v_code;
         end if;
    END;
    /

  • Query executes more than once

    Hello All,
    We have crystal reports integrated in the java web application. Reports with parameters are executing query more than once (found in the SQL Server Profiler).
    Scenario:
    Report query with parameter :- select * from cieuser where id >= {?userId}.
    User provides value '1' to this parameter and selects report execution.
    Before executing the report, our system updates the database connection details of the rpt with other configured details.
    Issues:
    During updating of the database details on execution of statement "databaseController.setTableLocation(orig.getTable(i), table);" , the profiler shows:
    select * from cieuser where id >=  NULL
    And on executon of the statement "viewer.processHttpRequest(request, response, getServletConfig()
                  .getServletContext(), null);" the profiler shows the following:
    select * from cieuser where id >= {?userId}
    select * from cieuser where id >= 1
    select * from cieuser where id >= 1
    When the same report is executed from the standalone crystal designer, the profiler shows one time query execution:
    select * from cieuser where id >= 1
    Environment:
    Crystal reports designer - 11.5.10.1263
    JRC - 11.5
    Please advise.
    Thanks,
    Ratan.

    Hello,
    SAP decided to allow the confirmation of orders with a final confirmation (status CNF) deliberately. So it is possible to confirm work that was maybe forgotten or if the flag 'final confirmation' was set mistakenly. Only the status CLSD will prevent further confirmations.
    If you want forbid further confirmations of  orders with status CNF you can use enhancements CONFPM* or BAdI WORKORDER_CONFIRM. However, the probably easiest way is to define a user status that is set at business transaction 'Confirm order' and, once set, forbid business transaction 'Confirm order'.
    Regards,
    Reinhard

  • Calling thread.start() more than once concurrently

    Hi, I got a simple doubt that may feel awkward or absurd to people who are well versed in the java threading concepts. I just thought of it and as I couldn't get an easy answer I am posting this.
    Consider a class that implements the runnable interface. The run() method of the class is implemented with just a System.out.println(). If I make an instance of this class, say 't' in the main method and calling t.start() susequently twice or thrice; an illegal ThreadStateException will be thrown. The code snippet is as follows:
    ThreadTest t = new ThreadTest();
    t.start();
    t.start();
    It is understood that state of the thread object is changed to run state and so, if it is again started, it must be thrown. So if I put a Thread.sleep() inbetween these two subsequent calls assuming that the main method thread will be sleeping. So there is sufficient time for the first thread to terminate and then only the second will start - still the same exception is being thrown. I tried putting the synchronized qualifier for run too, still no effect - the same only happening. Why the java thread object is made in such a way that once the thread changes it state from Runnable to Running and then finally to dead state, it can be restated back to Runnable state, such that the start() method can be called again. Is it possible or not? Please post your comments.

    As ejp says you can't start a thread more than once - even if it has already terminated after the first start.
    By making threads a one-shot it simplifies reasoning about them: you don't have to wonder whether a second start() will work or not, depending on whether the thread has completed its first "incarnation". It also makes it easier to ensure thread resources are reclaimed. It also avoids semantic issues like whether anything about the thread is "carried over" across incarnations.
    This might seem a limitation but there are many ways around it - simply don't let the thread terminate. Whatever control structure you would enforce by re-starting the thread can be emulated without letting the thread terminate in between "executions".

Maybe you are looking for

  • Advice on animating lots of small movie clips

    Hi, I have a performance problem that may be best demonstrated with an example. http://www.b3ta.cr3ation.co.uk/data/swf/game1.swf If you look at the animation and watch it for a while you will see the number of balls growing. Initially the performanc

  • HT1040 Does anyone know what this error means?

    I keep trying to order a book and it won't let me because it always says there was an error uploading! Thanks! Error(when trying to preview book) "The operation couldn't be completed. (com.apple.chameleon.pdfGenerate error 1." Thank you!

  • All dashboard items work except stocks? Worked until Lion!

    After installing Lion, the stock portfolio on the dashboard doesn't work.  All other items work fine.  Help!

  • How to use no wait in adf

    hi jdev experts, am using jdev 11.1.1.5.0 - adfbc-oracle db10g. here my code. SELECT GlLvlAccountsEO.GLAL_BU,        GlLvlAccountsEO.GLAL_LVL1,        GlLvlAccountsEO.GLAL_LVL2,        GlLvlAccountsEO.GLAL_LVL3,        GlLvlAccountsEO.GLAL_LVL4,     

  • [CS3][JS] everyItem() and getElements()

    I am trying to work out how everyItem() and getElements() work. In the following snippet I'm trying to get the top margin of every page to change, without using a loop. (I realise I could do this with masterpages, but that isn't the point of this exe