LOAD FILE with xml

HI
I want to load an xml file into a RDBMS table, using sunopsis xml driver.
I try to use an other xml file than the initial that is defined in the driver url.
I cannot run this instruction in a XML treatment before the interface :
LOAD FILE "C:/AXYUS/SURSAUD/entree/sosmed1.xml" WITH DTD "C:/AXYUS/SURSAUD/entree/sosmed.dtd" REPLACE READONLY AUTO_UNLOCK
the file doesn't change at alll and I always load the initial file ( sosmed.xml )
any idea ?

Make sure that you issue your LOAD FILE command
- on the SAME Transaction (0, 1, 2, etc...) than the one used in the LKM,
- with the SAME logical schema as the source table logical schema
- and with the SAME Context (if you use the execution context - leave it unset).
This should do the trick, and the connection created in the procedure will be reused in the interface, provided that you chain both in a package.
Regards,
-FX

Similar Messages

  • Oraclexe and loading file with .xml suffix

    Using the Oraclexe utility to load an xml file it errors with xml error load, and that is all. I created a table (create table xmload of xmltype). Here is a snippet of the xml content. What needs to be done to "get there from here".
    <Response RequestID="1000000080000" Client="PERMS" RequestStatus="Passed" SessionAuthToken="sessionAuthToken" TimeSlot="09:20:00 18:00:00">
    <Soldier Status="Passed" NumberOfDocuments="53">
    <SSN>123456789</SSN>
    <SoldierName>Doe Jonnie</SoldierName>
    <Site>M</Site>
    <Document DocStatus="Passed" Pages="1">
    <DocType>CRS RES/NR</DocType>
    <DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
    <SID>G</SID>
    <EffDate>2002/03/15</EffDate>
    <AcceptDate>2002/04/29</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>202804760</DocID>
    </DocumentID>
    </Document>
    <Document DocStatus="Passed" Pages="2">
    <DocType>679DA</DocType>
    <DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
    <SID>A</SID>
    <EffDate>2002/04/30</EffDate>
    <AcceptDate>2002/09/14</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>202932534</DocID>
    </DocumentID>
    </Document>
    <Document DocStatus="Passed" Pages="1">
    <DocType>CRS RES/NR</DocType>
    <DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
    <SID>G</SID>
    <EffDate>2000/04/14</EffDate>
    <AcceptDate>2000/07/01</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>202074950</DocID>
    </DocumentID>
    </Document>
    </Document>
    <Document DocStatus="Passed" Pages="2">
    <DocType>679DA</DocType>
    <DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
    <SID>A</SID>
    <EffDate>1999/04/04</EffDate>
    <AcceptDate>1999/07/26</AcceptDate>
    <DocumentID>
    <ScanSite>S</ScanSite>
    <DocID>201773383</DocID>
    </DocumentID>
    </Document>
    </Soldier>
    </Response>

    For those who are interested, the problem come from the differents drivers used for files :
    In Sunopsis, by default :
    -     driver :     com.sunopsis.jdbc.driver.FileDriver
    -     url jdbc :      jdbc:snps:file
    In ODI
    -     driver :      com.sunopsis.jdbc.driver.file.FileDriver
    -     url jdbc :      jdbc:snps:dbfile
    Problem solved.

  • Bridge opening office files with xml converter

    Adobe Bridge CS3 is opening all my excel files with xml converter and promting me to save as.  How do I switch it to default to Microsoft Excel when opening these files?

    These options are handled in the Bridge prefs under File Associations, but if I remember correctly this is somewhat limited in CS3 since it only handles Adobe files that install their associations. Any other file type is handled by whatever the opoerating system offers. Well, you can always look and give it a try...
    Mylenium

  • Load File with wildcards?

    Hello,
    how could I load files with this pattern:
    ausw_[name]_[date].xls (without the brackets)
    Workbook workbook = Workbook.getWorkbook(new File("C:\\extracts/ausw_[name]_[date].xls"));
    Could it be work with Regular Expressions?
    Has anyone an idee?
    Greetings
    Marco

    Check java.io.FilenameFilter and java.io.File.listFiles (FilenameFilter) or search the forum.

  • Publishing swf file with xml feed

    I am working in actionscript 3 trying to create a flash banner ad that will be put on multiple sites.  The ad will grab a rss feed and display a number from that feed insie the banner ad.  The Flash file works fine on my local computer when I test it.  The feed is showing up just fine in the ad.  When I publish the ad for the web and test it out on my server, the feed does not display in the ad.  I have checked to make sure network access is selected in the publish settings.  I also have a crossdomain.xml policy file on the server with the feed.  My server is listed in the policy to allow access.  I keep thinking I am overlooking something, but can't figure it out.  Any help would be greatly appreciated.
    Here is the code for the action script:
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest =
             new URLRequest("http://www.rssfeed.com/rssfeed");
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    rssLoader.load(rssURL);
    var rssXML:XML = new XML();
    rssXML.ignoreWhitespace = true;
    function rssLoaded(e:Event):void{
        var rssXML:XML=new XML(e.target.data);
    trace (rssXML);
        if (rssXML.channel.item[0].description >= 61)
            {rssXML.channel.item[0].description="60+"}
            testXML.text=rssXML.channel.item[0].description;
    Here is the crossdomain.xml policy file:
    <?xml version="1.0"?>
            <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
            <cross-domain-policy>
            <allow-access-from domain="domain.net"/>
            <allow-access-from domain="www.domain.net"/>
            <allow-access-from domain="anotherdomain.com"/>
            <allow-access-from domain="www.anotherdomain.com"/>
            <allow-access-from domain="yetanotherdomain.com>"/>
            <allow-access-from domain="www.yetanotherdomain.com>"/>
            </cross-domain-policy>
    Message was edited by: WRGrun262

    try:
    Security.loadPolicyFile("http://www.rssfeed.com/crossdomain.xml");
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest =
             new URLRequest(http://www.rssfeed.com/rssfeed);
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    rssLoader.load(rssURL);
    var rssXML:XML = new XML();
    rssXML.ignoreWhitespace = true;
    function rssLoaded(e:Event):void{
        var rssXML:XML=new XML(e.target.data);
    trace (rssXML);
        if (rssXML.channel.item[0].description >= 61)
            {rssXML.channel.item[0].description=60+}
            testXML.text=rssXML.channel.item[0].description;
    this should be crossdomain.xml in the rssfeed.com root directory
    <?xml version="1.0"?>
            <!DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd>
            <cross-domain-policy>
    <site-control permitted-cross-domain-policies="master-only"/>   
    <allow-access-from domain="domain.net"/>
            <allow-access-from domain="www.domain.net"/>
            <allow-access-from domain="anotherdomain.com"/>
            <allow-access-from domain="www.anotherdomain.com"/>
            <allow-access-from domain="yetanotherdomain.com>/>
            <allow-access-from domain="www.yetanotherdomain.com>/>
            </cross-domain-policy>
    Message was edited by: WRGrun262

  • URGENT: Problems Loading files with SQL Loader into a BLOB column

    Hi friends,
    I read a lot about how to load files into blob columns, but I found errors that I can't solve.
    I've read several notes in these forums, ine of them:
    sql loader: loading external file into blob
    and tried the solutions but without good results.
    Here are some of my tests:
    With this .ctl:
    LOAD DATA
    INFILE *
    INTO TABLE mytable
    REPLACE
    FIELDS TERMINATED BY ','
    number1 INTEGER EXTERNAL,
    cad1 CHAR(250),
    image1 LOBFILE(cad1) TERMINATED BY EOF
    BEGINDATA
    1153,/opt/oracle/appl/myapp/1.0.0/img/1153.JPG,
    the error when I execute sqlldr is:
    SQL*Loader-350: Syntax error at line 9.
    Expecting "," or ")", found "LOBFILE".
    image1 LOBFILE(cad1) TERMINATED BY EOF
    ^
    What problem exists with LOBFILE ??
    (mytable of course has number1 as a NUMBER, cad1 as VARCHAR2(250) and image1 as BLOB
    I tried too with :
    LOAD DATA
    INFILE sample.dat
    INTO TABLE mytable
    FIELDS TERMINATED BY ','
    (cad1 CHAR(3),
    cad2 FILLER CHAR(30),
    image1 BFILE(CONSTANT "/opt/oracle/appl/myapp/1.0.0/img/", cad2))
    sample.dat is:
    1153,1153.JPEG,
    and error is:
    SQL*Loader-350: Syntax error at line 6.
    Expecting "," or ")", found "FILLER".
    cad2 FILLER CHAR(30),
    ^
    I tried too with a procedure, but without results...
    Any idea about this error messages?
    Thanks a lot.
    Jose L.

    > So you think that if one person put an "urgent" in the subject is screwing the problems of
    other people?
    Absolutely. As you are telling them "My posting is more important than yours and deserve faster attention and resolution than yours!".
    So what could a typical response be? Someone telling you that his posting is more important by using the phrase "VERY URGENT!". And the next poster may decide that, no, his problem is evern more import - and use "EXTREMELY URGENT!!" as the subject. And the next one then raises the stakes by claiming his problem is "CODE RED! CRITICAL. DEFCON 4. URGENT!!!!".
    Stupid, isn't it? As stupid as your instance that there is nothing wrong with your pitiful clamoring for attention to your problem by saying it is urgent.
    What does the RFC's say about a meaningful title/subject in a public forum? I trust that you know what a RFC is? After all, you claim to have used public forums on the Internet for some years now..
    The RFC on "public forums" is called The Usenet Article Format. This is what it has to say about the SUBJECT of a public posting:
    =
    The "Subject" line (formerly "Title") tells what the message is about. It should be suggestive enough of the contents of the message to enable a reader to make a decision whether to read the message based on the subject alone. If the message is submitted in response to another message (e.g., is a follow-up) the default subject should begin with the four characters "Re: ", and the "References" line is required. For follow-ups, the use of the "Summary" line is encouraged.
    =
    ([url http://www.cs.tut.fi/~jkorpela/rfc/1036.html]RFC 1036, the Usenet article format)
    Or how about [url http://www.cs.tut.fi/~jkorpela/usenet/dont.html]The seven don'ts of Usenet?
    Point 7 of the Don'ts:
    Don't try to catch attention by typing something foolish like "PLEASE HELP ME!!!! URGENT!!! I NEED YOUR HELP!!!" into the Subject line. Instead, type something informative (using normal mixed case!) that describes the subject matter.
    Please tell me that you are not too thick to understand the basic principles of netiquette, or to argue with the RFCs that governs the very fabric of the Internet.
    As for when I have an "urgent" problem? In my "real" work? I take it up with Oracle Support on Metalink by filing an iTAR/SR. As any non-idiot should do with a real-life Oracle crisis problem.
    I do not barge into a public forum like you do, jump up and down, and demand quick attention by claiming that my problem is more important and more urgent and more deserving of attention that other people's problem in the very same forum.

  • Problem with loading file with SQL loader

    i am getting a problem with loading a file with SQL loader. The loading is getting
    terminated after around 2000 rows whereas there are around 2700000 rows in the file.
    The file is like
    919879086475,11/17/2004,11/20/2004
    919879698625,11/17/2004,11/17/2004
    919879698628,11/17/2004,11/17/2004
    the control file, i am using is like:-
    load data
    infile 'c:\ran\temp\pps_fc.txt'
              into table bm_05oct06
    fields terminated by ","
    (mobile_no, fcal, frdate )
    I hope, my question is clear. Please help, in solving the doubt.
    regards.

    So which thread is telling the truth?
    Doubt with SQL loader file wih spaces
    Are the fields delimited with spaces or with commas?
    Perhaps they are a mixture of delimiters and that is where the error is coming in?

  • Incoming Image file with XML payload processing

    Hi,
    We have PI 7.1 and the interface is from file to standard RFC scenario with ABAP proxy in ECC.
    2 incoming files need to be processed by the interface - xml file with transaction details and the corresponding Image file.
    These files have to be mapped to the standard RFC and then pushed into ECC.
    Can the Java mapping be used in message mapping to pass the image file in the RFC as I do not want to use the Java module?
    If yes, can someone please help with the code and the mapping aspects?
    Regards,

    Abhishek,
    Though I never worked with server proxy with attachments,
    In my opinio, when it is possible to send attachments from outbound ABAP proxy,  then logically it should be possible to read attachments in the inbound proxies.
    I just saw this link in forum,
    [Re: Inbound proxy with attachments.|Re: Inbound proxy with attachments.]
    Regards,
    Praveen Gujjeti.
    Edited by: Praveen Gujjeti on Apr 8, 2010 5:25 PM

  • Using ditaval files with XML Author

    I've been evaluating XML Author and am trying to determine how to use ditaval files with it. If I want to save a ditamap as a book for PDF creation, the Prompt for DitaVal File check box is greyed out. Does anyone know why this might be the case? Is the use of ditavals limited to a full implementation of FrameMaker?
    I tried adding PromptForDitaval=1 to the [General] section of the ditafm.ini file to no avail.

    Make sure you are using the latest hotfix for Director (11.5.8) - it is the first to support AS# in Flash. Your SWF members will probably need to be linked to their external files instead of fully imported.
    Or perhaps you're saying that you've met both these conditions and are still seeing problems?

  • Loading file with empty/blank values

    My datas are in a file and my target is a DB2 table wich contains numeric columns, date columns, text columns (CHAR, VARCHAR)...
    If I load this file with Sunopsis with "KLM File to SQL", when the value of the column is blank in the file, the colum in the target table is null
    Now, with ODI and "LKM File to SQL", when the value of the colum is blank in the file, the data in the target table is :
    - null if it's a date
    - "0" if it's a numeric column
    - spaces if it's a text column
    Can you explain me why the result is different with the 2 tools ? I want that ODI make the same thing than Sunopsis.
    Thanks.

    For those who are interested, the problem come from the differents drivers used for files :
    In Sunopsis, by default :
    -     driver :     com.sunopsis.jdbc.driver.FileDriver
    -     url jdbc :      jdbc:snps:file
    In ODI
    -     driver :      com.sunopsis.jdbc.driver.file.FileDriver
    -     url jdbc :      jdbc:snps:dbfile
    Problem solved.

  • Create XLS file with XML data

    Hello,
    Is there Java libraries to create Excel files from XML data, like FOP that creating PDF files ?
    Another question : where can I find the javadoc of FOP's classes, particularly org.apache.fop.apps.Driver class ? Because I can't find it on http://xml.apache.org
    Thanks

    Use http://jakarta.apache.org/poi/

  • Loading swf with XML on Click

    Hi all, can anyone help
    can anyone shine a little light onto a little confusion I am having, I have a menu that already loads in images via an XML file on a menu, what I am trying to do is when an image/meni Item is click I would like to load in an swf into the same place as the image Item loads into! am I making any sense.
    on a click event, do I use in the XML file the <link>link to swf</link>   ????
    this is what I have in my xml file that loads in the images so far;
    <image name="image 12" path="img/img12.jpg"
    title="Lorem ipsum 12"
    text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo 12" />
    what I am getting confused with is what I also put within the AS, I am sure it is not alot but I'm just not sure what needs to go where??
    this is what I have within the AS that loads in XML, I hope its ok to paste this code, never like posting to much code incase is scares people off, I just don't want to leave anything out, hope thats ok with everyone:eek:
    // Use URLLoader to load XML
    xmlLoader = new URLLoader();
    xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    // Listen for the complete event
    xmlLoader.addEventListener(Event.COMPLETE, onXMLComplete);
    xmlLoader.load(new URLRequest("data.xml")); 
    stage.addEventListener( MouseEvent.MOUSE_WHEEL, onMouseWheel );
    //———————————————EVENT HANDLERS
    private function onXMLComplete(event:Event):void
    // Create an XML Object from loaded data
    var data:XML = new XML(xmlLoader.data);
    // Now we can parse it
    var images:XMLList = data.image;
    for(var i:int = 0; i < images.length(); i++)
    // Get info from XML node
    var imageName:String = images[i].@name;
    var imagePath:String = images[i].@path;
    var titles:String = images[i].@title;
    var texts:String = images[i].@text;
    // Load images using standard Loader
    var loader:Loader = new Loader();
    // Listen for complete so we can center the image
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageComplete);
    loader.load(new URLRequest(imagePath));
    // Create a container for the loader (image)
    var holder:MovieClip = new MovieClip();
    holder.addChild(loader);
    var button_main:Button_mr = new Button_mr();   /
    holder.addChild(button_main);               
    var tooltip:ToolTip = new ToolTip();
    tooltip.field.text = titles;  //loads tooltip 1
    tooltip.field2.text = texts;  //loads tool tip 2
    tooltip.x = -350; 
    tooltip.y = 0;   
    holder.addChild(tooltip);
    // Same proceedure as before
    holder.buttonMode = true;
    holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
    // Add it to the menu
    circleMenu.addChild(holder);
    many thanks for any help!!!!

    1. Be sure in main.swf there is no masking or layering hiding
    the reflection area. A way to test quickly is to load in a plain
    master swf that is much larger than the externals swf.
    2. Know the weakness of loadMovie for timing issues that
    require the external movie to be fully loaded before actions are
    taken on it. I see a bunch of these in the code you posted. Best to
    use
    MovieClipLoader.onLoadInit
    before you attempt to access the external swf properties or code or
    add code.
    3. Be sure the code is firing on load and all objects are
    created. Add some trace statements for those objects.
    4. I noticed you do not use BitmapData so this may not be
    relevant but be sure to add
    System.security.allowDomain("*");
    to the main.swf as well as in external swfs and only if you
    are using the BitmapData class.
    5. As I started to look at the code a bit and noticed this
    item:
    There is no constructor for the Flash MovieClip class. You
    will not see a compiler error message because you do not have the
    code wrapped into a class.
    var home:MovieClip = new MovieClip();
    However it does not have impact on the code.
    better would be
    var home:MovieClip;

  • Embedded container swf loading swf with xml

    I'd call myself an intermediate AS3 newbe. I have a series of slideshows that is called by a 'container' Flash file.
    These slideshow swf files are now rather large (230 kb) so as a test, I redid one of them as a  Flash file that uses xml rather than the images called within the file itself (file size 68 kb), which is my first exploration into xml & AS3.
    All the non-xml files load and play fine locally (well, sort of, since there's some weird glitchs which show up in different ways at different times in the container loading too many files one after another at times - and sometimes there's no problem at all) but that's not my current problem here.
    Basic URL structure:  document relative
    1. container file (container.fla/container.swf) will be embedded in a html file. --> /Flash.container.swf The contain file has a series of links to other .swf files.
    2. The container file other .swf files (selection of 10) from a  subfolder called /sbrds i.e. --> UILoader loads "Flash/sbrds/albert.swf"
    3.  The albert.fla/albert.swf loads an xml slideshow from a subfolder of sbrds  called /AlBert  --> /Flash/sbrds/Albert code "loader.load(new URLRequest("AlBert/AlBertXX.xml"));"  (quotes in message only)
    4. Inside the /Albert folder I have the xml file and all the images. xml file  is AlBertXX.xml  (attached)  
    5. local structure --> desktop/workingFiles/storyboards (container.fla) /Flash /sbrds (albert.fla) /Albert (Albertxx.xml & image.jpgs)
    would equal on the server as  root html/Flash/sbrds/Albert
    Locally... The albert.fla (in the /Flash/sbrds folder) itself works fine with no errors when calling the xml file.  But when I test that file from the container.fla/swf  I get a 2044/2032 error "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///.../myLocalDesktopFolder/storyboards/AlBert/AlBertXX.xml      at albert_fla::MainTimeline/albert_fla::frame1()"
    I've check and rechecked for any typos in the xml slideshow test and don't find any.  Any ideas?
    Could it be that I'm calling a xml driven file from a non-xml driven file?
    I have all the files including my buggy htm file at http://www.danwelter.com/susanTest_static.htm
    All the pertinent fla and image files are in the /flash folder (too many to attach).
    -- Thanks --- Susan

    Hi Jan
    Apparently the update went into place on my personal laptop
    overnight last night. I awoke this morning to discover it had
    rebooted itself and it was patiently waiting for me to enter my
    bootup password. Anyhoo, I happened to notice that today when I
    hovered the mouse over my Captivate movie, I saw the dreaded
    “click to activate and use this control” message that
    popped up in a tooltip. What to do?
    Well, I did notice that it seemed to require a mouse click to
    "activate" the control, but simply running the movie seemed to be
    fine. I then wondered what would be disabled. When my movie got to
    the first button, the initial click was used to enable the control.
    Then the second click was accepted and progressed the movie.
    I hopped out on the web and found a page at the following
    URL:
    http://www.amarasoftware.com/flash-problem.htm
    After following the instructions there, my files seemed fine.
    Here are the steps I followed:
    1. Copied the code on the page and pasted into an empty
    Notepad.
    theObjects = document.getElementsByTagName("object");
    for (var i = 0; i < theObjects.length; i++) {
    theObjects
    .outerHTML = theObjects.outerHTML;
    2. Saved as file name ieupdate.js.
    3. Copied the link code and pasted between the closing object
    and center tags.
    Before:
    </object>
    </center>
    After:
    </object>
    <script type="text/javascript"
    src="ieupdate.js"></script>
    </center>
    It occurs to me that one could easily modify the "seed" HTML
    page Captivate uses when it creates the HTML page. This page is
    named standard.htm and is found in the following location:
    C:\Program Files\Macromedia\Captivate\Templates\Publish
    This would save tweaking the HTM each time you publish. Then
    you would only need to worry about making sure you copied the
    associated ieupdate.js file to the same folder.
    You gotta love lawsuits. I really hope those that "won" are
    happy that we all now have to jump through all the hoops to make
    things work. Sheesh
    Hopefully this helps... Rick

  • SQLLDR: Loading files with no extension

    Does the Sql*Loader mandates extensions in file? I'm providing data file in the argument like
    sqlldr CONTROL=test.ctl data=/whatever/AFileWithNoExtension
    It errors out with AFileWithNoExtension.dat not found.
    Thanks

    If you don't specify an extension sqlldr assumes as default extension .dat
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch04.htm#1004744
    You need to rename your file before running sqlldr

  • How to load file with seperators

    Hi, I am attempting to load a CSV file. Currently the first column has data in the format '101-000-12345-345' where
    101 is the entity
    000 is the Custom1
    12345 is account
    345 is ICP. There are other columns in the file for C2, C3 etc. My problem is that I need help on how to define an Import format which can (in the above example) pick up 101 for entity, 000 for Custom 1 etc. Please note the length for ENtity, C1, Account and ICP is fixed.
    Please advise

    Hi,
    It sounds like you need to define "-" as your delimiter for that specific Import Group.
    When you first create your Import Group you will need to define the delimiter. Once you have done this, you can then begin to define your Dimensions - here you are defining the format of your datafile. You have a couple options here - my recommendation would be to use the Import Format Builder - it will let you drag and drop sections to define your dimension. This will get you a bit more familiar with how this works.
    I would strongly recommend taking a look at the FDM Admin Guide, there is an entire section dedicated to creating an Import Group. Here is the link to the 11.1.2.2 doc - though you may be on a different version: http://docs.oracle.com/cd/E17236_01/epm.1112/fdm_admin.pdf
    Good luck!

Maybe you are looking for