ORA-08002 sequence < sequencename >. CURRVAL is not defined in the session

Hi all.

In what follows:

DECLARE

s_new_OJECT_TYPE CONSTANT VARCHAR2 (50): = "Application";
s_new_OBJECT_NAME CONSTANT VARCHAR2 (50): = "Print Room";
s_new_OBJECT_DB_TYPE CONSTANT VARCHAR2 (50): = 'Oracle ';
s_primary_application CONSTANT VARCHAR2 (50): = 'Visual ';
s_database_name CONSTANT VARCHAR2 (50): = "vprd2";
s_new_ROLE_NAME CONSTANT VARCHAR2 (50): = "CM_PrintRoom";
s_IS_DEV_ROLE_NAME CONSTANT VARCHAR2 (50): = "IS_Development";
s_ACTION_NAME_TO_ADD_1 CONSTANT VARCHAR2 (50): = "read";
s_ACTION_NAME_TO_ADD_2 CONSTANT VARCHAR2 (50): = "write";
s_ACTION_NAME_TO_ADD_3 CONSTANT VARCHAR2 (50): = "Administration";
s_ALLOW_PERMISSION CONSTANT VARCHAR2 (50): = "allow";

BEGIN

INSERT INTO env.security_object
Select env.security_object_seq.nextval as SECURITY_OBJECT_KEY,
Sot.security_object_type_key as SECURITY_OBJECT_TYPE_KEY,
s_new_OBJECT_NAME as OBJECT_NAME
OF sot env.security_object_type
where sot.object_type_name = s_new_OJECT_TYPE;


INSERT INTO approx. Role
Select env.role_seq.nextval as role_key,
s_new_ROLE_NAME as the NAME,
Dec.database_key as DATABASE_KEY
env.database_env_config dec
WHERE dec.database_type = s_new_OBJECT_DB_TYPE
and dec.primary_application = s_primary_application
and lower (dec.database_name) = s_database_name;

INSERT INTO env.security_subobject
Select env.security_subobject_seq.nextval as SECURITY_SUBOBJECT_KEY,
env.security_object_seq. CURRVAL as SECURITY_OBJECT_KEY,
NULL as NAME,
NULL as a CONDITION,
SA.security_action_key
of security_action its
where lower (sa.action_name) in (s_ACTION_NAME_TO_ADD_1);

INSERT INTO env.security_subobject
Select env.security_subobject_seq.nextval as SECURITY_SUBOBJECT_KEY,
env.security_object_seq. CURRVAL as SECURITY_OBJECT_KEY,
NULL as NAME,
NULL as a CONDITION,
SA.security_action_key
of security_action its
where lower (sa.action_name) in (s_ACTION_NAME_TO_ADD_2);

INSERT INTO env.security_subobject
Select env.security_subobject_seq.nextval as SECURITY_SUBOBJECT_KEY,
env.security_object_seq. CURRVAL as SECURITY_OBJECT_KEY,
NULL as NAME,
NULL as a CONDITION,
SA.security_action_key
of security_action its
where lower (sa.action_name) in (s_ACTION_NAME_TO_ADD_3);

INSERT INTO env.security_group
Select env.security_group_seq.nextval as SECURITY_GROUP_KEY,
env.security_subobject_seq. CURRVAL as SECURITY_SUBOBJECT_KEY,
Sat.security_access_type_key,
env.role_seq. CURRVAL as ROLE_KEY
of env.security_access_type Sam
where sat.access_type_name in s_ALLOW_PERMISSION;

I see the error in the text in bold:
Security_subobject_seq.currval ORA-08002 sequence is not yet defined in this session.

I know I should call nextval for this sequence before I can call currval but I did above SQL...
Am stuck on it. Any help would be appreciated.

Thank you

Well, Jamie. error occur for the sequence security_subobject_seq right?
Because there above "insert" statements.. in fact security_subobject_seq.nextval do not occur.
Reason is the condition "where" each end of insert statements, when this false condition so really "security_subobject_seq.nextval" not the case. :-) then you get an error.

Tags: Database

Similar Questions

  • Element is not defined in the SESSION

    Anyone has an idea why a user of the site would get a message error "some element is not defined in the SESSION" and no one else? Whenever the user presses a page that calls a session variable from a previous page that has defined the variable, they get an error message of session. They get the same results with different browsers, IE and Firefox. ???

    The problem is solved itself. I don't know how. I scoured the user through a few test pages (which does not require a login) who comes to set a variable in session to text, and then on the next page shows the session variable. It has worked well. I thought: "maybe it has to do with the session during a connection.
    Then I put the test pages in a folder that requires a login and test pages worked. Then I had the user to access pages throwing error "undefined in session", after logging, and the error disappeared. I don't know what happened.

  • ORA-38760: this database instance could not turn on the flashback database

    Hi guys

    Without knowing it, I deleted all the files in the directory "fra" where "flashback" folder was there because of space issues. Now am facing the error.

    It's my practical database.

    SQL > startup

    ORACLE instance started.

    Total System Global Area 608174080 bytes

    Bytes of size 1268920 fixed

    184550216 variable size bytes

    419430400 of database buffers bytes

    Redo buffers 2924544 bytes

    Mounted database.

    ORA-38760: this database instance could not turn on the flashback database

    SQL > alter flashback database;

    Database altered.

    SQL > SHUTDOWN IMMEDIATE;

    SQL > STARTUP MOUNT

    SQL > select flashback_on from database v$.

    FLASHBACK_ON

    ------------------

    RESTORE POINT ONLY

    Am not able to extinguish the flame.

    SQL > select * from v$ restore_point;

    Select * from v$ restore_point

    *

    ERROR on line 1:

    ORA-38701: Flashback database log 1 seq 1 wire 1:

    "/ u01/fra/PROD/flashback/o1_mf_c1l5n3lq_.flb".

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    Additional information: 3

    SQL > select flashback_on from database v$.

    FLASHBACK_ON

    ------------------

    RESTORE POINT ONLY

    I also tried to create a restore point and the flashback there.

    SQL > create restore point guaranteed rspt1 flashback database;

    Restore point created.

    SQL > select * from v$ restore_point;

    Select * from v$ restore_point

    *

    ERROR on line 1:

    ORA-00600: internal error code, arguments: [krfg_get_keepseq_2], [1], [0], [0,]

    [0], [0], [0], [0]

    SQL > flashback data base to restore the point rspt1;

    flashback database to restore the rspt1 point

    *

    ERROR on line 1:

    ORA-38729: not enough flashback database data log do FLASHBACK.

    Please help me in this regard.

    Alert log file:

    ...

    ...

    ...

    Mount of redo thread 1, with mount id 305866694

    Sun 25 Oct 10:13:30 2015

    Bytes allocated of 3981204 in the shared pool for the generation of flashback buffer

    From RVWR background process

    RVWR started with pid = 16, OS id = 15486

    Sun 25 Oct 10:13:30 2015

    Errors in the /u01/oracle/product/10.2.0/db_1/admin/prod/bdump/prod_rvwr_15486.trc file:

    ORA-38701: seq 11 Flashback database log 11 1 thread: ' / u01/fra/PROD/flashback/o1_mf_c2oqypb0_.flb '.

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    Additional information: 3

    Sun 25 Oct 10:13:30 2015

    Database mounted in exclusive Mode

    Completed: ALTER DATABASE MOUNT

    Sun 25 Oct 10:13:30 2015

    ALTER DATABASE OPEN

    ORA-38760 marked during: ALTER DATABASE OPEN...

    Trace file:

    ...

    ...

    ...

    :() 2015-10-25 10:13:30.087 SERVICE NAME

    SESSION ID: (156.1) 2015-10-25 10:13:30.087

    ORA-38701: seq 11 Flashback database log 11 1 thread: ' / u01/fra/PROD/flashback/o1_mf_c2oqypb0_.flb '.

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    Additional information: 3

    1. Thank you.

    you experience serious problem... because usually it works very well.

    Try the following:

    SQL > shutdown immediate;

    SQL > bootable media.

    SQL > alter flashback database;

    SQL > alter database backup controlfile to trace noresetlogs;

    SQL > shutdown immediate;

    go to the trace file generated from running (alter database backup controlfile to trace noresetlogs ;)

    location of the trace file is located in the query:

    SQL > select * from v$ diag_info;

    It will contain the script with the SQL commands, you can rename the file with the extension ".sql".

    SQL > startup nomount

    SQL > @trace_file. SQL

    SQL > restore database;

    SQL > alter database open;

    So basically you are going to recreate the files of control again...

  • vCO WebView error - parameter value is not defined in the list of the Webview attribute

    Hello

    I tried to create a simple web view for Orchestrator (5.5.1 1617127), who will present a link to launch a single workflow. I followed the instructions in the Guide of VMware and the VCO Team Blog, but both find themselves with similar errors, which seem to have a common root: it seems that the display of web pages can not read the attributes.

    On the web page, I'll see something similar to the following:

    WebView - an exception has occurred.

    Reason: WorkflowLink component error: value of the parameter "attribute" (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    You may continue by restarting the session.

    In the server.log, I see the following: -.

    11:46:04.717 2014-10-02 + 0100 [http-bio-xxx.xxx.xxx.xxx-8281-exec-2] {} [WebviewExceptionPage] Exception Webview INFO - message:

    org.apache.hivemind.ApplicationRuntimeException: component error WorkflowLink: "attribute" parameter value (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    The createVM attribute is set in the correct web view as an attribute with a Type of Workflow and value to create simple virtual machine. I get a similar error any attribute type I try to get out of the workflow (the example of getVirtualMachineList does not create an error on the page, but is not fill the window and creates a similar message appears in the log).

    Can someone give me directions on what to watch next? I can't find anyone else with this error, which makes me think it might be something specific to this medium, but I can't work on what it could be.

    Thanks in advance,

    Ben

    I had the time this by restarting the service after each new attribute has been added, which was far from perfect, but looking around the forums, I have seen that WebViews were being obsolete, so I'll have to look at alternatives in any case.

  • Not able to deploy Applications: "the process is not defined in the descriptor.

    All the

    I have a pretty serious problem here to try to take a LCA of an environment and get in another environment.  Source and destination environments are LCES 2.5 (LCES 2 with Service Pack 2).  I have about 6 applications and there are a few extreme dependencies (one application that refers to an asset from another application) are.  I took a STROKE of all these applications in the environment of the source and ACL matter perfectly in the destination environment, but I am unable to deploy one of the applications that have extreme dependencies.  The error that I always get when I try to deploy any application that has an extreme addiction is:

    [Process name] otherwise is not defined in the descriptor.

    I tried all of the following conditions:

    (1) combined 1 LCA applications

    (2) taking several local calling areas where each ACL contains only a single request

    (3) taking several local calling areas where each LCA includes an application as well as all the extreme dependencies for this application

    No matter what I try, they deploy.  I can import the LCA and I can get the apps in the Workbench and play with them, but they do not deploy everything simply.  I also tried to manually set all the groping in the processes themselves, but that does not work either.

    Any help would be appreciated.

    I wanted to just follow the solution to my problem.

    It seems centres issue around distant circular dependencies.  In general, it seems that LiveCycle choke when two applications of each reference to another.  Note that I'm not talkinng on the true circular referencing here in which a process in the references of the application has an application B while this process refers to the initial process request.  Indeed, although I have not tested recently, I believe that LiveCycle can actually catch this kind of question.  I'm talking about circular dependencies of distant is simply when a process requests was (let's call it a1) refers to a process in application B (let's call b1) while a process in application B (call the b2) refers to a process in applicatoin has (let's call a2).  Apparently, this type of circular reference causes the deployment of applications of such choke.

    The fix was painful because I had to manually delete all distant dependencies of these two application, deploy these two requests to get in the long term and then implement these dependencies again.

    Now it seems preferable to never have 1 direction of the dependencies for any application.

  • Perl not defined to the Oracle Applications environment. (Libraries T2K not in INC.

    Hello

    Am getting the following error when applying patches autoconfig.

    $FND_TOP/patch/115/bin/txkprepatchcheck.pl
    Perl not defined to the Oracle Applications environment. (Libraries not in the INCLUSION list T2K)
    Make sure that automatic configuration was performed and found a source correctly your environment.
    /U01/tech/appl/FND/11.5.0/patch/115/bin/txkprepatchcheck.pl line 131.
    BEGIN failed--compilation missed the line 141 /u01/tech/appl/fnd/11.5.0/patch/115/bin/txkprepatchcheck.pl

    Fine.

    (1) source the environment file
    (2) make sure that 'APPLRGF' variable is set in the environment. If this isn't the case, set it to the same value as "APPLTMP".
    (3) in the place where this patch was unzipped, patch_top/patchnumber/fnd/patch/115/bin.

    Run the utility as follows:

    Platform command line

    UNIX or Linux (must be a single line)
    ./txkprepatchcheck.pl-script = ValidateRollup-outfile = $APPLTMP/txkValidateRollup.html - appspass =

    do not FND_TOP/patch/115/bin

  • DSN of ELEMENT not defined in the APPLICATION scope

    DSN of ELEMENT not defined in the APPLICATION scope


    Hi, I'm new to see my problem is as follows:

    I have 2 files:

    application.cfm that is inside
    d:\inetpub\wwwroot\mysite\

    and

    hand. CFC
    (d:\inetpub\wwwroot\mysite\cfc)

    inside of application.cfm I set an application variable:
    < cfset Application.DSN = "mydb" >
    (and connections mydb works if they are tested in coldfusion administrator)

    inside the main.cfc, I use the application variable:

    < cffunction = 'getLogin' access returntype = name "remotely" = "struct" output = "true" >
    < name cfargument = "nickname" type = "string" required = "true" >
    < name cfargument = "password" type = "string" required = "true" >
    < cfset returnedValue = structNew () >
    < name cfquery = "q_getLogin" datasource = "#application. DSN #">"
    SELECT id, nickname
    to allieve
    etc...

    ..
    < cfreturn returnedValue >
    < / cffunction >

    I call the SWC from flash, and I get the DSN of ELEMENT error undefined in APPLICATION scope.
    Someone has an idea of what could be bad?
    Thanks in advance,
    Mitja

    Not sure now why doesn't he call application.cfm, but my solution to CF6 time should include the application.cfm within my CFC... you can add a cfinclude within the item, on the very top, not inside any function... every time that Flash calls the CFC this code will be executed before the function call.
    If this component is also used by CF, then you can wrap which include in a conditional... You can check application.applicationName...
    HTH

  • RADIOV element is not defined in the FORM

    Hello
    I have this.
    I want to insert values such as blue, yellow or red
    in the field of database col_Radio.

    what I have to change to make it work?

    Thank you

    ERROR:

    RADIOV element is not defined in the FORM

    Exceptions

    15:53:22.022 - term Exception - in C:\CFusionMX7\wwwroot\ACT_inputcolor.cfm: line 10
    RADIOV element is not defined in the FORM.

    Note: line 10 is "#Trim (Form.RADIOV), #

    --------------------------------------------------------

    What I need to change to the radiov element to define or is this the only mistake?

    In other words, the FORM variable name must be identical to yourname of the field.

    When you submit your form, this

    Becomes
    #FORM.group1 #.

  • obpasswordchangeflag not defined during the creation of the user

    Hello

    I have the IOM - OAM 11 GR 2 PS3 integration in my environment. I completed all the steps mentioned in https://docs.oracle.com/cd/E52734_01/oim/IDMIG/oim.htm#IDMIG4000

    After creating the user, when I tried to connect with the end user is not redirect to the first login page. Instead he goes to the home page of /identiy. When I checked the profile of users on the OUD, the obpasswordchangeflag attribute is not set.

    Users a schema defined in OUD oblixPersonPwdPolicy.

    I already checked solution mentioned in this link, but still this attribute is not set. https://docs.Oracle.com/CD/E52734_01/OIM/IDMIG/OIM.htm#CHDFDBFD

    Pointers?

    a value of false in one of the adapter in adapter_os.xml. Change this attribute for real people.

  • ORA-01092: ORACLE instance is complete. Forced logoff ORA-00942: table or view does not exist on the 12 c CARS

    Hey Geeks,

    I met a problem when starting my 12 c RAC database.

    To mount it fine, but when I try to open, he throws me an error.

    System Global area 1.5400E + 10 bytes

    Bytes of size 4737560 fixed

    2952791528 variable size bytes

    1.2415E + 10 bytes database buffers

    Redo buffers 26857472 bytes

    Mounted database.

    SQL > alter database open;

    change the database open

    *

    ERROR on line 1:

    ORA-01092: ORACLE instance is complete. Disconnection forced

    ORA-00942: table or view does not exist

    Process ID: 11338068

    Session ID: 1429: No.3

    Here is the output of the trace file...

    ORACLE_HOME = / oracle_home/app/orahome

    Name of the system: AIX

    Name of the node: INS1

    Version: 1

    Version: 7

    Machine: 00C8CCA74C00

    Instance name: INST1

    Redo thread mounted by this instance: 1

    Oracle process number: 7

    The Unix process PID: 20381876, image: oracle@ins1 (TNS V1 - V3)

    2014-11-27 22:49:20.892

    SESSION ID: (197.5) 2014-11-27 22:49:20.892

    CUSTOMER ID :() 2014-11-27 22:49:20.892

    NAME OF THE SERVICE :() 2014-11-27 22:49:20.892

    NAME of the MODULE: (sqlplus@ins1 (TNS V1 - V3)) 22:49:20.892 2014-11-27

    ACTION NAME :() 2014-11-27 22:49:20.892

    2014-11-27 22:49:20.889716: start the recovery of field = 0, valid = 0, flags = 0 x 4

    2014-11-27 22:49:24.580

    Awarded with 32 slaves of recovery success

    With the help of 3 buffers overflow by slave of recovery

    2014-11-27 22:49:24.740

    1 post of thread: logseq 15, block 2, CHN 3510749

    cache-bass rba: logseq 15, block 3

    RBA on disk: logseq 15, block 72, RCS 3510824

    Start the recovery at logseq 15, block 3, Yvert 0

    2014-11-27 22:49:24.981

    Started the resilvering redo thread 1 seq 15 blocks 72-73

    2014-11-27 22:49:24.994

    Finished resilvering redo thread 1 seq 15

    2014-11-27 22:49:24.994

    Started writing zeroblks thread 1 seq 15 blocks 74-81

    2014-11-27 22:49:24.994

    Completed written zeroblks thread 1 seq 15

    = Redo read statistics for thread 1 =.

    Total physical reads (from disk and memory): 4096 KB

    -Redo read_disk - statistics

    Read rate (ASYNC): 35KO in 0,25 s = > 0.14 Mb / s

    Long: 0 Ko, moves: 0/104 (0%)

    Longer LWN: 2 k, moves: 0/33 (0%), moved: 0 MB

    Redo last scn: 0x0000.0035922b (3510827)

    ----------------------------------------------

    -Recovery Hash Table statistics

    Hash table buckets = 262144

    More long string hash = 1

    Hash string average = 25/25 = 1.0

    Max compares by lookup = 1

    AVG compares by lookup = 151/176 = 0.9

    ----------------------------------------------

    2014-11-27 22:49:25.007

    KCRA: start the debt for 25 blocks of data collection

    2014-11-27 22:49:25.039

    KCRA: treated blocks = 25/25, has claimed = 25, eliminated = 0

    2014-11-27 22:49:25.054

    Online Redo Log recovery: thread 1 mem Group 6 Seq 15 reading 0

    2014-11-27 22:49:25.060

    Ask again filled with 0.02 MB

    2014-11-27 22:49:25.235

    Control of completed recovery point

    -Recovery Hash Table statistics

    Hash table buckets = 262144

    More long string hash = 1

    Hash string average = 25/25 = 1.0

    Max compares by lookup = 1

    AVG compares by lookup = 176/176 = 1.0

    ----------------------------------------------

    Recovery thread nab 1 seq 15 to 74 with 8 zeroblks sets

    2014-11-27 22:49:26.000

    2014-11-27 22:49:26.000433: validate the domain 0

    2014-11-27 22:49:26.001348: valid domain 0, flags = 0x0

    2014-11-27 22:49:28.315

    County ofsmtab$: 0 entries

    2014-11-27 22:49:28.732

    ORA-00942: table or view does not exist

    ORA-00942: table or view does not exist

    2014-11-27 22:49:28.738

    USER (ospid: 20381876): put an end to litigation because of the 942 error

    In my case, the problem solved by running the following...

    GRANT SELECT on SYS. The USER$ in XDB.
    GRANT SELECT on SYS. The USER$ in CTXSYS.
    GRANT SELECT on SYS. The USER$ to DVSYS;
    GRANT SELECT on SYS. The USER$ to LBACSYS.
    GRANT SELECT on SYS. The USER$ to APEX_040200;
    GRANT SELECT on SYS. The USER$ to DV_SECANALYST;

    See the screenshot above.

  • Get the error not defined for the current document in the script

    I get a "error number: 2" "error string: myDoc is not defined" in my script.

    I modified a few scripts so that they cross my entire book and open each section (document) in my book, and run the code for each section.ext

    The code runs great and opens and closes the sections where it does not add links to text, but once, it opens a document and view text that you CAN add links, it generates this error.  Here is my code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle,
                myCount = 0;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list"); 
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find 
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! " + myCount + " hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
            myCount++
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    

    Any help is greatly appreciated!

    That ends up being my fixed/final code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument, myDoc, myHyperlinkStyle);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! Hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin, myDoc, myHyperlinkStyle) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring, myDoc);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination, myDoc);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination, myDoc){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL, myDoc){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    
  • Variable is executed twice and is &amp; quot; not defined &amp; quot; the second time around!

    Hello ~

    I have a weird problem at hand. I'm passing in a URL variable from the first page of one application to another. I know he spent properly on my second page, because I can get out. However... The variable is defined at the top of the page in the < head > tags, above and outside a < cfif isDefined ("form.submit") > cela... < / cfif >. The shape itself is in the body of the page. So when I navigate to the page of form, my variable displays, but then when I hit the button send answered me that this same variable is not defined, although it is not part of the function isDefined cfif and has already been correctly set when the page is loaded initially. What's a sense? Help, please!

    I'm having a little trouble after you on that since you are showing only pieces of your code, but...
    It seems to me that firmID is not the form. You do not show your form code, so I'm guessing.
    Can you confirm that formID is indeed a value inside the form tag?

    I highly suggest this scope you your variables. That prevents a lot of confusion and can make the code much easier to understand. Things like are really nothing, but might help.

    Once you get this figured out, I would also propose research using the tag.

  • Not defined in the ListBox component

    Help, please. I change the publication settings to export my movie in flash 8 instead of flash 6.

    I have a ListBox component which is filled during execution. This works very well in version 6, but now there is a problem

    The word "Undefined" appears on each line in the list box that did not have all the data on it. It is not recognized as a list box entry because you cannot select and the table uses the list box is empty when this is displayed. The word "Undefined" appears only on the lines without data when the box has less than 4 items in it (the height of the box means that the scroll bars are enabled when more than four items are added, which means no 'empty lines' are visible.) "Undefined" appears only on empty rows that are visible.

    I even tried to play with the component to get rid of it without joy. I'm now pulling my hair out. If you have an idea please let me know.

    Hello. I managed to solve it, here's how I did it:

    Navigate to your library in the following folder:
    User of Flash UI components > component skins > Global Skins

    Open the "FLabel" film for editing. Open the control panel actions and show actions for the first frame of the layer 'methods of the class. Scroll down to the method defined as "FLabelClass.prototype.setLabel = function (label). At the beginning of this method, add the following code to detect an indefinite label and replace it with a string of length zero.

    If (label == undefined) {}
    Label = "";
    }

    Which has worked perfectly for me, hope it helps you too.

    Greg

  • Mobile applications - target component using the component of reference - JSON is not defined in the scope

    Application based Mobile Apps to integrate angular with AEM and transfer data to angular range of AEM using angular.json.jsp and controller.js.jsp. When I am using this standalone as a component and drag to the page that is based on the angular model. The JSON created in angular.json.jsp is readable in controller.js.jsp with "frameworkType = angular.

    When this component is written in another page, in another page trying to use within the reference element, the angular.json.jsp, controller.js.jsp does not come to the image at all.

    I had a use case to create the JSON structure (to go to angular range) in one place, then all pages using the reference component. Pointers would be useful

    Hi Sandeep,

    The best recommendation I can offer at this point is to create an extension of the component/libs/foundation/components/reference that includes the node of cq: model by specifying frameworkType: angular and supports transmission by proxy of applications angular.json and controller.js to the resource "referenced". I've hacked together an example of component to prove:

    Mobile reference component example · GitHub

    Hope this helps,

    Bruce

  • element not defined in the url

    Hi-
    I was assinged to create screens .cfm for our web page. I have absolutely no. Cold Fusion or HTML background. I have some introductory information to C++, c# and VB. I use Dreamweaver to create ColdFusion pages.

    Our Web site is used to display data, not to submit information on the forms. The first time that a user presses my form called detail_staging.cfm a SQL statement executes happening three variables of the previous grid using:

    SOME stuff
    Control PANEL
    WHERE card_data.card_year = < CFQUERYPARAM value = "" #URL.FY # "CFSQLTYPE ="cf_sql_char"> AND"
    CARD_DATA.card_month = < value CFQUERYPARAM = '#URL. "MY #" CFSQLTYPE = "cf_sql_char" > AND
    agencydim.agy_agency_name = < cfqueryparam value = '#URL. "AGN #" cfsqltype = "cf_sql_char" >

    This works very well and displays information based on the year, month and the Agency. I wanted the user to be able to change the month, but keep the year and the Agency. I've added:

    < action = "FORM detail_staging.cfm" method = "get" > "
    < div align = "center" > < span class = "page_text_bold" > select month: </span >
    < select name = "Month" class = "page_text_side_header_content" >
    < cfoutput query = "Month" >
    < option value = "#CALENDAR_MONTH #" > #CALENDAR_MONTH # < / option >
    < / cfoutput >
    < / select >
    < input type = "submit" value = "go" >
    < / div >
    < / MAKE >
    CALENDAR_MONTH is filled in the drop down based on the query 'months '.

    HERE'S THE PROBLEM:
    When I try to change the month, I get "Element FY is undefined in URL" how to keep the value of the variable for FY and AGN that appeared the first time the page is loaded and change only the month?

    I tried to find an answer to this for a day and a half now and I hope that you all can help me.

    Thank you very much
    Wendy

    Thanks for your reply. I'm still not it. The stuff that I looked up
    told to put an entry inside the form tag, but when I do that he wants a
    name - so I named it.

    Now, it does not display anything. Is there something I'm missing or one
    more precise steering. You can direct me.

    You also put it in the block so that the url variable
    is resolved in its value?


    Select the month:






    You will also need your name chosen to match the url name you use in the
    query. They both must be either 'MY' or 'months '.

Maybe you are looking for