Error when creating a layer of text, when 2 + work plans are available in the document

Hi, I met a weird error while trying to create a new text layer.

When a single work plan is available in the document, the script works well and create a new empty text layer;

When 2 or more work plans are available in the document, the script generates the layer, but she then gets stuck when trying to convert a text. The console says "the layer cannot contain text.

Paste my code here with comments.

#target photoshop


//this script attempts to create a text layer above the selected layer contained into an artboard.
//For some reason, it works on the first available artboard, but not on the other ones. The error is "The layer cannot contain text"


//get active PS document
var doc = activeDocument; 


//get active artboard 
var currentArtboard = getActiveArtboard();  


//create new art layer in the current artboard
var newLayer = currentArtboard.artLayers.add();


//trying to convert to text layer. Fails when 2+ artboards are available int the document
newLayer.name = "test";
newLayer.kind = LayerKind.TEXT; 
  
  
function getActiveArtboard() {  
    var key = false;
    var l   = doc.activeLayer;
    var p   = l.parent;


    try {  
        while (!key) {  
            doc.activeLayer = p;  
            var ref = new ActionReference();  
            ref.putEnumerated(charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt'));  
            key = executeActionGet(ref).getBoolean(stringIDToTypeID("artboardEnabled"));  
            if (key) {  
                return p  
            }  
            p = p.parent;  
        } 


    } catch (e) {  
        alert('This layer is not contained within an artboard');  
        return undefined; 
    }  
}  


Any help is greatly appreciated. Thank you in advance!

var doc = activeDocument;

var currentArtboard = getActiveArtboard();

function makeTextLayer() {
    var desc = new ActionDescriptor();
    var desc2 = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putClass(app.charIDToTypeID('TxLr'));
    desc.putReference(app.charIDToTypeID('null'), ref);
    desc2.putString(app.charIDToTypeID('Txt '), "text");
    var list2 = new ActionList();
    desc2.putList(app.charIDToTypeID('Txtt'), list2);
    desc.putObject(app.charIDToTypeID('Usng'), app.charIDToTypeID('TxLr'), desc2);
    executeAction(app.charIDToTypeID('Mk  '), desc, DialogModes.NO);
    return doc.activeLayer
}

var newLayer = makeTextLayer();

newLayer.move(currentArtboard, ElementPlacement.INSIDE);

function getActiveArtboard() {
    var key = false;
    var l = doc.activeLayer;
    var p = l.parent;
    try {
        while (!key) {
            doc.activeLayer = p;
            var ref = new ActionReference();
            ref.putEnumerated(charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt'));
            key = executeActionGet(ref).getBoolean(stringIDToTypeID("artboardEnabled"));
            if (key) {
                return p
            }
            p = p.parent;
        }
    } catch (e) {
        alert('This layer is not contained within an artboard');
        return doc
    }
}

Tags: Photoshop

Similar Questions

  • Qosmio X 300-12 H when this model will be available in the market?

    Qosmio X 300-12 H when this model will be available in the market?
    I mean like PC world shop.
    Do you intend to send in stock in this year?

    Not anyone can pay full amount byuing this laptop online.
    Thank you.

    > Do you intend to send in stock in this year?
    What exactly do you mean by saying that?
    Do you n t know that there is a user to user forum?
    I don t know when this laptop would be on stock but AFAIK this 300-12 H X came out for a British market and should be available in the United Kingdom only.

    Maybe you should wait and ask a few different dealers in the United Kingdom for this product

  • How the layer is duplicated into several work plans?

    Hello

    I use Photoshop CC 2015.

    I'm working on a document with different arboards.

    And I need to duplicate a layer from one to all work plans.

    Is it possible to do?

    Thanks for your help!

    Unfortunately there is no other way for the exception manually.

  • I constantly get the error 'could not get new comments. One or more files are missing on the server.

    I constantly get the error 'could not get new comments. One or more files are missing on the server.

    It gets a little old. I know that the files are there. There is some ongoing compatibility issue?

    Hi kuntzmd

    Please visit: http://forums.adobe.com/thread/533034

    http://forums.Adobe.com/thread/33586

  • Error while creating or rebuilding Oracle text Lexer keyword index

    Hi all
    I am getting following error when I create oracle text indexes using lexer & keyword in the list of stopwords.
    Please help me if any body know.
    Thanks in advance.


    Error from the 1 in the command line:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)

    Post INDEXTYPE IS "CTXSYS. "" (LOCAL) CONTEXT.
    PARTITION SETTINGS "BEFORE_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "THE_REST' ('LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)')
    )
    Error in the command line: 1 column: 13
    Error report:
    SQL error: ORA-29855: error when executing routine ODCIINDEXCREATE
    ORA-20000: Oracle text error:
    DRG-11000: invalid keyword LEXER
    ORA-06512: at "CTXSYS. DRUE", line 160
    ORA-06512: at "CTXSYS. TEXTINDEXMETHODS', line 365
    29855 00000 - "an error occurred in the execution of routine ODCIINDEXCREATE.
    * Cause: Cannot run the ODCIIndexCreate routine.
    * Action: Check if the routine was coded correctly.


    Kind regards
    Jack R.

    Hello

    It works if you put a clause of additional PARAMETERS to the end, so the creation looks like:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)
    INDEXTYPE IS "CTXSYS. "" (LOCAL) CONTEXT.
    PARTITION SETTINGS "BEFORE_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "THE_REST' ('LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)')
    )
    PARAMETERS ('LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)')<==>

    Hope this helps

    Herald tiomela

  • ICE30 errors when compiling a WiX project and including the mstudiocommon.2010.msm

    Hello

    I am trying to create an msi using WiX for a project using the mergw VISA modules that come with VISA 5.3, that I installed it under the IEEE 488.2 package. mstudiovisa.2010.msm requires mstudiocommon.2010.msm. When I include them in the project file (.wxs). the compiler produces errors such as below (partial list)...

    I only get errors when using MSM in a Visual Studio installed the project.

    Any suggestions for a fix would be greatly appreciated.

    Thank you

    David

    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 1.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__016BDF7D90874798B4BE0BDA0C05A49A.039160C5A7A24C49AD122694436A47BB' and 'C__2E0318AAB2BF4B7189A8CF21FD7185BC.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.

    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 1.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__016BDF7D90874798B4BE0BDA0C05A49A.039160C5A7A24C49AD122694436A47BB' and 'C__2E0318AAB2BF4B7189A8CF21FD7185BC.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 1.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__016BDF7D90874798B4BE0BDA0C05A49A.039160C5A7A24C49AD122694436A47BB' and 'C__46B6CB4FBD354C73B7A67EE8D9DA4361.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 1.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__016BDF7D90874798B4BE0BDA0C05A49A.039160C5A7A24C49AD122694436A47BB' and 'C__46B6CB4FBD354C73B7A67EE8D9DA4361.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 2.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__2E0318AAB2BF4B7189A8CF21FD7185BC.039160C5A7A24C49AD122694436A47BB' and 'C__46B6CB4FBD354C73B7A67EE8D9DA4361.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 2.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__2E0318AAB2BF4B7189A8CF21FD7185BC.039160C5A7A24C49AD122694436A47BB' and 'C__46B6CB4FBD354C73B7A67EE8D9DA4361.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 1.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__016BDF7D90874798B4BE0BDA0C05A49A.039160C5A7A24C49AD122694436A47BB' and 'C__63DA4DFA08B847EBBE9EA67DDFA881CD.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 1.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__016BDF7D90874798B4BE0BDA0C05A49A.039160C5A7A24C49AD122694436A47BB' and 'C__63DA4DFA08B847EBBE9EA67DDFA881CD.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 2.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__2E0318AAB2BF4B7189A8CF21FD7185BC.039160C5A7A24C49AD122694436A47BB' and 'C__63DA4DFA08B847EBBE9EA67DDFA881CD.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 2.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__2E0318AAB2BF4B7189A8CF21FD7185BC.039160C5A7A24C49AD122694436A47BB' and 'C__63DA4DFA08B847EBBE9EA67DDFA881CD.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 5.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__46B6CB4FBD354C73B7A67EE8D9DA4361.039160C5A7A24C49AD122694436A47BB' and 'C__63DA4DFA08B847EBBE9EA67DDFA881CD.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 5.CON | NationalInstruments.NiLmClientDLL.config' is installed by two different components on a LFN system in "[TARGETDIR] \Visa Tester\ ': 'C__46B6CB4FBD354C73B7A67EE8D9DA4361.039160C5A7A24C49AD122694436A47BB' and 'C__63DA4DFA08B847EBBE9EA67DDFA881CD.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 6.CON | NationalInstruments.Common.config "is installed by two different components on a LFN system in" [TARGETDIR] \Visa Tester\ ': 'C__4DCFB2C5FC44400BA4B4CA245390C113.039160C5A7A24C49AD122694436A47BB' and 'C__78B0A59F2E584CB48B2993A61B055DC3.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 6.CON | NationalInstruments.Common.config "is installed by two different components on a LFN system in" [TARGETDIR] \Visa Tester\ ': 'C__4DCFB2C5FC44400BA4B4CA245390C113.039160C5A7A24C49AD122694436A47BB' and 'C__78B0A59F2E584CB48B2993A61B055DC3.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.
    Light.exe (0,0): LGHT0204 error: ICE30: the target file ' NATION ~ 6.CON | NationalInstruments.Common.config "is installed by two different components on a LFN system in" [TARGETDIR] \Visa Tester\ ': 'C__4DCFB2C5FC44400BA4B4CA245390C113.039160C5A7A24C49AD122694436A47BB' and 'C__84BBDA9D53784C71992935FBA4FA4021.039160C5A7A24C49AD122694436A47BB '. This breaks the reference of the component count.

    Hi David,

    The WiX project example that I'm talking about is installed by Measurement Studio to "C:\Users\Public\Documents\National Instruments\MStudioVS2012\DotNET\Examples\Application\Deployment\WiX\All Libraries". However, this example only supports Measurement Studio libraries. We are finalizing some examples that support the material libraries, 488.2 and VISA, DAQmx. I'll post a link these here when they are published. But in the meantime, I have attached the current version of the examples that are close to final.

    For the dependencies required for a distribution list, you can consult the help topic of Studio measure measure Studio Modules merger and deployment files.

  • Error when performing procedure a TOAD that contains the parameter and dblink

    Hi all
    I get the error while executing the following code in the TOAD and APEX.

    It contains the parameter (start_date and end_date) and dblink (@TO_FUT).
    When I hardcode the values of the parameters, it works very well.
    When I give values hard-coded in the procedure, the error comes.
    When I commented that the lines as much as setting comes, the error always comes.

    I don't know if it's parameter problem or question dblink or some other problem

    Everyone is having no idea about this error?
    Your help is very appreciated.

    Code:
    CREATE OR REPLACE PROCEDURE PROC_ENR_ACC (START_DATE, END_DATE DATE DATE)
    AS
    BEGIN
    RUN IMMEDIATELY 'TRUNCATE TABLE OUTPUT_TABLE;
    INSERT INTO OUTPUT_TABLE
    (FIRST_NAME, LAST_NAME, HIDDEN, EFF_DT, CID, PLAN, FLAG)
    SELECT
    TEMP1. FIRST NAME,
    TEMP1. LAST_NAME,
    TEMP1. HIDDEN,
    TEMP1. EFF_DT,
    TEMP1. CID,
    TEMP1. PLAN,
    NVL ((SELECT ' Y'))
    OF FADMIN. MEMI_TABLE@TO_FUT MCQUEEN
    WHERE MCQUEEN. MEME_CK = TEMP1. MEME_CK
    AND MCQUEEN. TXN_EFF_DT = TEMP1. EFF_DT
    AND MCQUEEN. PBP = TEMP1. PLAN
    AND MCQUEEN. MEMI_TXN_CD IN ('AC', ARE ')
    AND MCQUEEN. MEMI_SEQ_NO = (SELECT MAX (MI. MEMI_SEQ_NO)
    OF FADMIN. MEMI_TABLE@TO_FUT MI
    WHERE MI. MEME_CK = MOUGEOT. MEME_CK
    AND MI. TXN_EFF_DT = MOUGEOT. TXN_EFF_DT
    AND MI. PBP = MOUGEOT. PBP
    AND MI. MEMI_TXN_CD IN ('AC', ARE ')
    AND MI. (MEMI_INTF_STS = 03)), 'N') AS FLAG
    Of
    (SELECT
    M1. FIRST NAME,
    M1. LAST_NAME,
    M1. HIDDEN,
    M1. EFF_DT,
    M1. CID,
    M1. PLAN,
    (SELECT THE SAME. MEME_CK
    OF FADMIN. EVEN MEME_TABLE@TO_FUT, FADMIN. GRGR_TABLE@TO_FUT CHRISTIAN
    WHERE EVEN. M_HIN = M1. HID
    AND EVEN. GRGR_CK = CHRISTIAN. GRGR_CK
    AND CHRISTIAN. GRGR_ID = M1. GRGR_ID
    ) AS MEME_CK
    OF FADMIN. METR_TABLE@TO_FUT M1,
    (SELECT M3. HIDDEN, M3. FADMIN EFF_DT. METR_TABLE@TO_FUT M3
    WHERE M3. TYPE IN ('60 ', ' 61')
    AND M3. RESPONSE TO ('117 ', ' 118')
    AND TRUNC (M3. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M3. SYIN_INST = (SELECT MAX (M4. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M4
    WHERE M4. HID = M3. HID
    AND M4. TYPE IN ('60 ', ' 61')
    AND M4. RESPONSE TO ('117 ', ' 118')
    AND TRUNC (M4. EFF_DT) = TRUNC (M3. EFF_DT))
    ) TEMP
    WHERE M1. TYPE IN ('60 ', ' 61')
    AND M1. RESPONSE = "011"
    AND TRUNC (M1. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1. SYIN_INST = (SELECT MAX (M2. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M2
    WHERE M2. HID = M1. HID
    AND M2. TYPE IN ('60 ', ' 61')
    AND M2. RESPONSE = "011"
    AND TRUNC (M2. EFF_DT) = TRUNC (M1. EFF_DT))
    AND M1. HID = TEMP. HID (+)
    AND M1. EFF_DT = TEMP. EFF_DT (+)
    AND TEMP. HIDDEN IS NULL
    --------
    UNION
    --------
    SELECT
    M1. FIRST NAME,
    M1. LAST_NAME,
    M1. HIDDEN,
    M1. EFF_DT,
    M1. CID,
    M1. PLAN,
    (SELECT THE SAME. MEME_CK
    OF FADMIN. EVEN MEME_TABLE@TO_FUT, FADMIN. GRGR_TABLE@TO_FUT CHRISTIAN
    WHERE EVEN. M_HIN = M1. HID
    AND EVEN. GRGR_CK = CHRISTIAN. GRGR_CK
    AND CHRISTIAN. GRGR_ID = M1. GRGR_ID
    ) AS MEME_CK

    OF FADMIN. METR_TABLE@TO_FUT M1
    WHERE M1. TYPE IN ('60 ', ' 61')
    AND M1. RESPONSE TO ('016', '017', '022', ' 023')
    AND TRUNC (M1. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1. SYIN_INST = (SELECT MAX (M2. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M2
    WHERE M2. HID = M1. HID
    AND M2. TYPE IN ('60 ', ' 61')
    AND M2. RESPONSE TO ('016', '017', '022', ' 023')
    AND TRUNC (M2. EFF_DT) = TRUNC (M1. EFF_DT))
    ) TEMP1;
    END;
    /

    The error:
    ORA-00918: column ambiguously defined
    ORA-02063: preceding the line of TO_FUT
    ORA-06512: at "PROC_ENR_ACC", line 5
    ORA-06512: at line 5

    Good,

    Please can just as a test you try this and see what happens

    WITH variables AS
    (SELECT /*+ MATERIALIZE */
            TO_DATE(:START_DATE) start_date,
            TO_DATE(:END_DATE) end_date
     FROM dual)
        SELECT   TEMP1.FIRST_NAME,
                TEMP1.LAST_NAME,
                TEMP1.HID,
                TEMP1.EFF_DT,
                TEMP1.CID,
                TEMP1.PLAN,
                NVL (
                     (SELECT   'Y'
                      FROM   MEMI_TABLE MEMI
                      WHERE       MEMI.MEME_CK = TEMP1.MEME_CK
                      AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
                      AND MEMI.PBP = TEMP1.PLAN
                      AND MEMI.MEMI_TXN_CD IN ('AC', 'RE')
                      AND MEMI.MEMI_SEQ_NO = (SELECT   MAX (MI.MEMI_SEQ_NO)
                                              FROM   MEMI_TABLE MI
                                              WHERE   MI.MEME_CK = MEMI.MEME_CK
                                              AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
                                              AND MI.PBP = MEMI.PBP
                                              AND MI.MEMI_TXN_CD IN ('AC', 'RE')
                                              AND MI.MEMI_INTF_STS = 03)
                      ),'N') FLAG
       FROM (SELECT   M1.FIRST_NAME,
                      M1.LAST_NAME,
                      M1.HID,
                      M1.EFF_DT,
                      M1.CID,
                      M1.PLAN,
                      (SELECT   MEME.MEME_CK
                       FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                       WHERE       MEME.M_HIN = M1.HID
                       AND MEME.GRGR_CK = GRGR.GRGR_CK
                       AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
             FROM   METR_TABLE M1,
                    (SELECT   M3.HID, M3.EFF_DT
                     FROM   METR_TABLE M3
                     WHERE   M3.TYPE IN ('60', '61')
                     AND M3.REPLY IN ('117', '118')
                     AND TRUNC (M3.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
                     AND M3.SYIN_INST = (SELECT   MAX (M4.SYIN_INST)
                                         FROM   METR_TABLE M4
                                         WHERE   M4.HID = M3.HID
                                         AND M4.TYPE IN ('60', '61')
                                         AND M4.REPLY IN ('117', '118')
                                         AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
                     ) TEMP
             WHERE   M1.TYPE IN ('60', '61') AND M1.REPLY = '011'
             AND TRUNC (M1.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
             AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                 FROM   METR_TABLE M2
                                 WHERE       M2.HID = M1.HID
                                 AND M2.TYPE IN ('60', '61')
                                 AND M2.REPLY = '011'
                                 AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            AND M1.HID = TEMP.HID(+)
            AND M1.EFF_DT = TEMP.EFF_DT(+)
            AND TEMP.HID IS NULL
            UNION
            SELECT   M1.FIRST_NAME,
                     M1.LAST_NAME,
                     M1.HID,
                     M1.EFF_DT,
                     M1.CID,
                     M1.PLAN,
                     (SELECT   MEME.MEME_CK
                      FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                      WHERE       MEME.M_HIN = M1.HID
                      AND MEME.GRGR_CK = GRGR.GRGR_CK
                      AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
            FROM   METR_TABLE M1
            WHERE   M1.TYPE IN ('60', '61')
            AND M1.REPLY IN ('016', '017', '022', '023')
            AND TRUNC (M1.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
            AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                FROM   METR_TABLE M2
                                WHERE   M2.HID = M1.HID
                                AND M2.TYPE IN ('60', '61')
                                AND M2.REPLY IN ('016', '017', '022', '023')
                                AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            ) TEMP1;
    END;
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • I get windows32 error when I install a game (cd) into the computer. CD worked on the computer at home ' and last labtop. Help, please!

    install cd games I bought online
    windows32 error

    Hi installin games,.

    Welcome to Microsoft answers forums!

    (a) what is the exact error message that you receive?

    (b) what is the type of your operating system (32-bit \64bit) system?

    I suggest you try the following steps:

    Step 1: Use the Windows Installer Cleanup utility

    Download and then install the Microsoft Windows Cleanup utility. To do this, see the Microsoft Web site:

    http://download.Microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe

    Save the file to the desktop. When the download is complete, double-click the file and then follow the directions. When the installation is complete, click Start, point to all programsand then click Windows Installer Cleanup.

    In the list of the products installed , delete all entries that are related to the product you have installed wrong. If there are too many entries, click select all, and then click Remove. When you have deleted all entries, click exit, and then start the installation of the product

    290301 (http://support.microsoft.com/kb/290301/) Description of the Windows Install Cleanup

    Step 2: Download and install the latest Windows Installer 4.5

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    Step 3: The clean boot computer and try to install the game.

    http://support.Microsoft.com/kb/929135 ---> how to solve a problem by performing a clean boot in Windows Vista or in Windows 7

    Perform a clean boot (see step 1 in the link); If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    Step 4: Try to run the program in compatibility mode.

    To run the troubleshooting program compatibility Troubleshooter

    1. open the program compatibility problems by clicking on the Start button, then Control Panel. In the search box, type troubleshooting, and then click Troubleshooting. Under programs, click on run programs for previous versions of Windows.

    2. follow the instructions in the troubleshooting.

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    If the problem persists, please consult the manufacturer of the program.

    Note:

    1 make sure that the CD is not bad, scratches or stains on the CD

    2. you cannot run 64-bit on a 32-bit system applications

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Printer busy or error; When you work on Windows Server

    I'm working on a persistant problem with a specific printer where I work. A bit of history: first of all, this printer is used by users on WYSE thin clients connecting to a Windows Server 2008 R2 virtual via a RDP session, however, some users connect using Windows 7 Professional. It is a network printer on our corporate domain installed as a local printer on a print server, as well as a local printer on the RDP server in use by the users of the thin client. Now the printer works perfectly for print test pages, Word Documents, etc. However, the problem arises when my users need to print PDF documents, for which they mainly use Adobe Acrobat 2011, although some also use the latest version of the reader (we update player generally that the new versions are available). When trying to print, the print queue will say coil (page 1/2/3, etc.), and then it will immediately change state of printer busy or error. When this happens, until the job is canceled, no other jobs will process, regardless of the type of document. And to further complicate things, one of the main users of this printer says that's not yet each PDF, some and it doesn't seem to be a constant difference between those who does not print and those who will be. The printer in question is a Xerox Workcentre 7345, and I tried to install the latest drivers, PS versions both PCL6 and attempted to use the driver for the Fiery controller, all giving the same result. I installed the printer as a shared printer on the network on the print server, and I installed it locally on the RDP server. Both lead to the same "occupied or printer error. I also tried bypassing the spooler and print the document as an image, both of the separately and with the two parameters defined. I am at a loss, and my users can use is more reliable for this printer to print PDFS... I would like some suggestions on what to do at this point. Thank you.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN
  • Error when, with audio streaming via HTTP to the Simulator

    I use JDE 4.7 and 8900 Simulator.  I'm trying to listen to an MP3 via http to a blackberry app.  When you use the BufferedPlayBack example screen, I get the following error when the data source is trying to open the connection - "net.rim.device.cldc.io.dns.DNSException: error trying to solve.

    When I enter the same URL in the BlackBerry browser on the Simulator, I get the following error: "the selected server returned an error when you try to respond to your request.

    When I enter the same URL in my web browser in my PC, I am able to stream audio and play with QuickTime.

    Why I get this DNSException on the BB and not on my local PC?  The web engine runs also locally.  I know that the BB Simulator does not support rstp.  The Simulator also not does support streaming over http?

    This is the URL I used:

    http://myLocalMachine:8080/myMusic/anAudio.MP3;deviceside=true

    Thanks in advance!

    T

    I found a solution to the question in the thread below.  I increased the connection. MaxNumberOfKBytesToSend = 10240 in the... File MDS\config\rimpublic. Property and so was able to sucessfully stream mp3 to my request.

    http://supportforums.BlackBerry.com/T5/Java-development/increase-MDS-CS-limit-on-http-download-size/...

  • OE_ORDER_PUB. Process_Order errors when adding a detail if one of the existing detail rows row is updated

    Hello!

    Whenever a sales order line is updated but not yet recorded in the order form, oe_order_pub. Process_Order errors when you try to add on the same command line. It gives the error "line locked out at the treatment of" the first time you run the api then it gives the error "Record is currently underway on by another user, please try to update later" on successful runs.

    When I tried to simulate the same using two forms of sale, an update of one of the lines and do not save more while the other added a line in the same order sale then save, he managed to save the line.

    What I don't understand the API's for it's to stop me if I just add a line, and it has nothing to do if an other lines are updated by another user (and this is only possible on the order form)?

    Is there anyone who has encountered the same? This is the normal behavior of the api or I missed something? No work around?

    Thank you.

    This problem is solved.

    The solution to the problem is that the value to calculate price flag must be set to 'Freeze the price' If you do not want Process_Order to update the price of unit sales of existing lines SB. Based on my observation and technically speaking, Process_Order updates price of all the existing lines of unit sales (and probably other columns) linked to the price based on the price of the object's current price list if the indicator price calculated is 'Calculate price' (I have not tried but in "Partial award"). If other users happen to edit one of these lines of l.o. and has not saved, the update fails and this is the reason for my problem.

    Thank you.

  • Created undesirable layer with text

    I added an empty and added the text layer. But after his return to the view of layers, I don't see that a Virgin extra layer appeared in addition to the text layer. This is a problem because I have exceed the maximum number of layers. How to prevent this?

    Text layer is created on a separate layer, new. So just do not create an empty layer beforehand.

  • Error when you work with Ref Cursor

    Hi, I tried the following, but the err
    DECLARE
     TYPE ref_nm IS REF CURSOR;
     vref REF_NM;
     vemp emp%rowtype;
    BEGIN
     OPEN vref FOR SELECT ename ,sal FROM EMP;
     LOOP
      FETCH vref INTO vemp;
      EXIT WHEN vref%NOTFOUND;
        DBMS_OUTPUT.PUT_LINE ( vemp.ename ||','||vemp.sal ); 
     END LOOP;
      CLOSE vref;
    END;
    Error is
    ORA-06504: PL/SQL: Return types of Result Set variables or query do not match 

    Use you this structure as a buffer of extraction:
    PEMV emp % rowtype;

    This structure contains the whole line of EMP - all columns.

    That's what you're looking for cursor - 2 columns (not the whole line):
    Vref OPEN for SELECT ename, sal of EMP;

    You can not expect from PL/SQL to find out how to move the 2 column values in a structure that has more than just 2 columns. The error message is quite clear about this - read and think what is transport of the error.

  • Get this error when I try to sync files to the cloud...

    Cannot create the creative Cloud Files folder.

    It is the place I'm going first.  Online help says to go here and then under file I can get into the creative Cloud Files folder location, but as you can see I don't have this option.  Only to hit the Start button the synchronization.

    CC 1.jpg

    Creative cloud file is not the destination, that it points to because this hard drive no longer exists.

    CC 2.jpg

    clicking Retry gives me the exact and same, error by clicking on restore does the same thing, but without the retry button.  Meanwhile, my creative Cloud App screen looks like this, (until I click on activate File Sync Off):

    CC 3.jpg

    I know where my Creative Cloud Files folder, I just don't know how to tell that the application of the CC.

    Thank you very much for any help!

    Michele

    Please check if this helps:

    follow this suggestion:

    Accident every minute or so, after an automatic update to 2.1.0.108 - Adobe database synchronization

    For me, it works! Then disconnect from the creative clouds (not only quit the application) before proceeding!

    See failed to load the Sync location

    Concerning

    Stéphane

  • Error when try to save a file on the network after activating of Sync Center

    Hello world

    In society, we have here a folder on the network that is used and accessible in only 1 employee. This employee is a mobile profile, so, sometimes she works at home and at the office.

    To help in its work, we allow Sync Center, a partnership between the folder on the network, available in offline mode.

    But do not know why, whenever the change of user one sheet, Excel prints the error: "the xxx file is in use by the user xxx. Access denied. "

    This error started after that we have activated Sync Center.

    Anyone have an idea how I could fix this?

    Thanks in advance,

    Fernando

    Hi Fernando,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

Maybe you are looking for