Loading Captivate files using loadMovieNum

I have a swf that was supplied to me from a client that
exported it from Captivate
I am loading it into another swf using loadMovieNum –
loadMovieNum("file.swf", 10);
When I try to do basic stuff with it such as –
_level10.stop(); or
if (_level10._currentframe==_level10._totalframes){– I
am unable to communicate with the loaded capitvate swf.
Why do they not act like regular loaded swfs, and is there
another way I can communicate with it to find out when the swf is
complete.

A SWF is not necessarily a SWF, if you get my drift. It's
possible that what you want to do can't be done, but are you aware
that Captivate has it's own little set of control and navigation
variables (all left over from RoboDemo days).
The
link is right here, though the same page isw found in your
Captivate Help. This URL is linked directly to that document.
Like I said, it may not help, but FWIW . . .
.

Similar Messages

  • Loading exe file using loadMovieNum

    I have converted SWF into EXE using SWF Studio 2.2 to be able
    to run flash
    without havinf a FLASH player installed.
    It works fine except one feature. On clicking a picture it is
    supposed to
    load another movie using loadMovieNum()
    That other movie is too converted to EXE and loadMovieNum is
    called as
    loadMovieNum(another_movie.exe,0) which loads nothing though
    another_movie.exe is in the same folder as another_movie.swf
    which loads
    fine. I indicated the absolute path to another_movie.exe like
    "c:/folder1/folder2/another_movie.exe" - no joy.
    Does this mean that loadMovieNum loads SWF only and cannot be
    used to load
    EXE. If this is the case, how do I get round this?

    Thanks. Do you mean that the main exe file will serve as a
    projector for swf
    loaded into it?
    "the fleece" <[email protected]> wrote in
    message
    news:e6ov3j$gse$[email protected]..
    > no, you cant load up an exe.
    > but you dont have to, its just the main file that needs
    to be and exe,
    export the others as swf

  • Load multiple files using the same data load location

    has anybody tried loading multiple files using the same load locations. I need to do this as the data in these multiple files will need to be exported from FDM as a single export file. the problem i am facing is more user related. since these files will be received at different points of time, users will need a way to tell them what has been loaded and what is yet to be loaded.
    is it possible to throw a window on the web broser with OK and Cancel buttons from an event script?
    any pointers to possible solutions will be helpful

    was able to resolve this. the implementation method is as follows
    take a back up of previously imported data in the befcleardata event script. then in the beffileimport event append the data to the import file. there are many other intricacies but this is the broad implementation logic. it allowed my users to load multiple files without worrying about append or replace import type choices

  • Other problems with loading Captivate files into Flash AS3 project

    I have a Captivate file done with Captivate 3, published to
    Flash player 9 that is being loaded into Flash AS3. The captivate
    is a simple recording of some mouse clicks in a browser. I am
    displaying the playbar along the bottom, and its buttons all work
    fine except for the progress bar, where you can drag the knob and
    scrub back & forth in your presentation.
    This progress bar is not working as it should. I see the
    mouse cursor change to a hand, but when I click I cannot drag the
    knob to control the progress bar. The other buttons in the playbar
    do work (replay, pause, play, back, forward).
    This is a unique problem in that it is only happening when
    viewed in IE (7) when loaded into my Flash AS3 project. When viewed
    in Firefox in my project, or as a standalone SWF, or as a SWF
    simply embedded onto a plain HTML page, it works just fine.
    Does anybody have any insight?
    Another thing I notice with loading Captivate files with AS3
    is the the amount of output messages it displays. Rather annoying
    (unless this is a "feature" I've yet to be aware of - heh)

    Hi,
    I know exactly how you feel, there is simple answer; replace
    Captivate for Camtasia Studio 5 at techsmith.com. The weight on
    those shoulders will be gone! You'll smile more, be more
    socialable. One Happy Person.
    I am very happy person ;)
    Kind Regards,
    Boxing Boom

  • I am  unable to load GRAPHIC files using the transaction SFP.

    I am  unable to load GRAPHIC files using the transaction SFP.
    The error message says that there is no connection to the below given url.
       http://<hostname:8000>/sap/bc/fp/
    is it something like i have to activate this service in transaction sicf ?

    Try http://<hostname:8000>/sap/bc/fp/!
    ! at the end ..
    Regards
    Juan

  • Can I load gMax files using Java3D?

    Can I load gMax files using Java3D?
    I need to know this if I am going to use Java for my project.

    What format are the files in? Can you export as .3ds? If you can, there are loaders for these files.
    There are also loaders available for VRML, Obj, etc - see what you can export the file as.

  • Unable to Load Captivate files to Creative Cloud

    We have several captivate files that that for whatever reason we are unable to upload to creative cloud.  We have tried from both Macs and PCs and receive the same message.  "A virus was detected in Filename. This file will not be uploaded."   They function in every respect in both cp7 and cp8.  We have scanned them with mac and pc virus scanners.  I can remove all the contents of the file and it still fails.
    If I copy out all the slides to a new file, the file loads to cc. There is a lot of master template and advanced actions that would be lost if we have to port out the slides. This is not a great solution.  
    Can anyone suggest possible causes or remedies?  My hope this there is some resource missing or corrupted in the file structure and that can be repaired.
    Thanks for your attention.

    Warner,
    The only virus detection program that I found that recognizes this virus is ClamWin (Free Antivirus for Windows - Open source GPL virus scanner) I used it to scan the text animation swf files ( installed with my Adobe Captivate 8 64 bit program files. Below is the report. I hope this helps someone at Adobe to find and fix the issue as soon as possible. Since I now know there is a virus on my system, I really need a fix as soon as possible. What I read about this virus is that "it will be used as a backdoor to spread more malware, malicious, and other Trojan virus... usually monitors internet browsing activity and collects confidential information of the victims and then sends them to Cybercriminals...."
    Here are the results of my program directory scan. As you can see not all text animations are impacted but many are.
    Scan Started Tue Jan 27 07:36:59 2015
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Blade.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Blue_Aura.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Blurrywave.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Cascade_Dive.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Catapult.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Cloning.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\DePlume.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Elliptical.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Fade_In.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Feather.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Fillin_Blanks.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Flashlight.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Flight.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Flowright.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Fly_Away.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Fog_Lifted.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Futbol.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Giftwrap.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Green_Globe.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Gridright.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Hori_Scan.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\illusion.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Leading_Star.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Light_Passage.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Matador.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Mini_Starburst.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Modflare.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Multi_Wake.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Ornaments.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Paradigm.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Passby.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Pastel_Prism.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Pivot.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Prismflow.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Pythagorean.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Raindrops.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Red_Hot_Skew.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Reflect.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Rotate_Left.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Shufflecards.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Sidestep.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Slant_Slide_Blinds.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Sliced.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Sliding.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Slidingblinds.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Spindle.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Spintop.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Square_Roll.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Starburst.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Stuff_It.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Swingstack.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Take_Two.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Topsy_Turvy.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Tossup.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Trailing_Light.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Transition.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Trans_Pivot.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Trickle_In.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Turnabout.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Twinkle.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Twinkle_Trail.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Twirl_flip.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Typing Text With Sound.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Typing Text.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Wake.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Waltz.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Waveripple.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Whimsy.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Windblown.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Windmill.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Wizard.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    C:\Program Files\Adobe\Adobe Captivate 8 x64\Gallery\TextAnimations\Zoomout.swf: Swf.Exploit.CVE_2014_0564-2 FOUND
    ----------- SCAN SUMMARY -----------
    Known viruses: 3733799
    Engine version: 0.98.5
    Scanned directories: 1
    Scanned files: 85
    Infected files: 72
    Data scanned: 11.62 MB
    Data read: 5.65 MB (ratio 2.06:1)
    Time: 7.050 sec (0 m 7 s)
    Completed

  • Error while loading xml files using JDBC

    Hi,
    I am trying to load xml files into an xmltype table using JDBC calls and am getting this error for some files
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    The xml files and our database are both UTF-8 encoded. The version of oracle that we have here is 9.2.0.6
    Any suggestions in this matter will be greatly appreciated.
    Thanks,
    Uma

    I also experienced this problem and unfortunately this solution didn't work for me given that the tag you suggested was already on the XML file.

  • Issue in How-To document "Load flat file using SAPGUI"?

    Hi,
    I'm having an issue with following lines in the How-To document.
    I've a characteristic "CHAR1" which is restricted with multuple values in the planning level.
    after the upload using this document, CHAR1 is being loaded incorrect & during my debugging I've noticed that program is changing CHAR1 values while executing following lines of code.
    It works fine, if i don't have a restriction for CHAR1 at planning level.
    It also works fine, if i restricted CHAR1 with a single value in level.
    It's not working as expected, if i restrict CHAR1 with multiple single values.
    incase of multiple single values restriction, following is happening.
    let's say i load following file & i restricted CHAR1 with values "aaaaa,fffff" in level.
    CHAR1 CHAR2 value
    aaaaa bbbbb 1000
    fffff eeeee 2000
    it's being loaded as follows. Program is changing all values of CHAR1 with 1st value of the restricted multiple values and in this case, it is "aaaaa".
    CHAR1 CHAR2 value
    aaaaa bbbbb 1000
    aaaaa eeeee 2000
    Has any one encountered the same problem?
    Marc,
    Could you please comment on this.
    >>> INSERT
    Set fixed fields
    LOOP AT ito_chasel INTO ls_chasel.
    READ TABLE ls_chasel-t_charng INTO ls_charng INDEX 1.
    IF sy-subrc = 0 AND ls_charng-option = 'EQ'.
    ASSIGN COMPONENT ls_chasel-chanm OF STRUCTURE ls_data-s_chas TO <f>.
    IF sy-subrc = 0.
    <f> = ls_charng-low.
    ENDIF.
    ENDIF.
    ENDLOOP.
    <<< INSERT
    Appreciate any help.
    Hari Immadi
    http://immadi.com
    SEM BW Analyst

    Marc,
    I still need to keep the lines of coding as I've few characteristics restrictied to single values & one characteristic restricted to multiple single values.
    when the coding is commented out, single value restricted characteristics are not getting populated with any value.
    I'm counting the table entries "ls_chasel-t_charng" and if entries are 1, then am activating the code. this seems to be working fine. Do you see any problems/issues with this?
    Hari Immadi
    http://immadi.com
    SEM BW Analyst

  • Loading accdb file using for each loop in to single target table

    I have 3 accdb file as below in single folder, in control flow I have created a for each loop to loop through all the below file.  In dataflow task I have created oledb source using connection manager to point to first file a1.accdb. I am trying
    to load all the file into single below mentioned target table, here It is only loading first file it is not looping through other two file.
    This I have tried to load .txt files and csv files it is working perfectly but similarly when I try to load access db file table it is not working, can any one of you help me?
    1. a1.accdb contains only one table  a1tab ( col1 col2 col3 )  
    2. a2.accdb  contains only one table  a2tab  ( col1 col2 col3 )
    3. a3.accdb  contains only one table  a3tab   ( col1 col2 col3 )
    I have a target table with similar structure as source
    Target table <TargetTable> Col1 Col2 Col3
    aak

    Thanks Arthur, please find below response
    How do you handle the different table names?  Cant we handle it in a similar manner, how we handle the .csv/.txt files with different name and similar structure for sources(multiple files) and target (single table)
    Is it good to drop the idea of for each loop and create a separate task for each accdb file? to be loaded to same target table( performance wise etc.. any justification would be helpful)
    You must handle the connection string dynamically?
    Can you help me with the logic for handling connection string dynamically
    aak

  • Loading xml file using owb

    Hi Gurus,
    I am new to owb and as per requirement we need to load xml files into oracle table using owb.
    below is the xml file:
    <bookstore>
    <book category="COOKING">
    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
    </book>
    <book category="CHILDREN">
    <title lang="en">Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
    </book>
    <book category="WEB">
    <title lang="en">Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
    </book>
    </bookstore>
    please help me in loading above xml file using owb.

    You can leverage the XML SQL functions to extract from XML using the database, see the blog post below;
    https://blogs.oracle.com/warehousebuilder/entry/leveraging_xdb
    For example to extract information from your XML document the following SQL can be generated from OWB;
    select extractValue(value(s), '/book/author'),
    extractValue(value(s), '/book/year'),
    extractValue(value(s), '/book/price') from
    ( select XMLType('<bookstore>
    +<book category="COOKING">+
    +<title lang="en">Everyday Italian</title>+
    +<author>Giada De Laurentiis</author>+
    +<year>2005</year>+
    +<price>30.00</price>+
    +</book>+
    +<book category="CHILDREN">+
    +<title lang="en">Harry Potter</title>+
    +<author>J K. Rowling</author>+
    +<year>2005</year>+
    +<price>29.99</price>+
    +</book>+
    +<book category="WEB">+
    +<title lang="en">Learning XML</title>+
    +<author>Erik T. Ray</author>+
    +<year>2003</year>+
    +<price>39.95</price>+
    +</book>+
    +</bookstore>') adoc from dual+) r,
    table(XMLSequence(extract(r.adoc, '/bookstore/book'))) s;
    Cheers
    David

  • Problem loading XML-file using SQL*Loader

    Hello,
    I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
    Loader control-file:
    LOAD DATA
    INFILE *
    INTO TABLE BATCH_TABLE TRUNCATE
    FIELDS TERMINATED BY ','
    FILENAME char(255),
    XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
    BEGINDATA
    data.xml
    The BATCH_TABLE is created as:
    CREATE TABLE BATCH_TABLE (
    FILENAME VARCHAR2 (50),
    XML_DATA SYS.XMLTYPE ) ;
    And the data.xml contains the following lines:
    <?xml version="2.0" encoding="UTF-8"?>
    <!DOCTYPE databatch SYSTEM "databatch.dtd">
    <batch>
    <record>
    <data>
    <type>10</type>
    </data>
    </record>
    <record>
    <data>
    <type>20</type>
    </data>
    </record>
    </batch>
    However, the sqlldr gives me an error:
    Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    If I remove the first two lines
    "<?xml version="2.0" encoding="UTF-8"?>"
    and
    "<!DOCTYPE databatch SYSTEM "databatch.dtd">"
    from data.xml everything works, and the contentents of data.xml are loaded into the table.
    Any idea what I'm missing here? Likely the problem is with special characters.
    Thanks in advance,

    I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?

  • Problem when loading xml file using sql loader

    I am trying to load data into table test_xml (xmldata XMLType)
    i have an xml file and i want whole file to be loaded into a single column
    when i use the following control file and executed from command prompt as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct=true;:
    LOAD DATA
    INFILE *
    TRUNCATE INTO TABLE test_xml
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(100),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    the file is being loaded into table perfectly.
    unfortunatley i cant hardcode file name as file name will be changed dynamically.
    so i removed the block
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    from control file and tried to execute by giving file path from command line as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml direct=true;
    but strangely it's trying to load each line of xml file into table instead of whole file
    Please find the log of the program with error
    Loading of XML through SQL*Loader Starts
    SQL*Loader-502: unable to open data file '<?xml version="1.0"?>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Root>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>Forms</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>PLL</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    please help me how can i load full xml into single column using command line without hardcoding in control file
    Edited by: 907010 on Jan 10, 2012 2:24 AM

    but strangely it's trying to load each line of xml file into table instead of whole fileNothing strange, the data parameter specifies the file containing the data to load.
    If you use the XML filename here, the control file will try to interpret each line of the XML as being separate file paths.
    The traditional approach to this is to have the filename stored in another file, say filelist.txt and use, for example :
    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

  • Need suggestions on loading 5000+ files using sql loader

    Hi Guys,
    I'm writing a shell script to load more than 5000 files using sql loader.
    My intention is to load the files in parallel. When I checked the maximum number of sessions in v$parameter, it is around 700.
    Before starting the data load, programmatically I am getting the number of current sessions and maximum number of sessions and keeping free 200 sessions without using them (max. no. of sessions minus 200 ) and utilizing the remaining ~300 sessions to load the files in parallel.
    Also I am using a "wait" option to make the shell to wait until the 300 concurrent sql loader process to complete and moving further.
    Is there any way to make it more efficient? Also is it possible to reduce the wait time without hard coding the seconds (For Example: If any of those 300 sessions becomes free, assign the next file to the job queue and so on..)
    Please share your thoughts on this.
    Thanks.

    Manohar wrote:
    I'm writing a shell script to load more than 5000 files using sql loader.
    My intention is to load the files in parallel. When I checked the maximum number of sessions in v$parameter, it is around 700. Concurrent load you mean? Parallel processing implies take a workload, breaking that up into smaller workloads, and doing that in parallel. This is what the Parallel Query feature does in Oracle.
    SQL*Loader does not do that for you. It uses a single session to load a single file. To make it run in parallel, requires manually starting multiple loader sessions and perform concurrent loads.
    Have a look at Parallel Data Loading Models in the Oracle® Database Utilities guide. It goes into detail on how to perform concurrent loads. But you need to parallelise that workload yourself (as explained in the manual).
    Before starting the data load, programmatically I am getting the number of current sessions and maximum number of sessions and keeping free 200 sessions without using them (max. no. of sessions minus 200 ) and utilizing the remaining ~300 sessions to load the files in parallel.
    Also I am using a "wait" option to make the shell to wait until the 300 concurrent sql loader process to complete and moving further.
    Is there any way to make it more efficient? Also is it possible to reduce the wait time without hard coding the seconds (For Example: If any of those 300 sessions becomes free, assign the next file to the job queue and so on..)Consider doing it the way that Parallel Query does (as I've mentioned above). Take the workload (all files). Break the workload up into smaller sub-workloads (e.g. 50 files to be loaded by a process). Start a 100 processes in parallel and provide each one with a sub-workload to do (100 processes each loading 50 odd files).
    This is a lot easier to manage than starting for example a 5000 load processes and then trying some kind of delay method to ensure that not all hit the database at the same time.
    I'm loading about 100+ files (3+ million rows) every 60 seconds 24x7 using SQL*Loader. Oracle is quite scalable and SQL*Loader quite capable.

  • Failed to load multiple files using theMgr.createLocalFileInputStream

    Hi
    I am using 2.3.8 and having trouble with putting multiple files to the container using XmlInputStream.
    I have hundreds of documents in 'output' folder from my project root, and I was able to load them by using other signature - reading each line from each file via BufferedReader.
    However, if I switch to XmlInputStream, the first putDocument() is successful but I get an error an XmlException at the second iteration.
    container = theMgr.createContainer(theContainer, config);
    XmlUpdateContext updateContext = theMgr.createUpdateContext();
    Transaction dbtxn = environment.beginTransaction(null, null);
    txn = theMgr.createTransaction(dbtxn);
    Iterator filesIterator = files2add.iterator();
    while (filesIterator.hasNext()) {
    File file = (File) filesIterator.next();
    String docName = fileNameToDocName(file);
    XmlInputStream theStream = theMgr.createLocalFileInputStream(file.getName());
    container.putDocument(docName,
    theStream,
    updateContext,
    null);
    com.sleepycat.dbxml.XmlException: Error: The resource does not exist: malformed or non-existent stream source, errcode = INVALID_VALUE
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocument__SWIG_5(Native Method)
         at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:405)
         at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:77)
         at com.expd.arch.persistence.BerkeleyTestCase.loadXmlFilesViaStream(BerkeleyTestCase.java:85)
    The second document failing looks like this - nothing wrong
    <?xml version="1.0" encoding="UTF-8"?>
    <consol version="0">
    <import-file-number>21345</import-file-number>
    <ownership-location>LAX</ownership-location>
    <id>0</id>
    </consol>
    Can someone tell what's wrong in my code?

    Hello,
    The error is indicating something wrong with the file name or location, not the content. Try verifying that the file name passed to createLocalFileInputStream() is in good shape and refers to a regular file with permission to read. If that looks OK, there's a small chance you need to explicitly delete the XmlInputStream between calls. That should not be necessary, because the putDocument() call should consume it, but it does not hurt.
    Regards,
    George

Maybe you are looking for