Script writes triple values

Hi,
I have a simply script that writes data from one model to another:
*XDIM_MEMBERSET ICDATASRC = IC_INPUT
*XDIM_MEMBERSET CURRENCY = LC
*XDIM_MEMBERSET CONSOSCOPE = G_NONE
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET ICRENTITY = %ICRENTITY_SET%
*DESTINATION_APP = LEGAL
*SKIP_DIM = ICDATASRC
*ADD_DIM DATASRC = DS_INPUT
*RENAME_DIM ICRENTITY = ENTITY
*RENAME_DIM ICRINTCO = INTCO
*WHEN CURRENCY
*IS LC
*REC(EXPRESSION = %VALUE%, ICRENTITY = ICRENTITY.LEGAL_ENTITY, ICRINTCO = ICRINTCO.LEGAL_INTCO)
*ENDWHEN
When I run this script as a package via Excel it writes three times the value it should write. So, if in the source model I have a value of 100 then the script writes 300 into the destination model.
This log is from having more than one value in the source system:
LOG BEGIN TIME:2014-06-25 16:31:20
FILE:\ROOT\WEBFOLDERS\XXX\ADMINAPP\ICRECON\COPY_ICR_2_LEGAL.LGF
USER:XXX
APPSET:XXX
APPLICATION:ICRECON
[INFO] GET_DIM_LIST(): I_APPL_ID="ICRECON", #dimensions=10
ACCOUNT,ACCTDETAIL,CATEGORY,CONSOSCOPE,CURRENCY,ICDATASRC,ICRENTITY,ICRINTCO,MEASURES,TIME
#dim_memberset=6
ICDATASRC:IC_INPUT,1 in total.
CURRENCY:LC,1 in total.
CONSOSCOPE:G_NONE,1 in total.
TIME:2013.12,1 in total.
CATEGORY:IST,1 in total.
ICRENTITY:136,1 in total.
REC :%VALUE%
CALCULATION BEGIN:
QUERY PROCESSING DATA
QUERY TIME : 1.00 ms. 24 RECORDS QUERIED OUT.
QUERY REFERENCE DATA
CALCULATION TIME IN TOTAL :1.00 ms.
8 RECORDS ARE GENERATED.
CALCULATION END.
ENDWHEN ACCUMULATION: 8 RECORDS ARE GENERATED.
What confuses me is the 24 records queried out. I think I can explain them as follows:
I have entered 1 value in LC
The account based calculation business rule has added another one in LC (one additional flow)
The currency conversion has added another 2 (both flows converted to EUR)
The ICDATA script has added another 2 (additonal audit)
So for each 1 value entered I have six in the database, times 4 value entered equals 24.
Of those I would expect 2 to be transferred to the other model (only the LC on IC_INPUT). In the destination model I only have data on those members (LC and DS_INPUT) but the values are tripled.
Would anyone have any idea why this might happen?
Thanks,
Arnold

Hi Vadim,
When I run the script as
*XDIM_MEMBERSET ICDATASRC = IC_INPUT
*XDIM_MEMBERSET CURRENCY = LC
*XDIM_MEMBERSET CONSOSCOPE = G_NONE
*XDIM_MEMBERSET TIME = %TIME_SET%
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET ICRENTITY = %ICRENTITY_SET%
*XDIM_MEMBERSET ACCOUNT = 203005
*XDIM_MEMBERSET ACCTDETAIL = F4200
*XDIM_MEMBERSET ICRINTCO = I_102
*DESTINATION_APP = LEGAL
*SKIP_DIM = ICDATASRC
*ADD_DIM DATASRC = DS_INPUT
*RENAME_DIM ICRENTITY = ENTITY
*RENAME_DIM ICRINTCO = INTCO
*WHEN CURRENCY
*IS LC
*REC(EXPRESSION = %VALUE%, ICRENTITY = ICRENTITY.LEGAL_ENTITY, ICRINTCO = ICRINTCO.LEGAL_INTCO)
*ENDWHEN
I get
LOG BEGIN TIME:2014-06-25 17:01:56
FILE:\ROOT\WEBFOLDERS\XXX\ADMINAPP\ICRECON\COPY_ICR_2_LEGAL.LGF
USER:XXX
APPSET:XXX
APPLICATION:ICRECON
[INFO] GET_DIM_LIST(): I_APPL_ID="ICRECON", #dimensions=10
ACCOUNT,ACCTDETAIL,CATEGORY,CONSOSCOPE,CURRENCY,ICDATASRC,ICRENTITY,ICRINTCO,MEASURES,TIME
#dim_memberset=9
ICDATASRC:IC_INPUT,1 in total.
CURRENCY:LC,1 in total.
CONSOSCOPE:G_NONE,1 in total.
TIME:2013.12,1 in total.
CATEGORY:IST,1 in total.
ICRENTITY:136,1 in total.
ACCOUNT:203005,1 in total.
ACCTDETAIL:F4200,1 in total.
ICRINTCO:I_102,1 in total.
REC :%VALUE%
CALCULATION BEGIN:
QUERY PROCESSING DATA
QUERY TIME : 0.00 ms. 1 RECORDS QUERIED OUT.
QUERY REFERENCE DATA
CALCULATION TIME IN TOTAL :0.00 ms.
1 RECORDS ARE GENERATED.
CALCULATION END.
ENDWHEN ACCUMULATION: 1 RECORDS ARE GENERATED.
So that would work, but I want to transfer all values for all accounts on all flows with all partners from the ICRECON to the LEGAL model.
Thanks,
Arnold

Similar Messages

  • Write up value - table to show each write up posted

    Is there any table in asset accounting which shows write up values with individual write up postings made and its amount.
    For ex: In ANLC we can see write ups.But if i have posted write up twice one with 10$ and another with 20$ .
    ANLC shows in field ZUSNA(write up on ord dep) as $70.
    Can i know a table which can show the split up.Please advice.

    Hi,
    Please use the table ANEA & ANEP.
    In ANEP you will have Transaction types for write up posted as 711.
    And in ANEA you will have respective line item wise Write up posted values.
    Hope this solve your issue.
    Regards,
    Pankaj.

  • After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe. Already reinstalled 3 times and always sa

    After download itunes installation began in windowx xp near the end of the installation the message says: it was not possible to write the value to the key Software / Classes / .mpg / OpenWithList / iTunes / .exe.
    Already reinstalled 3 times and always says the same message.
    thank you

    Only two had virus on windows XP this week and wiped them with Avast. The itunes asked me to install the update, and so I did. but it always gives me that message.

  • How to write list values to a text file?

    Hi. Does anyone know how to write values stored in a List to a text file? I have a program that asks the user to enter a name and stores it in a list. The number of names in the list depends on how many times the user wants to enter a name. The problem is that my writeToFile method, which handles writing values to a text file, only writes one name and overwrites any previous names. How could I fix this so that it goes thru the list and writes every value to the file? Any hints would be appreciated!
    peace
    Chris
    import java.util.*;
    import java.io.*;
    public class StoreNames
    String name;
    char answer;
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    public void anotherName(List a)throws IOException
    System.out.println("Enter another name? (Y or N)");
    answer = (char)System.in.read();
    System.in.skip(2);
    while(answer == 'Y' || answer == 'y')
    inputName(a);
    System.out.println("Enter another name? (Y or N)");
    answer = (char)System.in.read();
    System.in.skip(2);
    if (answer == 'N' || answer == 'n')
    System.out.println("Ok. GoodBye");
    writeToFile(a);
    //prompts user to input names
    public void inputName(List a) throws IOException
    System.out.print("Enter a name: ");
    name = input.readLine();
    a.add(name);
    public void writeToFile(List a)throws IOException
    PrintWriter output = new PrintWriter(new FileWriter("names.txt"));
    output.print(name); //Problem area - handles only one line of input, overwrites previous input
    output.close();

    System.out is an instance of PrintStream (check the API documents for the System class to see this).
    So the easiest way to convert from a "print to screen" class to a "print to file" class is to acquire a PrintStream that prints to a file, and use it exactly the same as you'd have used System.out...
    So start with your console code...
            PrintStream out = System.out;
            for(int i = 0; i <10; i++){
                out.println("Number " +i);
            }Then you adapt to file code:
            FileOutputStream fos = new FileOutputStream("temp.txt");
            PrintStream out = new PrintStream(fos);
            for(int i = 0; i <10; i++){
                out.println("Number " +i);
            out.flush();
            out.close();Note that we flush the stream because for reasons of efficiency files aren't necessarily written to disk until you explicitly ask the system to do so (memory is fast, disks are slow, that's why).
    Closing the stream releases system resources associated with it.
    Actually, that's redundant, because close calls flush automatically, but I left it in for clarity.
    Any use ?

  • SQL errors in SMS_STATE_SYSTEM - Trying to write NULL values to PropertyLocale

    Hi!
    We are getting a lot of the following error in the SMS_STATE_SYSTEM:
    Microsoft SQL Server reported SQL message 515, severity 16: [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow
    nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    Please refer to your Configuration Manager documentation, SQL Server documentation, or the Microsoft Knowledge Base for further troubleshooting information.
    I understand what this message means but i cant find which applications are causing the problem.
    (actually i think I do but I still get the error messages after deleting them..)
    It seems it's trying to write NULL-values twice every 5 minutes, but from "where"? What is telling it to update the row with a NULL value?

    Here are part of the statesys.log - It's not very helpful ;)
    Seems it's the  'Update Application Catalog Tables'-task who is responsible for the mess.. But it does not say anything about the application..
    Started task 'Update Application Catalog Tables'
    SMS_STATE_SYSTEM 03.02.2014 16:18:14
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** [24000][0][Microsoft][SQL Server Native Client 11.0]Invalid cursor state
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Task 'Update Application Catalog Tables' failed after running for 19 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Will sleep until task 'Update NAP Restriction Error Summary' is due in 220 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 220 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:19:53
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:3088 started
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:20:03 3088 (0x0C10)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:20:03 3088 (0x0C10)
    Thread "State Message Processing Thread #0" id:3088 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:6468 started
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:21:03 6468 (0x1944)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:21:03 6468 (0x1944)
    Thread "State Message Processing Thread #0" id:6468 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    Started task 'Update NAP Restriction Error Summary'
    SMS_STATE_SYSTEM 03.02.2014 16:22:18
    4744 (0x1288)
    Task 'Update NAP Restriction Error Summary' completed successfully after running for 15 seconds, with status 0.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Will sleep until task 'Update Application Catalog Tables' is due in 60 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 60 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:23:20
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:4076 started
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:23:30 4076 (0x0FEC)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:23:30 4076 (0x0FEC)
    Thread "State Message Processing Thread #0" id:4076 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    Started task 'Update Application Catalog Tables'
    SMS_STATE_SYSTEM 03.02.2014 16:23:45
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** [24000][0][Microsoft][SQL Server Native Client 11.0]Invalid cursor state
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    Task 'Update Application Catalog Tables' failed after running for 19 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:6800 started
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:24:49 6800 (0x1A90)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:24:49 6800 (0x1A90)
    Thread "State Message Processing Thread #0" id:6800 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    Will sleep until task 'Update NAP Restriction Summary' is due in 16 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:04
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 16 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:04
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:26:20
    4744 (0x1288)
    Started task 'Update NAP Restriction Summary'
    SMS_STATE_SYSTEM 03.02.2014 16:26:30
    4744 (0x1288)
    Task 'Update NAP Restriction Summary' completed successfully after running for 15 seconds, with status 0.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)
    Will sleep until task 'Update Application Catalog Tables' is due in 139 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 139 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)

  • Write OPC Values Delayed or Conflicting?

    We have Lookout 6.1 and KepWare OPC server.  We have values from a fieldpoint module that we are then writing out to tags on the Kepware OPC server which is connected to a Mitsubishi PLC network.  If the PLC writes a value to the same device we are writing to, the device stays that value for time "X" (seems to be upward of a minute or more) before the fieldpoint value is written to the PLC device again resetting the value to the current actual value.  The OPC device in Lookout is setup as OPC 1.0 (2.0 doesn't seem to work in Lookout), use asynchronous I/O, force refresh after write, reconnect automatically, update rate of 100 ms, deadband of 0.000 percent, no poll device, and no default access.
    If we reopen Lookout, then the devices all get updated with the current values from the fieldpoint system.

    It looks like correct behaviour from your description.
    For example, you have the connection OPClient.xxx.xxx = FieldPoint.xxx.xxx
    Whenever the FieldPoint's data changes, it will be written to the Kepware through OPClient object. But it doesn't know if the data on OPC Server is changed by other source. The Lookout data will be output to OPC Server only when it changes in Lookout.
    When the PLC writes a value to the same device or same address, Lookout doesn't know that it needs to write or reset the data again because the data source in Lookout doesn't change. 
    The problem I think is there are two sources that can write value to a same address. Maybe it's in need sometimes, but the confliction cannot be avoided.
    Let me know if I misunderstand your description.
    Ryan Shi
    National Instruments

  • Unable to write CLOB value larger then approx. 97KB

    Hello,
    I am writing the CLOB value using the java JDBC bridge (9.0.1) to the DB (8.1.6). I managed to write CLOB values ok, but when I try to write text larger then 97KB it throws the following error:
    java.io.IOException: ORA-00600: kód vnitønà chyby (internal error code in english), argumenty: [kdlseek-kgbtnscb], [], [], [], [], [], [], []
    ORA-06512: na "SYS.DBMS_LOB", line 708
    ORA-06512: na line 1
    at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java:618)
    at oracle.jdbc.driver.OracleClobWriter.flushBuffer(OracleClobWriter.java:201)
    at oracle.jdbc.driver.OracleClobWriter.flush(OracleClobWriter.java:161)
    at com.trask.edoceo.sql.OracleConnection$OraclePreparedStatement.getCLOB(OracleConnection.java:103)
    at com.trask.edoceo.sql.OracleConnection$OraclePreparedStatement.setCharacterStream(OracleConnection.java:85)
    at ...
    I use the Prepared statement function setClob and for writing I create the CLOB object using the following method:
    private CLOB getCLOB(String text, Connection conn) throws SQLException {
    CLOB tempClob = null;
    try {
    // If the temporary CLOB has not yet been created, create new
    tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
    // Open the temporary CLOB in readwrite mode to enable writing
    tempClob.open(CLOB.MODE_READWRITE);
                        // Get the output stream to write
    Writer tempClobWriter = tempClob.getCharacterOutputStream();
    // Write the data into the temporary CLOB
    tempClobWriter.write(text);
    // Flush and close the stream
    tempClobWriter.flush();
    tempClobWriter.close();
    // Close the temporary CLOB
    tempClob.close();
    } catch (SQLException sqlexp) {
    tempClob.freeTemporary();
    sqlexp.printStackTrace();
    } catch (Exception exp) {
    tempClob.freeTemporary();
    exp.printStackTrace();
    return tempClob;
    Under the 97KB boundary everything works fine. Is the limit hidden in the JDBC drivers (I tried the newer drivers, but they throw the END OF TNS DATA CHANNEL error) or somewhere in the oracle DB settings?
    I am using JDK 1.3.1 Win2000 and the oracle DB resides on another machine then the application.
    I tried to append the error dump from the DB, but it has 1.5MB of text :-(
    Thanks for your help.
    Jan Antos.
    [email protected]

    This forum is meant for discussions about OTN content/site and services.
    Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
    Product forums:
    http://forums.oracle.com/forums/index.jsp?cat=9
    Technology forums:
    http://forums.oracle.com/forums/index.jsp?cat=10
    As a general guideline, please first search the forum to see if your question is already answered. You will find answers for the most frequently asked questions by simply searching the forum. This will help you to find the answer right away and will save time for all of us.

  • Write Negative Value Byte to File

    In this example, I'm trying to write a value in between -128 to 127 to a text file. When I read it back (and check it using a binary viewer), the text file actually gets 63. The only workable range is 0 to 127. How can I get negatives?
              Byte b = (byte)-12;
              BufferedWriter writer = new BufferedWriter(new FileWriter("C:\\Documents and Settings\\Joe\\Desktop\\test.txt"));
              writer.write(b);
              writer.close();
              DataInputStream is = new DataInputStream(new FileInputStream("C:\\Documents and Settings\\Joe\\Desktop\\test.txt"));
              System.out.println(is.read());
              is.close();

    The byte became unsigned when using the OutputStream. I tried to write -12, and I got 244. But now, I can write 0 through 255 (a bigger range)
    But I can just use arithmetic to make it work.
    Thanks!
              Byte b = (byte)-12;
              OutputStream out = new FileOutputStream("C:\\Documents and Settings\\joe\\Desktop\\test.txt");
              out.write(b);
                    out.close();
              DataInputStream is = new DataInputStream(new FileInputStream("C:\\Documents and Settings\\joe\\Desktop\\test.txt"));
              System.out.println(is.read());
              is.close();

  • Error 1406. Setup cannot write the value mlcfg32.cpl

    Hi to all. I am attempting to upgrade Office 2007 Standard to Office 2013 Pro. I have used the OCT tool to create a custom MSP. On some machine the upgrade fails. It is always the same error (see below).
    [quote]
    Error 1406. Setup cannot write the value mlcfg32.cpl to the registry key \Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls. Verify that you have
    sufficient permissions to access the registry or contact microsoft product services (PPS) for assistance. For information about how to contact PSS, see
    C:\Users\......
    [/quote]
    I have attempted the following:
    1.Log on to the computer by using an Administrator user account.
    2.Start Microsoft Windows Explorer.
    3.On the Organize menu, click Folder and search options.
    4.Click the View tab.
    5.Under Hidden files and folders, click Show hidden files, folders, and drives.
    6.Click to clear the Hide extensions for known file types check box.
    7.Click to clear the Hide protected operating system file (Recommended) check box, and then click OK.
    8.On the Warning dialog box, click Yes.
    9.Open the following folder: C:\Users\All Users\Microsoft\Office\Data\
    10.If you are running Office 2007, right-click Opa12.dat or if you are running Office 2003, right-click Data.dat, and then click Properties.
    11.Click the Security tab.
    12.Click Advanced.
    13.Click the Permissions tab.
    14.Click to select Everyone in the Permission entries list, and then click Edit.
    15.Click to select the Full Control check box.
    16.Click OK four times. If these steps do not resolve this issue, delete the Opa12.dat, the Opa11.dat file or the Data.dat file from the following folder, and then restart an Office 2007 program, an Office 2003 program or an Office XP program
    C:\Users\All Users\Microsoft\Office\Data
    Has anyone seen this issue previously?
    Kind Regards,
    Phil.

    Hi Phil,
    Thank you for your questions. Have you uninstalled Office 2007 from the machine before the Office 2013 installation?
    I believe you've already seen this KB article before, the steps above are quoted from it:
    http://support.microsoft.com/kb/838687
    As can been seen from the article, the steps above are specific to Method 4. There are three other Methods mentioned in the article, have you ever tried them? If not yet, I would suggest you to have a try:
    Method 1: Set the permission for the Everyone group of the registry subkeys that are listed in the error message to Full Control.
    Method 2: Disable the third-party application.
    Method 3: Try the installation again in
    Let me know if the issue persists after the steps above, we'll take a further look then.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Error 1406. could not write to value Adobe ARM to key \Software\Microsoft\Windows\CurrentVersion\Run

    Had reinstalled Windows 7. Trying out Acrobat and keep getting this error: Error 1406. could not write to value Adobe ARM to key \Software\Microsoft\Windows\CurrentVersion\Run
    tried a few of the discussions and haven't been able to fix it

    Hi richardt4827,
    Please let me know if you have tried out the solutions given in this KB doc link:
    Error 1402 | Error 1406 | Acrobat, Reader
    Hope to hear from you.
    Regards,
    Anubha

  • In bc4j debug output - "Cannot write SessionCookie value to a commited.."

    I am taking a look at an application debug logs and whenever an AM is Reset this warning is thrown:
    "Cannot write SessionCookie value to a commited response."
    Has anyone else seen this in their log?
    This is a 10.1.2 app with struts and BC4J. I'm trying to debug a memory leak on a server, and I suspect it has something to do with an overloaded bc4jrequestprocessor...and it kind of worries me that the session might not be being saved and perhaps some resources are sticking around....ideas?

    Finally found the problem!
    Even if the data type is Date/Time in Access and it is possible to set the field name to DateTime it seems to be a restricted word when using an SQL statement. The solution is to add brackets around DateTime like this:
    INSERT INTO Measurement (TestID,[DateTime]) VALUES (1,'2015-01-28 06:52:16');
    Thanks for your help Cosworth.
    Ben64

  • Why shared variable generates events when I write constant value?

    Hello all,
    I'm using LV 8.5 with DSC packet.
    I modified "DSC Events Demo".vi and made a test. I noticed that only variable which work okay is double typed. Why this code generate events all the time when I write constant values to shared variables? Double is okay, but string and boolean types not work okay. Is there any other people how have noticed same symption?
    Attachments:
    modified_dsc_event_demo1.zip ‏391 KB

    You may get an initial event on startup which is normal.  Also make sure that you have not enabled timestamp change events.

  • Bex : selection variable - write default values

    Hi,
    In Bex, I want to write default values by abap in selection option of report.
    How to do this?
    Thanks.

    Hi,
    create a variable of single value with "No ready for input" and "Mandatory"
    <u>Procedure of Exit:</u>
    1: Tcode -> cmod
    2: Select the Project for Varaiables -> Components --> change
    3: select EXIT_SAPLRRS0_001 
    4: select ZXRSRU01
    5:
      WHEN '<Var Name>'.
        IF i_step = '1'.
          l_s_range-low      = <default value>.
          l_s_range-sign     = 'I'.
          l_s_range-opt      = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    6: Save
    7: Activate
    8: Activate the project
    Hope its done
    Regards
    Happy Tony
    <b>Points == Thanks</b>

  • Write key value problem

    Hello friends!
    I have run into a problem. I have a dialog box VI which asks for a serial number for each connector. There is an End button on the same VI. Its purpose if to cancel the calling of subsequent MAC no dialog boxes and serial number dialog box and to write a value of false against the enabled status of the serial ports (including the current serial port, which is being scanned). What is happening is that the serial port  for which the end button is pressed gets a true written against its enabled state (COM Port 0 Enabled=TRUE) in the config file.
    I have been trying to find the source of error but to no avail. So I finally ask for my dear friends help at NI.
    I am attaching the two VIs (these are part of a project so they use a lot of other VI unrelated to the current problem) (kindly let me know if more VIs are required for debugging).
    Thanks a lot for taking time out to let me out of my predicament.
    Attachments:
    WriteConfig.zip ‏61 KB

    I found your code extremely difficult to follow because of your excessive use of sequence frames and local variables. All of the code you showed can be written without using sequence frames, and most, if not all of the local variables can be eliminated. This would make the code much easier to follow and debug. If you right-click on the sequence frame and select Replace -> Flat Sequence you will see what I mean. It seems you have a background in text-based coding. As it is, here's what I can say:
    "Enter Serial Number" VI 
    You are not properly using the event structure. For example, in your "End" event case you set a separate Boolean control and fire off the event for a value change in one of the cluster elements. Why? This second "End Loop" Boolean is competely superflous. Delete it. The cluster is not visible to the user, so they cannot change it. Place the code that's in that event case in the "End" event case, and place the "End" button in that event case and wire it out to the stop terminal of the loop. 
    The "Serial No" value change event case is completeley unnecessary. You're writing the value that it's being changed to back to the control. It's already been changed!
    Change the mechanical action of "OK1" to the default of "Latch When Released", and change the "Mouse Down" event case to "Value Changed". Place the "OK1" Boolean inside that event case. This event will fire when the user presses the button and lets go of the mouse button while the cursor is still on the button, adhering to standard user interfaces. Thus, if they want to cancel the button press they can. The way you have it, this is not possible.
    The "Connector In" control is not necessary. All you're doing is writing its value to another control which is the big string input. Just make this big string input your terminal control, and delete the superflous "Connector In".
    Frame 3 serves no purpose.
    Frame 4 serves no purpose since at no other time do you actually write a True to "Cancel.
    "LaunchSNM..."
    Same comment regarding frames and local variables.
    In Frame0 you do not need to use Build Array. Simply wire out the "Connector" element straight out of the loop and auto-index it to get your array automatically.
    Use a shift register instead of a local variable to carry around a value in a loop. This pertains to your "Scan End" Boolean.

  • How to write the value of JComboBox

    Hi All
    how to write the value of JComboBox, when the user selected?
    i.e. if i have text filed age and a JComboBox 20,30,40 and so on
    i want to save the age with the user selected item from JComboBox??
    any ideas

    Thanks for the useful link
    but what i need is how to write the JComboBox when it is appear in the line
    i.e if i have the following line
    Name Hana Age JComboBox Major JComboBox
    and i need to save all this line in a text file
    JLabel JTextfiled JLabel JComboBox JLabel JComboBox

Maybe you are looking for

  • Accessing Enteprise Manager via Cluster Scan VIP

    Hello all... We have a few clusters set up, and we've been accessing Enterprise Manager for these via the cluster scan IP address. For some unknown reason we now cannot access two of the three OEM installations via the scan IP, only by the IP address

  • LTE Support for 3 UK and Kitkat Update

    So it seems I'm not able to select LTE as a network preference while I have my 3 Mobile Sim in my phone.  LTE does appear with another carriers sim in but 3 is my main provider so this is a problem.  Does anyone know if this has been fixed with the K

  • Drop cap for FIRST paragraph only

    I know how to create a drop cap for a paragraph manually. But I will be filling a textbox from XML, which may contain one or more paragraphs. If I assign a drop cap as part of the paragraph style, every paragraph gets a drop cap, when I only want it

  • "I have an HP Pavillion computer & want 2 put in a quiet CPU cooler. Which one fits that's quietest?

    I'm looking to do some home audio recording and need a quiet fan in the computer. The guys at Best Buy had me buy a Corsair A50, but the fitting wasn't correct for the Pavillion (not sure if 'fitting' is the correct word - I'm talking about where the

  • ASP basic shopping cart tutorial

    I am looking for a basic session driven shopping cart tutorial in Classic ASP. I don't need ecommerce just a way to create a shopping cart for people to purchase images online and have it save to a database if they place an order. Thanks! Wally Kolcz