Bpc : problem with batch logic setting

Hi,
  I am using bpc 7.0 MS version 7.0.112.
  i am trying to run a customized DM package. in test6.lgf, i have the following codes (thanks to Tim):
*SELECT(%UsersChoiceTimeID%,[TimeID],[TIME],"[ID]='%TIME_SET%'")
*SELECT(%UsersChoiceYEAR%,[Year],[TIME],"[ID]='%TIME_SET%'")
*XDIM_MEMBERSET TIME = %UsersChoiceYEAR%.JAN,%UsersChoiceYEAR%.DEC
*xdim_memberset account=extsales
*CALC_EACH_PERIOD
*When TIME.TIMEID
*IS < %UsersChoiceTimeID%
  *rec(factor=2,account="icsales")
*IS %UsersChoiceTimeID%
  *rec(factor=3,account="icsales")
*IS > %UsersChoiceTimeID%
  *rec(factor=4,account="icsales")
*ENDWHEN
  when i tried to VALIDATE and SAVE the above lgf, i got the error message "invalid object name 'mbr'. in select [TIMEID] from mbr[TIME] where [ID]='%TIME_SET%'
  hence i just SAVED this test6.lgf.
  then i created a customized DM package using the normal method, and have it pointing at test6.lgf, when i tried to run this package, i got an error "invalid object name 'mbr'. in select [TIMEID] from mbr[TIME] where [ID]='june.2005'
  do note that i entered category:actual, entity:salesfrance, time:2005.june when prompted.
  in my input schedule, i have previously entered values for category:actual, entity:salesfrance, time:2005.jan - 2005.dec
  any idea how i can rectify this? i am trying to simulate a situation where *select can only be validated and run using a DM package.
  thanks in advance

Thanks for the response, JettR.
You have correctly described the problem I'm having.  Let me clarify a couple points.  As it turns out, it doesn't seem to matter whether I enter and exit the synchronized section using the batch sync steps or if I set the properties of the individual steps to run in "one-thread-only" mode.  It also doesn't seem to matter whether I've assigned names to the synchronized sections or not.  One other thing - it doesn't matter if an error occurred - the problem is an execution terminating...  I typically terminate an execution (continue to clean-up) if an error occurs, but this can also be reproduced by manually terminating the execution.  Also, the problem is more than just the terminated execution running the synchronized section before the other executions are ready - the section is actually executed twice.  (Once by the terminated execution, and once by the next execution in line.)
In short, I seems like one potential work-around would be to add some additional code to jump past the cleanup sync section if 1) the execution is terminating and 2) it isn't the only execution running.  But it seems like there should be a better way than that.
I've attached a simple sequence that can be used to reproduce the problem.  If you run it without terminating any threads, everything will behave as expected.  But if you terminate an execution while in the delay in the Main step group, you should see the one-thread-only synchronized step in the cleanup group (a TestStand dialog) get displayed twice.
Let me know if you have any questions.  Thanks.
Attachments:
BatchSyncIssue.seq ‏32 KB

Similar Messages

  • Problem with looping logic

    Hello all,
    Ok reposted using code tags, sorry about that.
    I'm trying to write some code to take in a 2D int array, loop through the array to identify where certain blocks of numbers begin and record that location so that I an jump straight to it at a later time. The number blocks go up iteratively from a point from 0 to 9 and are surrounded by nodata values(-9999).
    The problem is that when I print out the numbers they are only being recognised up to 6 (7th number) and when I check the locations against the original text file they dont match. I think it's just a problem with my logic but I'm not sure why.
    The text file is converted to ints and placed in an array from a buffered file reader in a seperate class. I can put this up if needed.
    Any help would be much appreciated.
    Thanks.
    Duncan
    *  Class imports text file which contains a collection of values, either nodata(-9999) or a location
    *  represented by numbers moving away from a point; 0 closest then 1, then 2 etc.
    *  records the first location of each number to avoid having to loop through the whole file each time.
    *  i.e. can later jump straight to the first recorded location of each number.
    *  In current text file there are 10 numbers(0 - 9) but for some reason it stops finding them after
    *  6(seventh no.) and having checked the location values against the original text file these are wrong
    *  by a fair way as well.
    import java.io.*;
    //import java.awt.*;
    //import java.awt.event.*;
    public class Hydrograph {
         int width = 0;
         int height = 0;
         int dZeroC, dZeroD = 0;
         int dOneC, dOneD = 0;
         int dTwoC, dTwoD = 0;
         int dThreeC, dThreeD = 0;
         int dFourC, dFourD = 0;
         int dFiveC, dFiveD = 0;
         int dSixC, dSixD = 0;
         int dSevenC, dSevenD = 0;
         int dEightC, dEightD = 0;
         int dNineC, dNineD = 0;
         public Hydrograph() {
              /* Ignore this bit it's being used for something else
              //File file = new File("c:/Users/Duncan/Documents/MODULES/MSc Dissertation/Code/A1.txt");
              //File file = new File("M:/java/code/A1.txt");
              ArrayRead ar = null;
              ar = new ArrayRead(file);
              int rows = ar.getRows();
              int columns = ar.getColumns();
              int steps = ar.getSteps();
              int[][][] threeDIntArray = ar.getThreeDIntArray();
              // Creates a new instance of delay class which takes in a text file and converts
              // it to int form, placing it into a 2D int array.
              Delay dLay = null;
              dLay = new Delay();
              width = dLay.getWidth();
              height = dLay.getHeight();
              int[][] twoDDelayFile = dLay.getTwoDintArray();
              int delayCount = 0;
              // Loops through 2D int array to identify when number first equals 0, then passes
              // the height and width values to storeDelayPos method below. Then finds for 1, 2
              // 3, 4,...etc by adding 1 to delayCount.
              System.out.println(" ");
              for (int a=0; a<width; a++) {
                   for (int b=0; b<height; b++) {
                        if (twoDDelayFile[a] == delayCount) {
                             int c, d = 0;
                             c = a;
                             d = b;
                             storeDelayPos(c, d, delayCount);
                             System.out.println(delayCount);
                             delayCount++;
                             break;
                   //System.out.println(" ");
              System.out.println(" ");
              System.out.print(dZeroC + " " + dZeroD);
              System.out.println(" ");
              System.out.print(dOneC + " " + dOneD);
              System.out.println(" ");
              System.out.print(dTwoC + " " + dTwoD);
              System.out.println(" ");
              System.out.print(dThreeC + " " + dThreeD);
              System.out.println(" ");
              System.out.print(dFourC + " " + dFourD);
              System.out.println(" ");
              System.out.print(dFiveC + " " + dFiveD);
              System.out.println(" ");
              System.out.print(dSixC + " " + dSixD);
              System.out.println(" ");
              System.out.print(dSevenC + " " + dSevenD);
         // Takes in width, height and delayCount value and sets variables according to
         // the value of delayCount.
         void storeDelayPos (int setC, int setD, int setDCount) {
              int dCount = 0;
              dCount = setDCount;
              switch(dCount) {
                   case 0:
                        dZeroC = setC;
                        dZeroD = setD;
                        break;
                   case 1:
                        dOneC = setC;
                        dOneD = setD;
                        break;
                   case 2:
                        dTwoC = setC;
                        dTwoD = setD;
                        break;
                   case 3:
                        dThreeC = setC;
                        dThreeD = setD;
                        break;
                   case 4:
                        dFourC = setC;
                        dFourD = setD;
                        break;
                   case 5:
                        dFiveC = setC;
                        dFiveD = setD;
                        break;
                   case 6:
                        dSixC = setC;
                        dSixD = setD;
                        break;
                   case 7:
                        dSevenC = setC;
                        dSevenD = setD;
                        break;
                   case 8:
                        dEightC = setC;
                        dEightD = setD;
                        break;
                   case 9:
                        dNineC = setC;
                        dNineD = setD;
                        break;
                   default:
                        System.out.println("OUT OF BOUNDS");
                        break;
         public static void main (String args[]) {
         new Hydrograph();

    Hi,
    I am working on a hydrograph program in java as well... I am trying to represent rainfall data. Do you think that you could share some of the code that you came up with, so that I don't have to go through the whole process.
    thank you so much,
    Kevin

  • Problem with a data set: DIAdem crashes

    Hi,
    I've got a problem with a data set. When I want to zoom in DIAdem-View, DIAdem crashes with the following message (translated from German ;-):
    error type: FLOAT INEXACT RESULT or FLOAT INVALID OPERATION or FLOAT STACK CHECK
    error address: 00016CB8
    module name: gfsview.DLL
    I've got some similar data set not showing such problems. Further on I scanned the data a bit, but in the 59000 points I didn't see anything special. I did try to delete "NOVALUE"s as well, but after that there still exist "NOVALUE"s.
    Does anyone have an idea what to look for?
    Thanks,
    Carsten

    Carsten,
    Could you please upload you Citadel database to the following FTP site:
    ftp.ni.com/incoming
    If you want to compress (ZIP) and/or put a password on the data, that's fine. Please send me a private email at [email protected] (with the file name and password if you put one on the file) once you have uploaded the file and I will check it out.
    Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Fixed a problem with OSX-Logic and a MOTU 828MkII

    I was having problems with my 828MkII using it with a new G5 and OS10.3.9. There were massive drop-outs.
    It was a new computer and everything was installed correctly and cleanly - there was no other hardware installed other than the MOTU, and no other software other than Logic 7 - everything was done properly and tested over and over, but the problem persisted.
    I still had my old G4 with an older OS9 version of Logic, and when I went back to try the MOTU with this set up, it worked flawlessly. This fact made me suspect that the core audio driver was the problem, so I tried all the tricks I've seen in forums - reset the MOTU - uninstalled and re-installed. Upgraded my firmware. Even tried OS10.4 with old drivers new drivers, and still nothing worked.
    Then out of desperation I tried a new firewire cable and everything worked fine.
    I went back and tried the set up on my OS9 machine a few times and the MOTU worked flawlessly under the Asio2 drivers. What I learned is that OSX and core audio must use firewire differently because the cable did not work with that set up.
    I couldn't believe it. It's like finding out that a guitar cable only works with a Les Paul or something wierd like that.
    I'm sure someone out there must know the technical difference and why this cable works fine under OS9 (Asio2) but not OSX (core audio).
    I'm posting this because if I had read such a post - I would have tried a new cable as the first thing - but I had myself convinced that it could not be the cable. I still don't believe it. ! Luckily it was the cheapest fix.
    Scott.

    Same thing happened here when I check all items to install at once.
    After the installation failure , L7,L8,Waveburner .. everything unexpectedly quit then I decided to replace the entire OS to cloned back up.
    I tried the installation again and xxxx happened again. This time, I installed only applications (overwritten) again and it fixed the problem.
    Then I installed only JamPack on FW and went smoothly.
    I called Apple Tech and now I am waiting for the new installer DVDs of Audio contents only by regular mail.
    Hey, do we have similar serial number?? Apple script got damaged or something? I have no idea.

  • Problem with Batch Resizing in CS3

    I have a bunch of .jpeg pictures I want to resize.  I created a new action, I went to File - Automate - Fit Image and set the size to 1920x1080, closed but did not save the image. Then I stopped the action.
    Then I went to File - Automate - Batch and set the Action to my new action, set up the source and destination folders and clicked OK.
    However, after resizing the first picture in the source folder, I get the JPEG quality window opening and when I click ok, it just keeps opening the JPEG quality window after each picture is resized.
    Is there anyway to prevent this jpeg quality window from opening each time, so the action just resizes all the pictures ?  I'm using CS3 Photoshop?
    Thanks in advance,
    John Rich

    That could be a video card problem, so run a check on it.
    If changing drives be sure to deactivate CS3 before doing this (in Help menu).  Then activate once installed on new HD.  Best to do this with disks rather than just file transfer.

  • Problem with batch in outbound delivery

    Hi gurues...I´m newby in SD and I have the followin problem.
    I confirm an outbound delivery that need a batch, without the batch.
    Obviously I can´t post goods receipt, but when i do the shipment,
    it creates the bill but it don´t post goods receipt because it says that i need a batch in the position. How can i do to avoid that the shipment creates the billing without the batch??????..... 

    Jorge,
    Here I am giving you more idea batch determination so that it will be more easy for you to correct the isue as you are new.
    On batch determination, the whole process, how it is determined automatically in the order.
    1)     Normally we use batch determination at delivery level, because at the time of order material may or may not be created. For this material should be configured with batch and batch determination should be checked in sales views of material.
    2)     A2) Batch Determination during order Creation.
    For this you need to maintain Classes d for you Material. Depending on the Manufacturing process you can define the characteristics for your material.
    Ex: Purity for Medicines, Resistance for Electric Items.
    You need to create a class (You might have to create a new class type) which incorporates the characteristic.
    First Create the Characteristic Using Ct04 and then using Cl02 create the Class including this characteristic.
    Then in your material master Classification View Enter this class.
    Then Create a Batch for the particular plant and Stor Loc using MSC1N.Give the value of the characteristics in this batch.
    Then go to SPRO ->Logistics General ->Batch Management and maintain the Condition Technique (Procedure, Strategy Types and assignment to sales docs etc).
    Then Create the Batch Determination Record using VCH1.

  • Problem with the fullscreen setting in Mountain lion

    Hi, I am experiencing a problem with the full screen setting of my Mountain Lion. The trouble is that when I run certain apps such as Zotero or Scrivener and I open, say, the preferences window, this is automatically set in fullscreen, although it should not be. I have already got in contact with the Scrivener team and they suggested that was a problem related to one of the apps I use to manage my windows, i.e. RIghtzoom and Window Tidy. Following up this suggestion I uninstalled and restarted my laptop, but nothing has changed. I wonder if anyone has already experienced this problem or if you have any suggestions. Thanks.
    Alfredo

    Here a short video which shows the problem I am talking about
    https://www.youtube.com/watch?v=_JGEis-vvsc
    Any suggestion?

  • Problem with a field set to refresh after insert at Row level

    hello all,
    i have a problem with a field (a serial) which is set by a db trigger at insertion. The field "refresh after insert" is properly set in the Entity and everything is refreshed correctly when i insert data via an adf form in a jspx but when i want to insert programmatically nothing is refreshed. I insert data this way :
    ViewObject insertVO = findViewObject("myView");
    Row newRow = insertVO.createRow();
    newRow.setAttribute("mandatoryAttribute1",value1);
    newRow.setAttribute("mandatoryAttribute2",value2);
    <more init here but not the serial since it will be set by the DB trigger>
    insertVO.insertRow(newRow);
    but when i want to get back the value with "newRow().getAttribute("TheSerial");" i always get a null back and not the value set by the db trigger.
    One way to get the serial is to commit after each insert but i don't want to commit between inserts.
    i've tried to unset the refresh after insert and override the createDef() method to setUseReturningClause(false) as it's is advised in chapter 26.5 of the ADF 4GL dev. guide but in this case i have an exception JBO-29000: JBO-26041.
    How can i get the value back properly ?
    thanks
    -regards

    The data for the newly created row doesn't get inserted into the database until the commit is executed, so the insert trigger isn't called.
    If you need to get the value without committing, then you should implement the trigger programmatically and drop the trigger from the database. The code below shows how you could do this.
    ViewObject insertVO = findViewObject("myView");
    Row newRow = insertVO.createRow();
    SequenceImpl seq = new SequenceImpl("MY_SEQ", insertVO.getDBTransaction());
    Long next = (Long)seq.getData();
    newRow.setAttribute("primaryAttribute", new Number(next));
    ...You will need to replace MY_SEQ and primaryAttribute with the correct values for your example, but this should acheive what you want.

  • Problem with the Time Setting

    Hi,
    I am facing a strange problem with solution manager 3.1.
    In solution graphic , its showing the refresh Time perfect but for alerts it is giving some very odd timings, sometimes well ahead in the day . .
    We are running on Windows.
    Anyone who has faced this problem .
    Regards
    Vijay

    That means it is having trouble connecting to the network. Make sure location is set correctly. Go to settings - general - network and ensure DNS is set to automatic. Check that your router is up to date. If on wifi try Ethernet.

  • Performance problems with multicam sync sets

    I'm working on editing a concert video where we have up to 8 cameras.  The whole concert is in one big multicam sync set (imported from PluralEyes).
    And my computer just isn't hacking it.  Intel core 2 quad 2.67GHz, 16GB ram, Windows 7 64-bit, and I just added a pair of 7200RPM local data disks in a striped configuration for performance.  Graphics card is an Nvidia GT 630.   This is well past the recommended hardware, but of course the processor and motherboard are a bit old.  (Oh, and OS disk is a 256GB SSD, and there's an 80GB SSD for scratch and stuff; the source files for the concert exceed 500GB hence can't be on those.)
    When I open the multicam set in the source viewer, it takes more than 30 seconds to come up with the set of camera views.  And when I click on another spot in the playback line, it takes forever or longer (i.e. it never does) to come up with the new set of views.  moving a frame left or right sometimes works, and sometimes doesn't.
    Watching the resource monitor while this is going on, I can't tell what's really going on.  It hasn't consumed nearly all the memory, and disk traffic isn't extreme (and goes to zero in the case where it never does display the right view).
    I first thought the problem was editing from an external USB3 disk, hence the upgrade with the local striped pair of real disks; but that made only a marginal improvement.  I've checked graphics driver version, and that's current.  Premiere says it's using CUDA.
    And I don't have any real option of spending another $500 to upgrade things right now.
    Wondering -- is the total length of the multicam set possibly an issue?  It seems like Premiere would really only deal with parts close to where the playback head was, and the total length wouldn't be a big deal.  I suspect the *width* is the problem, because narrower sets have been less trouble.  That's harder to try to fix right now unfortunately :-( .
    I did also try this on my laptop -- i7 processor, 8GB, but not separate graphics (Intel 3000 I think, no CUDA).  Had to use the external USB 3 drive there (internal drive is small SSD).  Ended up behaving essentially the same as the desktop, no better no worse.   So *just* upgrading the disks isn't the answer based on the desktop trial, and *just* upgrading the processor isn't the answer based on the laptop trial.  Is there a clear answer? 

    I just ran a test with a 8x multicam AVCHD project (1920x1080x29.97) in your behalf. Here's how I set in up, and here's what I measured during an un-rendered (real time) playback:
    On my 8-core cpu, loading was about 46% (indicates with a FAST 4-core CPU, you might just be OK
    I limited Adobe CC 2014 to only use 12GB of RAM (approximating the performance with your 16GB system)
    GPU was pretty much idle
    Disk reads ~ 23 MB/s; disk writes ~1.5 MB/s (not too much disk activity here really, your SSDs sound fine)
    Playback was perfect with zero lost frames (playback resolution = full); scrubbing was usable, but somewhat sluggish (at full playback resolution and limited to 12GB of RAM); When I bumped RAM available to Premiere up to 32GB, scrubbing was perfect (snappy) even with playback resolution set to full
    Bottom line, you may actually be able to do a sub-$500 upgrade that would really help your current system. What motherboard do you have now?
    Regards,
    Jim

  • MBA problem with 5 GHZ setting

    I have tried connecting my MBA to my Time Capsule with 802.11 n only at 5 GHZ setting. Every other time I have tried to connect to the internet I lose my connection to my network. Either I get a message stating that there are no preferred networks or I see my network and my password does not work. I then have to close the lid of my MBA and then open it, and viola, I am back on my network. I have no problems with my new iMac or my girlfriend's Macbook Pro.
    Any suggestions?

    I connect to my network via 802.11n (only 5GHz) without problem including AEBS and Time Capsule. I would suggest two things:
    1.) Make sure you have the latest time machine and airport updates installed. There is a also a firmware update for Time Capsule, you will be prompted to install this when you open Airport Utility.
    2.) If you are still have problems, go to the Network System Preference, delete the Airport configuration you have and create it over again. A number of people seem to have this solution work for them when they are having problems.

  • WRT54 GS problem with password on set up CD

    Hi, I have bought a new-ish WRT54GS and connected up correctly according to the instructions. When I get to stage 8 the CD asks me for a password after checking the settings on my computer. Yes, I have tried all the hard reset techniques described on this site, with holding reset button etc. and no joy. Plus the config website 192.168.1.1 seems to point to my modem and I cannot see any info on Linksys router. Can anyone help please?

    Can someone please offer some advice please as i am still not able to get past this stage! I have done al of the recommended procedures of holding the reset button 30 secs on and off etc. but still  nothing. I think that most of the threads on this site relate to the password within the router, not on the set up CD which I have a problem with. Also the recommended ip address takes me to the set up page for my modem, which is functionaing as it should, so I am completely stuck!!!

  • Problem with batch management indicator

    Hi Gurus,
    I have an issue with batch management.
    There is one material which was not batch managed. The requirement was to make it batch managed. There were no open purchase orders and the only thing pending was the stock in the present and previous periods. The stock quantity in the previous period  and the present period matched(470 Kg). I opened the previous posting period, used movement type 551 and scrapped the stock. There was zero stock for the current period and the present period.
    I changed the batch management indicator successfully. Now the issue is whil i am trying to cancel the material document
    1. Now that the material is batch managed, whie trying to cancel the material document using MIGO, the system prompts  for a batch to be entered. But the batch field is greyed out and i am not able to enter a batch
    2.  I have tried to cancel the material document using MBST and MIGO. The sytem prompts for a batch to be entered but not allowing me to do so as the batch field is greyed out.
    Any pointers will be appreciated.
    Many Thanks,
    Sajin

    Hi Sajin,
    What is a reason to cancel a material document? When was that material document created? Before or after flagging the indicator in the material master?
    Ilya.

  • Playlist Problem With Turkish Character Set (Windows-1254 or ISO 8859-9)

    I'm using my x-fi 2 just for 2 week and sicked and tired it's problem. Now i have a problem with playlist. If my mp3 or m4a files or folder names have turkish character playlist's seems empty but i can find the files under albums and artist name sectors.
    My question is the any way to solve this problem. Folder names is not problem but file names i can not change all of them. Please help.

    meraba ankara yasiyorum.Sizinle mail araciliyla görüsmemiz mumkun mu?
    e_mail: [email protected]
    Bilgisayırıma 10g express edition yükledim .Bi de ODT for 10gXE (ADD-in) yükledim.Ama
    connect e basınca veritabanına .net den baglanamıyorum username yada password yanlis diyor.string name express edition icin nedir..net 2003 bilgisayarima yüklü.
    .net ve oracle kullanarak bir proje yapmak istiyorum.Yardimci olabilirmisiniz
    saygilar..

  • MOVED: MSI CX623 - Problem with RAM and setting the primary board

    This topic has been moved to MSI Notebooks & Netbooks.
    https://forum-en.msi.com/index.php?topic=167930.0

    You should try a different mem slot. Say for example 0 and 2. There have been issues with DDR slots and all different types of mobos. Like I have a Shuttle Ak31v3 mobo with 2x256DDR2100 Kingston and the chips will only work on slots 2-4 and 1-3. It will not boot if I tried any other combination. It's a pain in the ass but thats just how it is. I had this same problem with a Asus A7V266.
    I don't however have that problem on my Kt3 ultra 2 R mobo.
    Madd

Maybe you are looking for

  • Month Scrolling No Longer Works In Calendar (Mavericks)

    Not sure what is causing this but I can no longer scroll in Month View on Calendar.  I can use the arrows (top left corner) to go back and forth (not scrolling) and scrolling DOES work in other views (Day, week, etc).  Also, vertical scrolling DOES w

  • Adf changes Warning

    I Have a showDetailItem, and inside a adfRegion, i want to warning to thw user if there are changes in the VO, for example the user delete without commit, i tried the UncommitedDataWarning and it works only when a i change the task flow in the region

  • Request flash cancel. Please refund

    Request flash cancel. Please refund

  • I keep getting a 1604 after updating to 4.3.3

    I tried to update to the newest version of software and at had a lot of dificulty b/c it kept giving me a network error.  After alot of hunting and pecking on the apple site i found the ports that needed to be opened in my router.  Then i tried the i

  • Do we have constant file in 7.5NW

    Hi All, Do we required to change our Account Dimension names in Constant file in BPC 7.5 NW version? If so where do we need change.  What is the path for that.  And when I am trying to move results to P&L Application it is not working it showing some