XML dataload

Hi
I want to load XML data into my 11g oracle database.
The data is in XML files.Will I have to convert XML to CSV and use sql loader ?
What options/tools do I have.
Any freeware would be nice to have?
Thanks in Advance.
s

Hi,
Are you using SQL *PLUS to run your queries etc? (I think you are)
If yes, after logging in type the following command and then execute your query (select * from xtable)
set long 5000;
The above command will increase the width for displaying the xmltype value (in your case your xml doc). For a larger xml doc specify a higher width.
SQL> set long 5000;
SQL> select * from xtable;
SYS_NC_ROWINFO$
<employee>
<lastname>smith</lastname>
<firstname>john</firstname>
<ssn>111-11-1111</ssn>
</employee>
You can use sql loader to load data from a flat file but I normally use the above method for loading data. For loading large amounts of data you cause simple bulk loader application.
Ref:
http://www.oreilly.com/catalog/orsqlloader/chapter/ch01.html
http://otn.oracle.com/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html
http://otn.oracle.com/sample_code/tech/xml/xmldb/simplebulkloader/Readme.html
Thanks
JN

Similar Messages

  • Error while loading loading a xml file using a batchxmlloader.java file

    Hi All,
    I am trying to to load the data of an xml to the order management and configurations tables of 11i. While doing this i am using a java program batchxmlloader.java while executing it its giving me the errors as shown below. can anyone help me to remove these errors?
    java.lang.NoClassDefFoundError: javax/jms/JMSException
    at oracle.apps.fnd.wf.bes.ConnectionManager$1.run(ConnectionManager.jav)
    at oracle.apps.fnd.wf.bes.Utilities$1.run(Utilities.java:558)
    at java.lang.Thread.nextThreadNum(Unknown Source)
    Failed to establish Java Business Event System control connection: databaseId =n
    java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnv)
    at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:68)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.awt.Toolkit$2.run(Toolkit.java:512)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
    at java.awt.Toolkit.getEventQueue(Toolkit.java:1176)
    at java.awt.EventQueue.invokeLater(EventQueue.java:511)
    at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1091)
    at javax.swing.Timer.post(Timer.java:342)
    at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java, Compiled C)
    at javax.swing.TimerQueue.run(TimerQueue.java, Compiled Code)
    at java.lang.Thread.nextThreadNum(Unknown Source)
    Exception in thread "main" java.lang.UnsatisfiedLinkError: XstartUnsatisfiedRels
    at oracle.apps.cz.logic.Engine.modifyBOM(Engine.java, Compiled Code)
    at oracle.apps.cz.logic.LogicConfig.assertDefaults(LogicConfig.java, Co)
    at oracle.apps.cz.cio.Configuration$UnsatisfiedRulesIterator.<init>(Con)
    at oracle.apps.cz.cio.Configuration.addCompInstancesInOrder(Configurati)
    at oracle.apps.cz.cio.InstanceBase.hasUnsatisfiedRules(InstanceBase.jav)
    at oracle.apps.cz.cio.BomInstance.getSelectableChildren(BomInstance.jav)
    at oracle.apps.cz.cio.Configuration.saveInternal(Configuration.java, Co)
    at oracle.apps.cz.cio.Configuration.createRuntimeTree(Configuration.jav)
    at oracle.apps.cz.cio.xml.CzXmlConfiguration.<init>(CzXmlConfiguration.)
    at oracle.apps.cz.cio.xml.CzXmlLoaderEventListener.processDocumentEleme)
    at oracle.apps.util.dataload.xml.BatchXmlLoaderHandler.endElement(Batch)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingP)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidat)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidating)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java, Compiled Code)
    at oracle.apps.util.dataload.xml.BatchXmlLoader.log(BatchXmlLoader.java)
    at oracle.apps.util.dataload.xml.BatchXmlLoader.<init>(BatchXmlLoader.j)
    at oracle.apps.util.dataload.xml.BatchXmlLoader.initialise(BatchXmlLoad)
    Thanks in well advance.
    Regards,
    Sarang.A.Mehta

    I feel th entry in the property file is wrong....
    it should be name=abc.xml dont enclise in quotes...

  • Help with XML, display data on swipe/click

    Hello.
    I am trying to create a moibile app that displays XML data. It's basically a phone book. I want the data to change when swiped. I can get the data in just fine. I can get it to display fine. I am not seeing the correct image first, however. I think it's a problem with my imagenum variable.
    Then, I want to change what is displayed when the user clicks/swipes on the screen. How do I do that?
    stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();
    var imageNum:Number=0;
    var totalImages:Number;
    //Load XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("recbook.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void {
    var theXMLData:XML = new XML(XMLURLLoader.data);
    totalImages=theXMLData.name.length();
    for (var i:Number =0; i < totalImages; i++){
      //push xml data into the arrays
      nameArray.push(theXMLData.name[i]);
      countryArray.push(theXMLData.country[i]);
      portraitArray.push(theXMLData.portrait[i]);
      flagArray.push(theXMLData.flag[i]);
      jobtitleArray.push(theXMLData.jobtitle[i]);
    //data is processed
    loadData();
    function loadData():void {
    var thisPortrait:String = portraitArray[imageNum];
    var thisCountry:String = countryArray[imageNum];
    var thisName:String = nameArray[imageNum];
    var thisJobtitle:String = jobtitleArray[imageNum];
    var thisFlag:String = flagArray[imageNum];
    var dataLoader:Loader = new Loader();
    dataLoader.load(new URLRequest(portraitArray[imageNum]));
    dataLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dataLoaded);
    function dataLoaded(event:Event):void {
      //I want to start with image 0 (img1.jpg) and cycle through with a mouse click (finger swipe on iOS)
      stage.addEventListener(MouseEvent.CLICK, loadMainImage1);
      function loadMainImage1(event:MouseEvent):void {
       portraitUILoader.source=thisPortrait;
       flagUILoader.source=thisFlag;
       selectedName.text=thisName;
       selectedCountry.text=thisCountry;
       selectedJobtitle.text=thisJobtitle;
    //add to imageNum (1);
    imageNum++;
    if (imageNum < totalImages) {//stopping at img2
      trace("imageNum " + imageNum);
      trace("image name (thisPortrait) " + thisPortrait);//losing image 4 somewhere
      loadData();
      trace("Total Images " + totalImages);
    //click to move past the home screenI'd like to ditch this. don't know how.
    homeScreen_mc.addEventListener(MouseEvent.CLICK, goNext);
    function goNext(event:MouseEvent):void
    nextFrame();
    */here's the output:
    imageNum 1
    image name (thisPortrait) images/img1.jpg
    imageNum 2
    image name (thisPortrait) images/img2.jpg
    imageNum 3
    image name (thisPortrait) images/img3.jpg
    Total Images 4
    Total Images 4
    Total Images 4
    Total Images 4
    It starts the display on image 1 (the second in the series img2.jpg)*/

    Thank you.
    That helped. I get the correct images in the output, but not in the display. I also get the following error. Any chance you could help with that?
    new output after moving the increment:
    imageNum 0
    image name (thisPortrait) images/img1.jpg
    imageNum 1
    image name (thisPortrait) images/img2.jpg
    imageNum 2
    image name (thisPortrait) images/img3.jpg
    imageNum 3
    image name (thisPortrait) images/img4.jpg
    TypeError: Error #2007: Parameter url must be non-null.
    at flash.display::Loader/_load()
    at flash.display::Loader/load()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/loadData()
    at iOS_fla::MainTimeline/processXML()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

  • XML input stored in normalized tables

    We have a system in place already, but have just found out that we'll be receiving some files intended for dataloads in XML format.
    Where should I start looking for documentation on how to process these files? Most of the docs I've seen so far have to do with storing XML data in XML format. Is that where I'd start, perhaps using a GLOBAL TEMP TABLE which would hold data as XML, and then move the data from that table to the permanent table using SQL?
    Clueless,
    Chuck

    In 9i it is possible to shred the XML documents into normalised tables. Using the Oracle approach is a much better approach than writing your own code to navigate the DOM: I did that in an 8i project and it's some of the most complicated, least maintainable code I ever churned out. Although I imagine the 9i support for XPath might make the task easier.
    Cheers, APC

  • Loading content from XML help needed, please.

    Hey All,
    So here's my deal- I have a custom-built FLV Playback
    component (with captions) and need to load the following items from
    an XML file named "xml_doc.xml":
    <?xml version="1.0" encoding="UTF-8"?>
    <playlist id="Here's The Video" >
    <vid desc="Introduction to Biological Terrorism Agents"
    src="Intro.flv"
    thumb="Intro.jpg"
    caption="Intro.xml"
    </playlist>
    On the stage, here's what things are named:
    -my FLVPlayback Component is named myVideo
    -my thumbnail/preview image (empty movie clip) is named
    myPoster
    -my FLVPlaybackCaptioning Component is named captioning
    So how do I get these things to all get read from the XML
    document? It's easy to do it all through the FLA and hard-code the
    paths, but I can't seem to figure out how to pull from the external
    XML doc.
    Any help would be greatly appreciated.
    Joe

    You'll need to instantiate a few classes to help with this.
    The first is URLRequest:
    --var myXMLRequest:URLRequest = new
    URLRequest("xml_doc.xml");
    The URLRequest gets loaded by a URLLoader:
    --var myXMLLoader:URLLoader = new URLLoader();
    Then use the .load() method of the URLLoader:
    --myXMLLoader.load(myXMLRequest)
    Then add an event listener to your URLLoader
    --myXMLLoader.addEventListener(Event.COMPLETE, dataLoaded);
    Finally create the function to work with your data
    --function dataLoaded(e:Event):void {
    --var myXML:XML = new XML(e.target.data);
    --trace(myXML);
    Looks like:
    --var myXMLRequest:URLRequest = new
    URLRequest("xml_doc.xml");
    --var myXMLLoader:URLLoader = new URLLoader();
    --myXMLLoader.load(myXMLRequest)
    --myXMLLoader.addEventListener(Event.COMPLETE, dataLoaded);
    --function dataLoaded(e:Event):void {
    --var myXML:XML = new XML(e.target.data);
    --trace(myXML);
    (remove dashses, they're for readability)

  • DataTable in a grid make flicker in the first dataload

    Hi experts,
    I have a form with a Grid, in this grid i have a datatable (with query).
    I open my form in create mode, if i click to the next button i have the following problem :
                                       - when i open the form for the first time, data are loaded 1 time,
                                       - when i open the form the second time, data are loaded 2 times
                                       - when i open the form the third time, data are loaded 3 times.....
    After this first load, if i use next/previous, or change folder i have no problem, data are reloaded just 1 time..
    Have you any solution to my problem ?
    Regards

    Hi gordon,
    I put a part of my code because he is long.
    this is parts regarding form load, next/previous event and dataload/update. (The datatable is creating in screenpainter as manual).
        Private Sub LoadForm()
            Dim creationPackage As SAPbouiCOM.FormCreationParams
            Dim oXML As Xml.XmlDocument = New Xml.XmlDocument
            Try
                'Create the FormCreationParams object
                creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                oXML.Load(". ormulaireGSN00002.srf")
                creationPackage.XmlData = oXML.InnerXml
                ' Add the form to the SBO application
                Dim oForm As SAPbouiCOM.Form
                oForm = SBO_Application.Forms.AddEx(creationPackage)
                oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
                oForm.PaneLevel = 1
                oForm.DataSources.DBDataSources.Add("OPRJ")
                oForm.DataBrowser.BrowseBy = "PrjCode"
                AddReFin(oForm, 0)
                oForm.Visible = True
                oForm.Update()
            Catch
                SBO_Application.MessageBox(Err.Description)
            End Try
        End Sub
           Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            If ((pVal.MenuUID = "1288") Or (pVal.MenuUID = "1289") Or (pVal.MenuUID = "1290") Or (pVal.MenuUID = "1291")) Then
                If SBO_Application.Forms.ActiveForm.TypeEx = "GSN00002" Then
                    If (pVal.BeforeAction = False) Then
                        Dim cCode As SAPbouiCOM.EditText
                        Dim oForm As SAPbouiCOM.Form
                        Dim oPaneLevel As Integer
                        Dim oitemedit As SAPbouiCOM.EditText
                        Try
                            oForm = SBO_Application.Forms.ActiveForm
                            oPaneLevel = oForm.PaneLevel
                            cCode = oForm.Items.Item("EdPrC0").Specific
                            oitemedit = oForm.Items.Item("PrjCode").Specific
                            cpAndRes(cCode.Value, oForm)
                            Select Case oPaneLevel
                                Case "1"
                                     AddReFin(oForm, 1)
                                Case "2"
                                     AddOppor(oForm, 1)
                                Case "3"
                                     AddAchat(oForm, 1)
                                Case "4"
                                     AddVente(oForm, 1)
                            End Select
                            oForm.Freeze(False)
                        Catch
                            SBO_Application.MessageBox(Err.Description)
                        End Try
                    Else
                        Dim oForm As SAPbouiCOM.Form
                        Try
                            oForm = SBO_Application.Forms.ActiveForm
                            oForm.Freeze(True)
                        Catch
                        End Try
                    End If
                End If
            End If
        End Sub
          Private Sub AddReFin(ByVal oform As SAPbouiCOM.Form, ByVal oType As Integer)
            Dim oitem As SAPbouiCOM.Item
            Dim oitemSpeGr As SAPbouiCOM.Grid
            Dim oQuery As MyQueries
            Dim oitemedit As SAPbouiCOM.EditText
            Try
                oitemedit = oform.Items.Item("PrjCode").Specific
                oQuery = New MyQueries("Généralités", oitemedit.Value)
                oitem = oform.Items.Item("GdPrRf")
                oitemSpeGr = oitem.Specific
                oform.DataSources.DataTables.Item("RefFin").Clear()
                oform.DataSources.DataTables.Item("RefFin").ExecuteQuery(oQuery.oMyQuery)
                If oType = 0 Then
                    'Affectation des données au grid
                    oitemSpeGr.DataTable = oform.DataSources.DataTables.Item("RefFin")
                End If
            Catch
                SBO_Application.MessageBox("Erreur lors de l'ajout des données dans le tableau des résultats financiers" & Err.Description)
            End Try
        End Sub

  • HTTP Service XML to ArrayCollection

    Hi,
    How do I convert the results from a remote XML List file
    called using the HTTPService method into an arrayCollection for
    sorting filtering etc. ??? (I assume it is the arrayCollection
    please feel free to suggest a better method)
    I have this working by calling the XML as a model that
    compiles at runtime, it'd be nice to have this work dynamically
    Thanks
    Rich

    If your data is in XML format, you may want to read it in as
    XML, and use an XMLList (or XMLListCollection wrapping the XMLList)
    to do the management of it.
    In terms of how to read it in at runtime (I assume that's
    what you're asking?) try something along these lines:
    internal var myXMLList:XMLList;
    internal function loadData() : void
    var XML_URL:String = "myData.xml";
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader();
    myLoader.addEventListener("complete", dataLoaded);
    try
    myLoader.load(myXMLURL);
    } catch(error:Error)
    trace("Failed to load Data");
    internal function dataLoaded(evtObj:Event) : void
    var myLoader:URLLoader = URLLoader(evtObj.target);
    var myXML:XML = XML(myLoader.data);
    myXMLList = myXML.ListedElement;
    }

  • Trouble importing XML files for CUP5.3 SP15

    After applying patch 5 for CUP 5.3 SP15 when I attempt to import the clean and insert XML file i get the error "Action Failed"
    I am including the logs!
    2011-05-11 17:16:41,336 [SAPEngine_Application_Thread[impl:3]_26] ERROR com.virsa.ae.configuration.actions.ImportDataAction : importData(HttpServletRequest request :   :  add MessageCodes = 0101 , return failure
    2011-05-11 17:24:49,374 [SAPEngine_Application_Thread[impl:3]_12] ERROR  DataLoader.java@84:importData() : Error in parsing Data File : Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
    2011-05-11 17:24:49,375 [SAPEngine_Application_Thread[impl:3]_12] ERROR com.virsa.ae.configuration.bo.InitialDataBO : importData() :   : FileFormatException
    com.virsa.ae.dataloader.FileFormatException: Error in parsing Data File : Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:85)
         at com.virsa.ae.configuration.bo.InitialDataBO.importXMLData(InitialDataBO.java:347)
         at com.virsa.ae.configuration.bo.InitialDataBO.importData(InitialDataBO.java:284)
         at com.virsa.ae.configuration.actions.ImportDataAction.importData(ImportDataAction.java:248)
         at com.virsa.ae.configuration.actions.ImportDataAction.execute(ImportDataAction.java:71)
         at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
         at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)(:main:, row=18842, col=79) -> com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:62)
         ... 21 more
    Caused by: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1571)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1716)
         at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2446)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1847)
         at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2849)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:235)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
         at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:260)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:271)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
         ... 24 more
    2011-05-11 17:24:49,381 [SAPEngine_Application_Thread[impl:3]_12] ERROR com.virsa.ae.configuration.actions.ImportDataAction : importData(HttpServletRequest request) :   :  import fail
    com.virsa.ae.core.BOException: importData exception from RE component
         at com.virsa.ae.configuration.bo.InitialDataBO.importXMLData(InitialDataBO.java:371)
         at com.virsa.ae.configuration.bo.InitialDataBO.importData(InitialDataBO.java:284)
         at com.virsa.ae.configuration.actions.ImportDataAction.importData(ImportDataAction.java:248)
         at com.virsa.ae.configuration.actions.ImportDataAction.execute(ImportDataAction.java:71)
         at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
         at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.virsa.ae.dataloader.FileFormatException: Error in parsing Data File : Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:85)
         at com.virsa.ae.configuration.bo.InitialDataBO.importXMLData(InitialDataBO.java:347)
         ... 20 more
    Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)(:main:, row=18842, col=79) -> com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:62)
         ... 21 more
    Caused by: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1571)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1716)
         at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2446)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1847)
         at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2849)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:235)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
         at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:260)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:271)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
         ... 24 more
    2011-05-11 17:24:49,385 [SAPEngine_Application_Thread[impl:3]_12] ERROR com.virsa.ae.configuration.actions.ImportDataAction : importData(HttpServletRequest request :   :  add MessageCodes = 0101 , return failure

    Hi Kevin,
    If you had applied Patch 15 earlier and imported the initial files, then no need to upload it again after patch 15.5 it will use same Patch15 initial files.
    If you are going directly to SP15 patch5 from 14 or below, check if you are taking correct files. This issue comes when we import wrong files say ERM files into CUP or so.
    Regards,
    Sabita

  • MySQL PHP XML not sorted in the right order

    Hi, maybe someone can point out to me where I go wrong.
    I use an XML derived with PHP from a MySQL database to loop through a series of pictures.
    The XML I get from a database query gets sorted in the wrong order.
    I try to sort it by orde (is a columnname) but it keeps sorting by the ID.
    Any help is greatly appreciated.
    Thanks
    This is the PHP code to create the XML:
    $link = mysql_connect("localhost", "xxxx", "xxxxxxxxx");
    mysql_select_db("xxxxxxxxxxx");
    $query = 'SELECT * FROM gallery WHERE categorie = "dessin" ORDER BY "orde" ASC';
    $results = mysql_query($query);
    echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
    echo "<dataLoaded>\n";
    while ($line = mysql_fetch_assoc($results)) {
    echo "<galerie>\n";
    echo "<id>" . $line["gallery_id"] . "</id>\n";
    echo "<orde>" . $line["orde"] . "</orde>\n";
    echo "<image><![CDATA[" . $line["starturl"] . $line["image"] . $line["endurl"] . "]]></image>\n";
    echo "</galerie>\n";
    echo "</dataLoaded>\n";
    mysql_close($link);

    Thanks Kglad. Didn't work though.
    I also looked it up in the PHP reference with mysql_fetch_row you need to specify a single row I understand.
    In this case it might be many and the number differs.
    But I found the solution. I removed the quotes around orde and now it works.
    $query = 'SELECT orde, starturl, image, endurl FROM gallery WHERE categorie ="dessin" ORDER BY orde ASC';
    Nevertheless thank you and others for the great help on these forums.
    Jos

  • Cycle through XML on click/swipe

    I'm (still) working on my xml phone book. I need to cycle through the data in the array on mouse click. (The mouse click will be a swipe on a mobile device.)
    stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();
    var imageNum:Number=0;
    var totalImages:Number;
    //Load XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("recbook.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void {
          var theXMLData:XML = new XML(XMLURLLoader.data);
          totalImages=theXMLData.name.length();
          for (var i:Number =0; i < totalImages; i++){
                //push xml data into the arrays
                nameArray.push(theXMLData.name[i]);
                countryArray.push(theXMLData.country[i]);
                portraitArray.push(theXMLData.portrait[i]);
                flagArray.push(theXMLData.flag[i]);
                jobtitleArray.push(theXMLData.jobtitle[i]);
          //data is processed
          loadData();
    function loadData():void {
          var thisPortrait:String = portraitArray[imageNum];
          var thisCountry:String = countryArray[imageNum];
          var thisName:String = nameArray[imageNum];
          var thisJobtitle:String = jobtitleArray[imageNum];
          var thisFlag:String = flagArray[imageNum];
          var dataLoader:Loader = new Loader();
          dataLoader.load(new URLRequest(portraitArray[imageNum]));
          dataLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dataLoaded);
          function dataLoaded(event:Event):void {
                stage.addEventListener(MouseEvent.CLICK, loadMainImage1);
                function loadMainImage1(event:MouseEvent):void {
                      portraitUILoader.source=thisPortrait;
                      flagUILoader.source=thisFlag;
                      selectedName.text=thisName;
                      selectedCountry.text=thisCountry;
                      selectedJobtitle.text=thisJobtitle;
    //add 1 to imageNum
    if (imageNum < totalImages) {
         trace("imageNum " + imageNum);
         trace("image name (thisPortrait) " + thisPortrait);
         imageNum++;
         if (imageNum!=totalImages) {
              loadData();

    solution :
    import flash.events.MouseEvent;
    stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();
    var contactArray:Array = new Array();
    var imageNum:Number = 0;
    var totalImages:Number;
    //Load XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("recbook.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void
        var theXMLData:XML = new XML(XMLURLLoader.data);
        totalImages = theXMLData.name.length();
        for (var i:Number =0; i < totalImages; i++)
            //push xml data into the arrays
            nameArray.push(theXMLData.name[i]);
            countryArray.push(theXMLData.country[i]);
            portraitArray.push(theXMLData.portrait[i]);
            flagArray.push(theXMLData.flag[i]);
            jobtitleArray.push(theXMLData.jobtitle[i]);
            contactArray.push(theXMLData.contactInfo[i]);
        //data is processed;
        loadData();
    homeScreen_btn.visible=false;
    var thisPortrait:String;
    var thisCountry:String;
    var thisName:String;
    var thisJobtitle:String;
    var thisFlag:String;
    var thisContact:String;
    function loadData():void
         thisPortrait= portraitArray[imageNum];
        thisCountry= countryArray[imageNum];
        thisName = nameArray[imageNum];
        thisJobtitle = jobtitleArray[imageNum];
        thisFlag = flagArray[imageNum];
        thisContact = contactArray[imageNum];
        var dataLoader:Loader = new Loader();
        dataLoader.load(new URLRequest(portraitArray[imageNum]));
        dataLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dataLoaded);
        function dataLoaded(event:Event):void
                portraitUILoader.source = thisPortrait;
                flagUILoader.source = thisFlag;
                selectedName.text = thisName;
                selectedCountry.text = thisCountry;
                selectedJobtitle.text = thisJobtitle;
                selectedContact.text = thisContact;
                //add 1 to imageNum and cycle through the data
                if (imageNum < totalImages)
                    imageNum++;
                    trace(totalImages);
                    if (imageNum!=totalImages)
                        goNext_btn.addEventListener(MouseEvent.CLICK,nextfn);
                    }else goNext_btn.removeEventListener(MouseEvent.CLICK,nextfn);
                }//closes incrementation loop
            }//close loadMainImage
    }//close loadData
            function nextfn(e:MouseEvent):void{
                loadData();

  • XML phone book, goes forward but not back help?

    The function at the end needs to allow a person to go back in the data. I can go forward, but I cannot go back. (This much works VERY well thanks to relaxatraja.) 
    import flash.events.MouseEvent;
    stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();
    var contactArray:Array = new Array();
    var imageNum:Number = 0;
    var totalImages:Number;
    //Load XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("recbook.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void
        var theXMLData:XML = new XML(XMLURLLoader.data);
        totalImages = theXMLData.name.length();
        for (var i:Number =0; i < totalImages; i++)
            //push xml data into the arrays
            nameArray.push(theXMLData.name[i]);
            countryArray.push(theXMLData.country[i]);
            portraitArray.push(theXMLData.portrait[i]);
            flagArray.push(theXMLData.flag[i]);
            jobtitleArray.push(theXMLData.jobtitle[i]);
            contactArray.push(theXMLData.contactInfo[i]);
        //data is processed;
        loadData();
    homeScreen_btn.visible=false;
    var thisPortrait:String;
    var thisCountry:String;
    var thisName:String;
    var thisJobtitle:String;
    var thisFlag:String;
    var thisContact:String;
    function loadData():void
         thisPortrait= portraitArray[imageNum];
        thisCountry= countryArray[imageNum];
        thisName = nameArray[imageNum];
        thisJobtitle = jobtitleArray[imageNum];
        thisFlag = flagArray[imageNum];
        thisContact = contactArray[imageNum];
        var dataLoader:Loader = new Loader();
        dataLoader.load(new URLRequest(portraitArray[imageNum]));
        dataLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dataLoaded);
        function dataLoaded(event:Event):void
                portraitUILoader.source = thisPortrait;
                flagUILoader.source = thisFlag;
                selectedName.text = thisName;
                selectedCountry.text = thisCountry;
                selectedJobtitle.text = thisJobtitle;
                selectedContact.text = thisContact;
                //add 1 to imageNum and cycle through the data
                if (imageNum < totalImages)
                    imageNum++;
                    trace(totalImages);
                    if (imageNum!=totalImages)
                        goNext_btn.addEventListener(MouseEvent.CLICK,nextfn);
                    }else goNext_btn.removeEventListener(MouseEvent.CLICK,nextfn);
                }//closes incrementation loop
            }//close loadMainImage
    }//close loadData
            function nextfn(e:MouseEvent):void{
                loadData();

    I've restructured your code into a format which is more understandable and added a back button functionality.. I don't have some of the required objects so I can't test this, but it is closer to what you need in my opinion.
    Variables and event listeners should be declared outside of the functions for better performance. Hoipe this helps
    var nameArray:Array = [];
    var countryArray:Array = [];
    var portraitArray:Array = [];
    var flagArray:Array = [];
    var jobtitleArray:Array = [];
    var contactArray:Array = [];
    var imageNum:Number = 0;
    var totalImages:Number;
    var thisPortrait:String;
    var thisCountry:String;
    var thisName:String;
    var thisJobtitle:String;
    var thisFlag:String;
    var thisContact:String;
    var dataLoader:Loader = new Loader();
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("recbook.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    goNext_btn.addEventListener(MouseEvent.CLICK,goNextClick);
    nameOfyourBackButton.addEventListener(MouseEvent.CLICK,goBackClick);
    function processXML(event:Event):void {
        var theXMLData:XML = new XML(XMLURLLoader.data);
        totalImages = theXMLData.name.length();
        for (var i:Number =0; i < totalImages; i++) {
            nameArray.push(theXMLData.name[i]);
            countryArray.push(theXMLData.country[i]);
            portraitArray.push(theXMLData.portrait[i]);
            flagArray.push(theXMLData.flag[i]);
            jobtitleArray.push(theXMLData.jobtitle[i]);
            contactArray.push(theXMLData.contactInfo[i]);
        loadData();
    function loadData():void {
        dataLoader.load(new URLRequest(portraitArray[imageNum]));
        dataLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dataLoaded);
    function dataLoaded(event:Event):void {
        thisPortrait = portraitArray[imageNum];
        thisCountry = countryArray[imageNum];
        thisName = nameArray[imageNum];
           thisJobtitle = jobtitleArray[imageNum];
        thisFlag = flagArray[imageNum];
        thisContact = contactArray[imageNum];
        portraitUILoader.source = thisPortrait;
        flagUILoader.source = thisFlag;
        selectedName.text = thisName;
        selectedCountry.text = thisCountry;
        selectedJobtitle.text = thisJobtitle;
        selectedContact.text = thisContact;
    function goNextClick(e:MouseEvent):void {
        imageNum += 1;
        loadData();
    function goBackClick(e:MouseEvent):void {
        imageNum -= 1;
        loadData();

  • XML Quote report

    We have a problem with our XML Quote report that cuts off the report at 26 pages when it should go to about 200 pages.
    We have another report the Acknowledge Quote and it works fine.

    Finally we found the solution for this problem.
    1. Open qotSCocPrint.jsp and add below line inside <SELECT id="qotOutFrmt" name="qotOutFrmt"> statement. This line should be added after "for" loop.
    <OPTION value="EXCEL">Excel Format</option>
    We can add as many options the XML Publisher supports.
    2. Decompile oracle.apps.aso.print.webui.MainCO.class (Controller).
    Change the below line
    httpservletresponse.setContentType("application/pdf");
    to
    httpservletresponse.setContentType("application/"+quoteOutputFormat.toLowerCase());
    Take a backup of the original file, compile the java in the same directory.
    3. Decompile oracle.apps.aso.print.server.PrintQuoteAMImpl.class and change this line
    Field field = class2.getDeclaredField("OUTPUT_TYPE_PDF");
    to
    String outputFormat="OUTPUT_TYPE"+as[12].trim();
    Field field = class2.getDeclaredField(outputFormat);
    Bounce Apache and generate the Quote output in desired format.

  • Issue in Creation of XML file from ABAP data

    Hi,
    I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
    The required format is
    -<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
       - <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
              <Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
              <Header4  1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
               <Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
          </Header2>
       </Header1>
    Iu2019m using the call transformation to convert ABAP data to XML file.
    So please anybody can help how to define XML structure in transaction XSLT_TOOL.
    And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
    Please help me in this to get it resolved.

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • Rendering xml-table into logical filename in SAP R/3

    Hi,
    I am trying to translate an xml-table with bytes into a logical filepath in SAP R3.
    Do I have to use the method gui-download or shall I loop the internal xml-table?
    When I tried to loop the xml-table into a structure, and then transfering the structure into the logical filename, I get problems with the line breaks in my xml-file. How do I get the lines to break exactly the same as I wrote them in my ABAP-code?
    Edited by: Kristina Hellberg on Jan 10, 2008 4:24 PM

    I believe you posted in the wrong forum.
    This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    Ludek

  • Momento de envio do XML

    Boa tarde,
    Estou em um projeto de implementação e com a seguinte dúvida:
    Requerimentos:
    Tenho que enviar o XML assim que a Invoice+NF é gerada (VF01/VF04, etc).
    Num segundo momento, após a aprovação do XML, eu poderei imprimir a DANFe.
    Envio XML:
    Sei que a função que mapeia o XML para a versão 2.0 é a J_1B_NF_MAP_TO_XML e a função que envia para o GRC ou outra mensageria (utilizaremos NeoGrid) é a J_1B_NFE_XML_OUT.
    A pergunta é: como faço a chamada destas funções? Qual programa devo chamar? Em qual momento? É por customizing ou por uma exit no faturamento?
    Obs.: entendo que estas funções já estão configuradas no monitor J1BNFE para solicitar o reenvio da nota, etc.
    Impressão DANFe:
    Em paralelo, na J1BJ vou ter que configurar somente o programa de impressão do DANFe (J_1BNFPR), correto? Pois assim quando eu gerar e processar o output da NAST ele irá fazer a impressão do documento, correto?
    Caso não entendam as perguntas por favor me contestem que eu explico melhor.
    Obrigado!
    Felipe Brasil Simioni

    Olá, Fernando.
    Por favor veja se pode nos ajudar.
    Estamos tendo o mesmo problema com o envio do XML para a mensageria (não GRC).
    Seguindo as parametrizações indicadas acima:
    SPRO
       Componentes válidos para várias aplicações
         Funções gerais de aplicação
           Nota Fiscal
             Saída
               Atribuir parametros de numeração e dxed impressão
    O local de negócios está configurado como RFC CALL vazio (segue descrição abaixo):
    "Execução RFC e atualização banco dados na mesma LUW (padrão)"
    Porém, ao tentar enviar a nota fiscal (ex: J1B1N), ocorre um erro na SM58 e o XML não é enviado para o sistema de mensageria.
    Analisando o programa SAPLJ_1B_NFE, no include LJ_1B_NFEF42, vemos que para mensagerias não GRC o programa chama a função J_1B_NFE_XML_OUT em background task, o que ocasiona o erro abaixo na SM58.
      IF sy-subrc IS INITIAL.
    non SAP messaging system                          "V1.10
        if lv_xnfeactive is initial.                    "V1.10
    Call function asych. when RFC connection available
    gv_callmode can be switched in debbuging to call the RFC synchronous
    do not reset gv_callmode direct after the RFC call
          if gv_callmode is initial.
            CALL FUNCTION 'J_1B_NFE_XML_OUT'
    IN BACKGROUND TASK
              DESTINATION lv_rfcdest
              EXPORTING
                xml_in                = xmlh
                xml_item_tab          = xmli_tab
                xml_batch             = xmlb_tab
                xml_ref               = xmlr_tab
                xml_dup               = xmld_tab
                xml_vol               = xmlv_tab
                xml_head_tab          = xmlh_tab          "V1.10
                xml_imp               = xml_import_tab    "V1.10
                xml_ext1              = xml_ext1_tab      "V1.10
                xml_ext2              = xml_ext2_tab      "V1.10
                xml_adi               = xml_adi_tab       "V2.00
                xml_reb               = xml_reb_tab       "V2.00
                xml_cane_dia          = xml_cane_dia_tab  "V2.00
                xml_cane_ded          = xml_cane_ded_tab. "V2.00
    Erro da SM58:
          RfcAbort: Cannot lock transaction
          Nº mensagem SR053
    Note que a chamada é feita de forma assincrona porque a variável gv_callmode está como initial, e que segundo o comentário da SAP, essa variável é usada somente para debug, sem qualquer parametrização que controle o modo de chamada.
    Obs: se comentarmos a linha IN BACKGROUND TASK, tudo funciona perfeitamente.
    Mas obviamente não é o que queremos fazer. Queremos manter o programa original da SAP.
    Já pesquisamos notas para esse problema, mas não encontramos nada que se refira a esse problema.
    Alguém mais se deparou com essa situação?
    Desde já agradeço pela ajuda.
    Rodrigo Ferreira

Maybe you are looking for

  • How to "straighten" photos in iWeb?

    Hi All, I'm just starting to use iWeb and trying to learn the ins and outs. One thing I can't seem to find is a "straighten" feature for photos once they are placed in a page. For example, when selecting the "adjustments" one is presented with the us

  • Strange behavior in System Preferences when trying to change backgrounds

    Running 10.5.1 on my MacBook Pro without a hitch until today. Installed Aperture 1.5 and updated it to 1.5.6 last night and it too works fine. However, today when I went to change my background image in System Preferences I encountered some strange v

  • Photoshop is not working

    Hello, I am Laurenz and I need help. I am in the US for an excange program but I am from Germany. I bought here in the US the Photo Cloud and want to open Photoshop. But it chrash and the program is not working. Can anybody help me please? Windows 8

  • Final cut pro 5.0.4 compatibility with 6.0.6 (GENERAL ERROR 41)

    I'M TRYING TO OPEN A FINA CUL PROJECT I EDITED on a Mac Book Pro, apparently with a 6.0.6 version this MAC I'm trying to continue working is using a 5.0.4 version I'm trying to update Final Cut, but it says it does not need the updates for anything p

  • Page visibility

    Hello! A page must be visible and accessible by all users irrespective of roles. How can I accomplish this? The users can have any roles and any permission list associated. I've checked "Public" option under Content Reference Security tab in PeopleTo