Default Logic Script, Appears to Run when It should not

Hello Experts,
I need help with something.  When using a Logic Script within the Default Logic in BPC, It runs everytime data is submitted.   I have one logic script that copies a "Full-year" value input to each month.  See below.  So WHEN AuditTrail CC_FY is changed, it copies the value divided by 12 to each month and Audittrail CC.  This works correctly.  However, an issue came up that when a user wants to change the monthly Value, it defaults back to the value written by the CC_FY Logic Script.  I think the Logic script is running again after the user makes a change.  Below is the Logic Script and some other screen shots.
CC_FY.LGF (Also inside DEFAULT>LGF)
*XDIM_MEMBERSET AUDITTRAIL = CC_FY
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET RCOST_CENTER = RCCA_NONE
*XDIM_MEMBERSET TIME = 2015.12
*XDIM_MEMBERSET COST_CENTER = %COST_CENTER_SET%
*XDIM_MEMBERSET ACCOUNT = %ACCOUNT_SET%
*WHEN AUDITTRAIL
*IS CC_FY
*WHEN TIME
*is 2015.12
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.01", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.02", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.03", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.04", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.05", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.06", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.07", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.08", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.09", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.10", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.11", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.12", AUDITTRAIL = "CC")
*ENDWHEN
*ENDWHEN
For Example, I enter $12,000 into December, CC_FY, it puts $1,000 into each month for CC correctly
So then I try to Change January to $250, Save Data
The Value then Returns to $1000.  I think its because the CC_FY.LGF is running again, but it shouldn't because there was no Change to the CC_FY AuditTrail Dimension.  On the Backend, you can see the changes, and also the reversal of the change, leaving the starting amount $1000.
What am I missing?!   Thank you for any input.
Sean

The script have to be something like:
*WHEN RPTCURRENCY
*IS LC
*WHEN RCOST_CENTER
*IS RCCA_NONE
*WHEN AUDITTRAIL
*IS CC_FY
*WHEN TIME
*is 2015.12
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.01", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.02", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.03", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.04", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.05", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.06", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.07", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.08", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.09", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.10", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.11", AUDITTRAIL = "CC")
*REC(EXPRESSION=%VALUE%/12, TIME = "2015.12", AUDITTRAIL = "CC")
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
Without any *XDIM_MEMBERSET!
Vadim

Similar Messages

  • Problem with cascading dependent LOV query running when it should not

    I have a page fragment with a regular ADF form on it that I use to add new entries to a table. This form has many fields on it with LOV’s associated with them. I have dependent LOV’s on some of them. The one case I have is I have three fields A, B, and C. Field C is dependent on A and B. The problem I seem to be having is when I enter a value for field A using it’s LOV, I get an hourglass for a long time after I select it and before it is displayed on the form. If I delete field C from the form the problem goes away. If I change the query behind the view for the LOV for field C to include a rownum < 20 in the where clause the problem goes away. My question is, why would the selection of a value for field A cause the query to fire for field C’s LOV view and how can I stop it. I don’t really want to use the rownum in the where clause.

    i had lot of question?
    The problem I seem to be having is when I enter a value for field A using it’s LOV, I get an hourglass for a long time
    ok. are using? any complex query to pick the lov 'a' .
    Answer: The LOV for A is based on a read only non-EO view with a SQL that is not really very complex. The LOV definition does set multiple values when the selection is made to blank out dependent fields in the data model used by the main form.
    after I select it and before it is displayed on the form.
    here i cant undestud?
    Answer. The order of things is I open the main form, I click the mag glass to open the LOV popup, I select the row I want and click the OK button. Navigation returns to the main form where I get the hourglass waiting for the selected value to be displayed in the field on the main form.
    If I delete field C from the form the problem goes away. If I change the query behind the view for the LOV for field C to include a rownum < 20 in the where clause the problem goes away.
    ok.
    why are you going to delete the value of c?. At intial stage you can make empty after selecting a and/or b you can load into c.
    Answer: I physically deleted field C from the main form to see if that was what was causing the long delay. When I run the main form without field C I do not get the hourglass. That is how I know they are related.
    My question is, why would the selection of a value for field A cause the query to fire for field C’s LOV view and how can I stop it.
    you may set partial trigger to c depends for 'a'.
    or else lov 'c' query depends on 'a'
    Answer. The query for C's LOV does depend on the value returned when I select a value for A. They are cascading LOV's. Will setting the partial trigger stop the SQL for field C from running? Is the SQL running because I'm blanking out field C when I change the value for field A?
    am not sure i understud correctly. can you pictuarize you problem with an example.

  • Just bought the iphone,battery dies within a day.anyway to get the apps not to run when i am not using them?

    just bought my iphone, and the battery dies within one day.  Is there anyway to get the apps not to run when i am not using them to save my battery

    Yeah. Double tap the home button and the screen will shift upwards to show all your running apps. Just press and hold one until they start 'wiggling' then press the 'no entry' like sign that appears in the top left corner of the apps. That'll close them and release the memory and resources they're taking up

  • When I try to open up firefox it just starts blinking like mad, then say's firfox is already running when it's not. I have tried uninstalling and reinstalling and it did not work. I can open internet explorer

    when I start Firefox, it just blinks like crazy and won't do anything. I have gotten a message reading that Firefox is already running. internet explorer still is working
    == This happened ==
    Every time Firefox opened
    == a few days ago. Can't remember if it started before or after I deleted macafee and added norton or not

    I have this problem too: when I have used and shut down FF and then try to start it again, I get the message that FF is still running, while it's not. Using Windows task manager, I can see that the process is in fact still running. In order to startup startup FF again, I have to end this process manually. This problem is really annoying since I open and close FF several times a day. I run Windows 7.

  • Some words end up being underscored when they should not be

    I end up with some words dbl underscored at a site when using fire fox and they should not be
    == This happened ==
    Every time Firefox opened
    == since i installed ff on here

    Those are usually IntelliTxt type links.
    See http://en.wikipedia.org/wiki/IntelliTXT
    You can look at Adblock Plus: https://addons.mozilla.org/firefox/addon/1865
    You need to subscribe to a ''Filter list'' (e.g. the ''EasyList''): http://adblockplus.org/en/subscriptions
    Adblock Plus forum: https://adblockplus.org/forum/

  • Help with PS script that gets run when an event ID is triggered.

    Hello,
    I've had some great help from Mike Laughlin on this forum on creating a simple PS script that can email me when a particular event id is seen on a server.
    Here it is:
    $serverName = $env:COMPUTERNAME
    Send-MailMessage -to [email protected] -Subject "$serverName - Low on Virtual Memory" -body "$serverName
    - low on virtual memory" -smtpserver smtp.gb.local -from [email protected]
    What I want to add is the event id to in the email too so we can get more information, is this possible?

    Here are some suggestions:
    Here is a defined trigger for security event ID 5156.  It is good for learning because it happens frequently.
    <Triggers>
    <EventTrigger>
    <Enabled>true</Enabled>
    <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=5156]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
    <ValueQueries>
    <Value name="Application">Event/EventData/Data[@Name='Application']</Value>
    <Value name="DestAddress">Event/EventData/Data[@Name='DestAddress']</Value>
    <Value name="DestPort">Event/EventData/Data[@Name='DestPort']</Value>
    <Value name="SourceAddress">Event/EventData/Data[@Name='SourceAddress']</Value>
    <Value name="SourcePort">Event/EventData/Data[@Name='SourcePort']</Value>
    <Value name="TimeCreated">Event/System/TimeCreated/@SystemTime</Value>
    </ValueQueries>
    </EventTrigger>
    </Triggers>
    The ValueQuery defines the path to the values in the event data.
    Here is how we pass the data to the command usingnamed parameters:
    <Actions Context="Author">
    <Exec>
    <Command>powershell</Command>
    <Arguments>
    -file test5156.ps1
    -Application $(Application)
    -SourceAddress $(SourceAddress)
    -SourcePort $(SourcePort)
    -DestAddress $(DestAddress)
    -DestPort $(DestPort)
    -TimeCreated $(TimeCreated)
    </Arguments>
    <WorkingDirectory>c:\test</WorkingDirectory>
    </Exec>
    </Actions>
    Notice that I do NOT use single quotes and have formatted the XML so it is easy to edit.
    The line breaks are not preserved by the XML when passed and the extra space is unimportant.
    Here is the test script that displays the passed arguments.
    Param(
    $Application,
    $SourceAddress,
    $SourcePort,
    $DestAddress,
    $DestPort,
    $TimeCreated
    '[{0:hh:mm:ss}] {1}' -f [datetime]::Now,'New Event 5156' | Out-file c:\test\testel.log -append
    $p=@{
    Application=$Application
    SourceAddress=$SourceAddress
    SourcePort=$SourcePort
    DestAddress=$DestAddress
    DestPort=$DestPort
    TimeCreated=$TimeCreated
    $parms=New-Object PsObject -Property $P
    $parms |Format-List |Out-String | Out-file c:\test\testel.log -append
    Each event ID can have very different data structures  thei si what the 5256 class o structures looks like:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
    <EventID>5156</EventID>
    <Version>1</Version>
    <Level>0</Level>
    <Task>12810</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-18T16:51:12.152331100Z" />
    <EventRecordID>34783304</EventRecordID>
    <Correlation />
    <Execution ProcessID="4" ThreadID="3656" />
    <Channel>Security</Channel>
    <Computer>W8Test</Computer>
    <Security />
    </System>
    <EventData>
    <Data Name="ProcessID">2608</Data>
    <Data Name="Application">\device\harddiskvolume4\windows\system32\svchost.exe</Data>
    <Data Name="Direction">%%14592</Data>
    <Data Name="SourceAddress">239.255.255.250</Data>
    <Data Name="SourcePort">1900</Data>
    <Data Name="DestAddress">192.168.1.106</Data>
    <Data Name="DestPort">2232</Data>
    <Data Name="Protocol">17</Data>
    <Data Name="FilterRTID">275543</Data>
    <Data Name="LayerName">%%14610</Data>
    <Data Name="LayerRTID">44</Data>
    <Data Name="RemoteUserID">S-1-0-0</Data>
    <Data Name="RemoteMachineID">S-1-0-0</Data>
    </EventData>
    </Event>
    Note how the mappingis done from event data name and argument then to PowerSHell Parameter name.
    EVENT DATA: <Data Name="SourceAddress">239.255.255.250</Data>
    ValueQuery:   <Value name="SourceAddress">Event/EventData/Data[@Name=SourceAddress]</Value>
    TRIGGER COMMAND:
           <Arguments>
                 -file test5156.ps1
                 -SourceAddress $(SourceAddress) 
    SCRIPT PARAMS:
         Param(
             $SourceAddress,
    ¯\_(ツ)_/¯

  • Default Activity changing when it should not

    We have a problem where if I use a general task list with 2 operations and both have a seperate activity type assigned, when creating a new SM order we pull the Tasklist into the order but we change the default work centre, this change in default work centre causes the default activity type on the first operation to change to the same default activity type as the one on the second operation which is undesired.
    However it is inconsistent when this happens has anyone seen this before or does anyone know if there is an OSS creection for this problem, although I suspect it may be data setup related.
    thanks

    The script have to be something like:
    *WHEN RPTCURRENCY
    *IS LC
    *WHEN RCOST_CENTER
    *IS RCCA_NONE
    *WHEN AUDITTRAIL
    *IS CC_FY
    *WHEN TIME
    *is 2015.12
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.01", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.02", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.03", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.04", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.05", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.06", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.07", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.08", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.09", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.10", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.11", AUDITTRAIL = "CC")
    *REC(EXPRESSION=%VALUE%/12, TIME = "2015.12", AUDITTRAIL = "CC")
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    Without any *XDIM_MEMBERSET!
    Vadim

  • Fire fox will not open and give the message that program is already running when it is not and i have to restart my computer. i am running windows xp and this problem started after the last up date. i have tried uninstalling and reinstalling the program

    is this a known issue?

    If you close Firefox properly the problem will practically disappear.
    To close Firefox properly:
    :<b>Closing Firefox</b> ''(#close_firefox)'', avoid getting <b>Firefox already running</b> messages:&nbsp; To properly shutdown Firefox when multiple windows or closing the
    last window use File → Exit/Quit (or Firefox button → Exit).&nbsp; Closing Firefox with the [X] in the upper right corner closes the window ("Ctrl+W") but that does not necessarily close Firefox if it has subtasks running.&nbsp; If you want to close and reopen Firefox use the "Restart" within Add-ons if you made a change requiring a restart, or install "[https://addons.mozilla.org/en-US/firefox/addon/restartless-restart/ Restartless Restart]" ("Ctrl+Alt+R") which will allow you to take Firefox down and restart without having to check the Windows Task Manager to see if Firefox first actually ended. ([http://kb.mozillazine.org/Firefox_hangs Firefox hangs])
    In checking the Windows Task Manager be sure to check the "Process" tab not the "Application"tab/

  • Why doesn't my interrupt routine run when it should?

    I'm performing continuous buffered analog input using a DAQ occurrence 1 (after every N scans) to read the buffer. I also use every other occurrence to time one reading from the DAQ-STC counter. Both the array from the analog buffer and the counter reading are then queued for reading in my display routine. If the user doesn't interact with the display window, the data acquisition and display routines work fine. However, if there is activity (movement of the display window or scale changes on the displayed graph, e.g.) the Wait on DAQ Occurrence vi in the data acquisition routine does not wake up and run in time to read the counter when it must (at the end of every other N analog readings) resulting in bad counter da
    ta. I have tried running the data acquisition routine and the display routine in the same and different threads and I have tried giving the highest priority to the data acquisition routine, but the problem persists. This is not a matter of microseconds. The counter is supposed to be read every 40 milliseconds and can be read properly for about 20 milliseconds. Is there any way to guarantee a Wait on DAQ occurrence handler will wake up and run within this time frame? I cannot use buffered counter measurements because there are glitches in the gate signal that would cause erroneous readings to be taken.

    For this reason, DAQ Events can be unreliable compared to buffered acquisitions. Simply put, if another DAQ event is flagged before your program finishes handling the previous event, you might miss the next event. It sounds like you are close to the threshold as user interface interaction causes just enough of a delay. You may have too much code in your event handler.
    Russell

  • On certain sites, I don't get the option to "view" only to "save". Also, Firefox says that I have to close Firefox that is already running when this is not true. I then have to restart my computer

    When I've closed Firefox and want to re-open it in the same session, I get a message that I have to close an open Firefox window before being able to use Firefox again. There is nothing to close.
    == This happened ==
    A few times a week
    == many months ago

    See http://kb.mozillazine.org/Firefox_hangs and [[Firefox hangs]] (Hang at exit

  • Firefox won't start, dialog says "firefox is already running" when it is not! There are no apps shown in the Task mangler, what gives?

    This occurs on two different machines, one XP and one Win 7. I seems to occur when I close Firefox with a search or load in progress. There are no applications shown in the task manager, so there must be a process still finishing up. What would the process name be? I can wait several minutes usually and the problem goes away and Firefox will restart, but if I knew the process name I could kill it and restart Firefox.

    It used 2 happen 2 me a lot, as well, on the old PC. The new one handles it pretty much instantaneously; & also, it won't be under the Applications tab in teh mangler (hehe), but under the Processes 1 probably as firefox.exe

  • Ctd's randomly; used to say it was running when it was not, but now will not even open.

    have been using firefox for at least 2 years. only recently[past 2-3 months] has it become fatally ill. closes with absolute randomness. does not ask if i want to report anything.
    and now, the program will not open. no message. no report.
    just no open!

    Several things to try:
    When you signed in with your new apple id, did you select "create new" or "use existing"? Sounds like you may have selected create new because you are having to select your country. It should be use existing because you've already created a new apple id and you want to use that existing one.
    If that's not it:
    Did you restart itunes on your phone? Double tap on your home button, tap on the circled x at the top left of itunes store icon, tap on home button, tap on itunes store again.
    And, if all else fails:
    In general, problems with iTunes account (apple id) should be resolved by iTunes. Go to http://www.apple.com/support/itunes/ and see if items under account and billing can help you or, if nothing there fits, click on the contact us near the bottom left.
    Good luck

  • Can't install - says it is running when it is not

    I can't install this because the install process give an error as follows: (approx)
    Adobe Reader for Palm OS is running. Shut it down and rerun the install program
    I installed everything adobe and task manager does not show anything from Adobe running on the machine. it is an XP SP2 machine and the install code was copied from Adobe. Also rebooted a couple of times
    What's throwing the error? How can I get around it?

    i am having a problem downloading the adobe reader. i'm not sure why

  • ITunes library cannot load from NAS - Asking password when it should not...

    Hi all,
    I just updated from Windows 8 to Windows 8.1, worst idea ever. Tons of problems appeared including this really strange one.
    iTunes, for a reason or another, decided to reset my library path, which mean all my songs have the "!" symbol in front, saying iTunes cannot find it. So I went in the preference menu to change it back to what it was (it was on the default folder now). My library was running from my NAS drive, using the "Z" letter on my computer. When I click on the button to change the library folder and select my NAS (it appear in the "Network" field), it ask for a password. Still, there is no password on the NAS, and I have no problems opening the NAS from the network menu BUT from the itunes options...
    I tried using my NAS admin account (didnt work), windows account (didnt work), admin admin (didnt work).
    What is the most frustrating is that I can go see the files and play them from the NAS on my computer, it's just itunes that is completly broken for no reason...
    Is there AT LEAST a way to force itunes to change the folder from a file or something?
    Thanks a lot for the help in advance guys.
    PS: Really, this is the last time. If I loose my library I will never use itunes again... I'll find any crappy program that can surely not do better, but at least work...

    try double clicking a song with a !
    in the resulting pop up hit locate
    browse to the location of the song and select it
    in the next pop up tell it yes to use the location of that song to find other items

  • Toplink - JPA ignores lazy fetchtype , when it should NOT

    I'm using Blaze Data Services (The open sourced component of LiveCycle Data Service) , as well as Spring.
    Basically, I have concluded that even while closing the entity manager within the DAO, calls to get a collection on an object after the service layer has returned result in toplink trying to find the objects, vs finding null (or indirect list).
    This is only supposed to happen while the Entity Manager is open, correct?
    Here's a basic overview of my model
    public class Store {
    // ManyToMany
    // Lazy
    Collection<Catalog> catalogs;
    public class Catalog {
    // many to many
    // lazy
    Collection<Category> categories;
    public class Category {
    // many to many
    // lazy
    Collection<Product> products;
    public class Product {
    // here's the kicker
    Collection<Category> categories; // the categories this product is in
    I run into major problems when BlazeDS begins to serialize the beans, in that my lazy mappings are ignored, and tons of SQL statements begin to fire. In fact, the cyclic relationships cause the parent objects to be built as children of their children, for instance, a Product causes Categories to be built yet again, then Products, and it results in a heap space overflow.
    Basically, the only way I was able to work was by removing the mappings entirely.
    If I'm going to do this, I may as well not even use toplink. :-/
    Thanks in advance for any help!

    Also, the relationships I am talking about are not OnetoOne, or ManyToOne. I am not using toplink-agent, but the relationships I am having problems with are ManyToMany.
    DAO Method
    ....public Collection<Store> findAll()
    ........EntityManager em = emf.createEntityManager();
    ........try
    ............Query query = em.createNamedQuery("findStores");
    ............return query.getResultList();
    ........finally
    ............em.close();
    Bean definition
    @Entity
    public class Store implements Serializable
    ....@Id
    ....@GeneratedValue(strategy=GenerationType.SEQUENCE,
    ........................generator="mySeq")
    ....@SequenceGenerator(name="mySeq",
    ........................sequenceName="my_SEQ",
    ........................allocationSize=1)
    ....private long id;
    ....@Column(name="DESCRIPTION")
    ....private String description;
    ....@Column(name="SHORT_DESCRIPTION")
    ....private String shortDescription;
    ....@Column(name="LAST_UPDATE_USER")
    ....private String lastUpdateUser;
    ....@Embedded
    ....private TriggerAttributes triggerAttributes;
    ....@Column(name="NAME")
    ....private String name;
    ....@ManyToMany(fetch = FetchType.LAZY)
    ....@JoinTable(name="STORECATALOG",
    ................joinColumns = @JoinColumn(name = "STORE_UID"),
    ................inverseJoinColumns={@JoinColumn(name="CATALOG_UID")})
    ....private Collection<Catalog> catalogCollection;

Maybe you are looking for