VISIO insert from file problem

I have been running some VBA code in MS Access for some time (3+) years, but the code is now giving me some issues.  When I wrote the code, I was using Windows XP, VISIO 2007, MS Access 2007, and Adobe Reader.  Since then several migrations have happened to me.  I moved to VISIO 2010 (code still worked).  I moved to Office 2010 which included Access 2010 and had VISIO 2010 re-installed (code still worked).  I then had the full Adobe Acrobat installed (unsure of version, but the code still worked).  Recently, I was migrated to Windows 7, which required a re-installation of Office 2010, VISIO 2010, and Adobe Acrobat (now version XI PRO).  Since that time, my code is giving me problems.  I have the following line of code in an Access VBA program:
Set shpOBJ = visapp.activewindow.page.InsertFromFile(Stacking_rpt, visInsertAsEmbed
This code is intended to insert a report (named stacking_rpt), on a VISIO sheet as an imbedded report.  That is, the contents of Stacking_rpt is embeded onto the VISIO sheet and shows as a report.  Since this last upgrade, this line of code produces an Adobe Acrobat icon with the words Stacking_rpt.PDF under the ICON. 
My boss also had her machine upgraded at the same time.  She runs the same code from the same Access database as I do and hers runs fine.  The only difference that I can see is that she only has Acrobat reader not the full application.  This leads me to believe that there is a setting/option in either Adobe or Access which is causing my issue.  I have reviewed all of the options in both, but have not been able to identify anything that might be related to this issue.
Does anyone have any ideas?

This is actually a question better suited to the Adobe Acrobat SDK forum:  http://forums.adobe.com/community/acrobat/acrobat_sdk
You are probably just viewing the resulting PDF file from you solution and the way to call Acrobat and Reader is now a little different if you are using DDE.
http://blogs.adobe.com/pdfdevjunkie/what-developers-need-to-know-about-acrobat-x
Big Changes in the DDE Naming Convention
In the previous releases, it was possible that a PDF file would not open in the default handler if other applications were open. For example, even if Acrobat Reader was set as default handler for PDF files, the PDF files would open in Acrobat if Acrobat was installed and running. This could lead to issues, especially for sandboxing applications.
In this release, the PDF files open in the default handler even if other applications that can read PDF files are open. In the example cited earlier, the PDF now opens in Reader, even if Acrobat is running.
To implement this feature, there has been a change to the DDE naming convention—the DDE server name has been made unique for Acrobat and for Reader. The new naming convention is as follows:
Acroview{A|R}{MajorVersion} where {A|R} refer to Acrobat and Reader respectively.
For example, the name is AcroViewA10 for Acrobat X and AcroViewR10 for Reader 10.
For connecting to previous versions of Acrobat/Reader, the DDE connect string name continues to be “acroview”. You can get the correct name by using the “DDEAPPNAME” macro defined in WinAppSemaphore.h.
NOTE: Any scripts that have hard-coded references to the DDE name will have to be updated.

Similar Messages

  • Change Insert from File preferences

    Hi folks,
    the default for the Insert from File are set to .pdf and therefore I only see a window with pdf files. Commonly I want to see all files and so I have to change the drop down menu to see ALL FILES.
    Is there a way of permanently changing from .pdf to All Files?
    Thanks you
    Peter

    thanks,
    while it is not a permanent solution it is a reasonable work around - thank you
    Peter

  • Insert from File puts an Adobe ad in my document

    I'm on a deadline to get a document out tonight.  The document consists of 6 pages.  The first two were brought in by my scanner and saved as PDF.  Then I opened that document and used Tools | Insert from File to add 4 existing 1-page PDF documents to the end of my first document.  This seemed to go okay until I reviewed the resulting PDF document.  In place of page #3 is an ad for Adobe Acrobat/Reader.  There is a big logo and then the text,
    For the best experience, open this PDF portfolio in Acrobat X or Adobe Reader X, or later."
    When I try to delete the page, the original page does not show up.  When I re-insert the page, I get the ad.  If I re-insert at a different location in the document, I get the ad.  I've never had this happen before.  What is going on and how can I get rid of it?
    Thanks,
    Dave
    Acrobat 10.1.8

    The page is not an ad. It is displayed INSTEAD OF what you want to see when the viewer doesn't understand what to do, and is the best it can do. So check your versions and software. if all seems well a full screen shot showing the Acrobat window and the message may be best. Also, do you get other messages e.g. about installing Flash?

  • Default Navigation Pane view after Insert From File

    For some reason the Navigation Pane switches to the Page Thumbnails after the Insert From File command is used in Acrobat XI Professional. This did not happen in Acrobat 9, 7, 6, or 5.
    I've looked through various help material and forums to see if this is a preference that can be changed (i.e., either not set a default and maintain current Navigation Pane view (the method of the previous versions), or set a default to something other than Page Thumbnails (e.g., Bookmarks)) and have not been able to find a solution.
    I can use Insert from File up to 200 times in a day, and this little glitch is proving to be very frustrating.

    For some reason the Navigation Pane switches to the Page Thumbnails after the Insert From File command is used in Acrobat XI Professional. This did not happen in Acrobat 9, 7, 6, or 5.
    I've looked through various help material and forums to see if this is a preference that can be changed (i.e., either not set a default and maintain current Navigation Pane view (the method of the previous versions), or set a default to something other than Page Thumbnails (e.g., Bookmarks)) and have not been able to find a solution.
    I can use Insert from File up to 200 times in a day, and this little glitch is proving to be very frustrating.

  • Time Stamp format from file problem

    Hey there,
    I have a pretty peculiar problem. I'm working on two PCs right now, one is my private laptop running on Windows 8, and the other one the PC at my workplace, running on Windows XP, but on the same version of LabVIEW. I use this method to save the time and date to a tab delimited .txt file. Then later, with another VI, I read the date and time written to file to reconstruct the time stamp. I've noticed that dates written to file from my workplace differ from the dates written from my private PC: in Windows XP, there are "-" separating the day, month and year. In Windows 8, it's "/". There are other differences (see pictures). So naturally, when reading from file using my VI, I can only read on my private PC files (or at least dates) written on my private PC and vice versa, I can't read files written on my private PC on my workplace PC. Can anybody tell me why there's a difference in format, or how to write the date uniformly so I can read it on any PC, or how to read both formats?
    So this is the method I use for writing the time and date (the subVI only inserts a certain number of TAB characters).
    This is what it looks like on Windows 8
    This is what it looks like on Windows XP
    This is the VI (attached) I use to read the time stamps (the first row actually contains the time stamp in HH:MM: SS format for a whole bunch of measurements).
    Have a nice day.
    Solved!
    Go to Solution.
    Attachments:
    Extract Time Stamps.vi ‏22 KB

    I would suggest using the ISO-8601 UTC format.
    The only limitation is that the string value is in reference to GMT.
    The conversion of the string back to a timestamp will present the date/time on your front panel indicator as local time.
    https://lavag.org/topic/15034-timestamp-support-for-format-into-string-scan-variant-from-string-stri...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Prevent Duplicates from Inserting from File in Stored Procedure

    CREATE TABLE dbo.Logins
    [ID] numeric(10, 0) NOT NULL Primary Key,
    [Dr_FName] varchar(50) NOT NULL,
    [Dr_LName] varchar(50) NOT NULL,
    [Login] varchar(50) NOT NULL
    GO
    CREATE TABLE [dbo].[CRIS_USER] (
    [id] numeric(10, 0) NOT NULL Primary Key,
    [login_id] varchar(20) NOT NULL
    GO
    CREATE TABLE [dbo].[CRIS_SYSTEM_USER] (
    [id] numeric(10, 0) NOT NULL Primary Key,
    [cris_user_id] numeric(10, 0) NOT NULL,
    INSERT INTO Logins
    (ID, Dr_FName, Dr_LName,Login)
    VALUES(1,'Lisa','Mars','lmars')
    INSERT INTO Logins
    (ID, Dr_FName, Dr_LName,Login)
    VALUES(2,'Becky','Saturn','bsaturn')
    INSERT INTO Logins
    (ID, Dr_FName, Dr_LName,Login)
    VALUES(3,'Mary','Venus','mvenus')
    INSERT INTO CRIS_USER
    (ID,login_id)
    VALUES(10, 'lmars')
    INSERT INTO CRIS_USER
    (ID,login_id)
    VALUES(20, 'bsaturn')
    INSERT INTO CRIS_USER
    (ID,login_id)
    VALUES(30, 'mvenus')
    INSERT INTO CRIS_SYSTEM_USER
    (ID,cris_user_id)
    VALUES(110, 10)
    INSERT INTO CRIS_SYSTEM_USER
    (ID,cris_user_id)
    VALUES(120,20)
    INSERT INTO CRIS_SYSTEM_USER
    (ID,cris_user_id)
    VALUES(130, 30)
    I'm aware that "ID" is a bad column name and that it should not be numeric. The ID columns are incremented by a program. They are not auto incremented. I didn't design it.
    I have a stored procedure that does a bulk insert from a tab delimited file into the three tables:
    CREATE PROCEDURE [dbo].[InsertUserText]
    WITH EXEC AS CALLER
    AS
    IF OBJECT_ID('TEMPDB..#LoginTemp') IS NULL
    BEGIN
    CREATE TABLE #LoginTemp(Login varchar(50),Dr_FName varchar(50),Dr_LName varchar(50))
    BULK INSERT #LoginTemp
    FROM 'C:\loginstest\InsertUserText.txt'
    WITH (ROWTERMINATOR ='\n'
    -- New Line Feed (\n) automatically adds Carrige Return (\r)
    ,FIELDTERMINATOR = '\t'
    --delimiter
    ,FIRSTROW=4)
    PRINT 'File data copied to Temp table'
    END
    DECLARE @maxid NUMERIC(10,0)
    DECLARE @maxid2 NUMERIC(10,0)
    DECLARE @maxid3 NUMERIC(10,0)
    BEGIN TRANSACTION
    SELECT @maxid = coalesce(MAX(ID), 0)
    FROM dbo.LOGINS WITH (UPDLOCK)
    INSERT INTO dbo.LOGINS(ID,Dr_FName,Dr_LName,Login)
    SELECT row_number() OVER(ORDER BY (SELECT NULL)) + @maxid,
    Dr_FName,Dr_LName,Login
    FROM #LoginTemp
    WHERE #LoginTemp.Dr_FName is not Null;
    SELECT @maxid3 = coalesce(MAX(id), 0)
    FROM dbo.CRIS_USER WITH (UPDLOCK)
    INSERT INTO dbo.CRIS_USER(id,login_id)
    SELECT row_number() OVER(ORDER BY (SELECT NULL)) + @maxid3,
    Login
    FROM #LoginTemp
    WHERE #LoginTemp.Dr_FName is not Null;
    SELECT @maxid2 = coalesce(MAX(id), 0)
    FROM dbo.CRIS_SYSTEM_USER WITH (UPDLOCK)
    INSERT INTO dbo.CRIS_SYSTEM_USER(id,cris_user_id)
    SELECT row_number() OVER(ORDER BY (SELECT NULL)) + @maxid2,
    + row_number() OVER(ORDER BY (SELECT NULL)) + @maxid3
    FROM #LoginTemp
    WHERE #LoginTemp.Dr_FName is not Null;
    PRINT 'Copied from Temp table to CRIS_USER'
    COMMIT TRANSACTION
    GO
    What suggestions do you have to prevent a duplicate Logins.Login? None of the inserts for all three tables should occur if a login already exists in the Logins table. There should be a message to indicate which Login failed. I haven't yet decided if I want
    all of the logins in the text file to fail if there is a duplicate, or just the one with the duplicate. I'm open to suggestions on that. So far, the duplicates only occur when someone forgets to update the tabbed delimited file and accidently runs the procedure
    on an old one. I'm sure I can come up with an if statement that will accomplish this. I could maybe use WHERE EXISTS or WHERE NOT EXISTS. But I know I can get a good solution here.
    I'm also aware that duplicates could be prevented in the table design. Again, I didn't design it.
    I have a tab delimited file created but don't see a way to attach it.
    Thanks for any help.

    Thanks to all three that replied. I meant to mark the question as answered sooner. I've tried all the suggestions on a test system. All will work with maybe some slight variations. Below was my temporary quick fix. I'm working on switching to a permanent
    solution based on the replies.
    This is not the real solution and is not the answer to my question. It's just temporary.
    IF OBJECT_ID('TEMPDB..#LoginTemp') IS NULL
    BEGIN
    CREATE TABLE #LoginTemp(Login varchar(50),Dr_FName varchar(50),Dr_LName varchar(50))
    BULK INSERT #LoginTemp
    FROM 'C:\loginstest\InsertUserText.txt'
    WITH (ROWTERMINATOR ='\n'
    Return (\r)
    ,FIELDTERMINATOR = '\t'
    ,FIRSTROW=4)
    PRINT 'File data copied to Temp table'
    END
    DECLARE @maxid NUMERIC(10,0)
    DECLARE @maxid2 NUMERIC(10,0)
    DECLARE @maxid3 NUMERIC(10,0)
    IF EXISTS(SELECT 'True' FROM Logins L INNER JOIN #LoginTemp LT on L.Login = LT.Login
    BEGIN
    SELECT 'Duplicate row!'
    END
    ELSE
    BEGIN
    BEGIN TRANSACTION
    SELECT @maxid = coalesce(MAX(ID), 0)
    FROM dbo.LOGINS WITH (UPDLOCK)
    INSERT INTO dbo.LOGINS(ID,Dr_FName,Dr_LName,Login)
    SELECT row_number() OVER(ORDER BY (SELECT NULL)) + @maxid,
    Dr_FName,Dr_LName,Login
    FROM #LoginTemp
    WHERE #LoginTemp.Dr_FName is not Null;
    SELECT @maxid3 = coalesce(MAX(id), 0)
    FROM dbo.CRIS_USER WITH (UPDLOCK)
    INSERT INTO dbo.CRIS_USER(id,login_id)
    SELECT row_number() OVER(ORDER BY (SELECT NULL)) + @maxid3,
    Login
    FROM #LoginTemp
    WHERE #LoginTemp.Dr_FName is not Null;
    SELECT @maxid2 = coalesce(MAX(id), 0)
    FROM dbo.CRIS_SYSTEM_USER WITH (UPDLOCK)
    INSERT INTO dbo.CRIS_SYSTEM_USER(id,cris_user_id)
    SELECT row_number() OVER(ORDER BY (SELECT NULL)) + @maxid2,
    + row_number() OVER(ORDER BY (SELECT NULL)) + @maxid3
    FROM #LoginTemp
    WHERE #LoginTemp.Dr_FName is not Null;
    COMMIT TRANSACTION
    END
    GO

  • Reading integers from file problem...

    I managed to read integers from a file but only the ones from the first line. I can't somehow read the remaining lines.
    The format is...
    33 212 3111 12 1
    1
    123
    2 3 4
    I know that the first while loop pretty much does nothing...
    Any help is appreciated :)
    import java.util.*;
    import java.io.*;
    public class TokenTest {
          public static void main(String[] args) throws Exception {
                BufferedReader in = new BufferedReader(new FileReader("numbers.txt"));
                String line = in.readLine();
                StringTokenizer st = new StringTokenizer(line);
                while (in.readLine() != null) {
                      while (st.hasMoreTokens()) {
                            String s = st.nextToken();
                            int j = Integer.parseInt(s);
                            System.out.print(j + " ");
    }

    Ok i kind of done it. For the input...
    0 56 3
    23 6 10 12
    3 2 4
    1
    It returns 23 6 10 12 3 2 4 1. Basically all the numbers except for the first line.
    import java.util.*;
    import java.io.*;
    public class TokenTest {
          public static void main(String[] args) throws Exception {
                BufferedReader in = new BufferedReader(new FileReader("numbers.txt"));
                String line = in.readLine();
                while ((line = in.readLine()) != null) {
                      StringTokenizer st = new StringTokenizer(line);
                      while (st.hasMoreTokens()) {
                            String s = st.nextToken();
                            int j = Integer.parseInt(s);
                            System.out.print(j + " ");
    }

  • Insert from File command

    I have a large document and need to import several other PDFs into this document. 
    When importing multiple documents in one go can you choose or edit the order in which they're imported?  I ask this because I have a folder with say, 20 PDFs, and instead of importing the documents in the order in which they appear, it imports the last document first and so on.  If any of these imported docs have bookmarks contained within then it also adds these at the end of the document.
    I'm using Pro XI on a PC.
    Many thanks in anticiption, and merry Xmas!
    Regards,
    Gary

    I don't have an answer on the bookmarks, but have found that the reverse order has been the case for several versions of Acrobat and it nothing new. It can be frustrating.

  • Sliding Flash Interface - Using Links from an XML file Problem

    Hi All,
    Working on a new site for the company i've recently started
    working for... fairly new to flash but wanted to try this sliding
    interface for the graphic banner at the top of the page...
    have a look here at an early version of the site - sliding
    graphic interface at the top with coloured rollover buttons (a lot
    of work still to do! feel free to post constructive criticism)
    (am I allowed to post links??)
    here is the unfinished version with no links in the flash bit
    http://www.westfieldhealth.com/website/index.asp
    The Problem:
    I am pulling in a 'heading' 'text' and 'image' into the
    sliding graphic interface from the following xml file... (there are
    4 different xml files for 4 different slides)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <content>
    <dialogue>
    <heading>Interested in selling our health
    plans?</heading>
    <text>Click here to learn more...</text>
    <img>home_window/intSmall.jpg</img>
    </dialogue>
    </content>
    I want to add a link to the xml that would be specific to
    each instance of the window...
    eg
    <link>contact-us/index.asp</link>
    But my limited knowledge of flash means I have no idea how to
    pull the link through from the xml file to use in the flash...
    Perhaps I need link text to pull as well
    eg
    <link-text>click here to contact us</link-text>
    Here is the function that pulls in the img, heading and txt
    public function onComplete(event:Event):void {
    var loader:URLLoader = event.target as URLLoader;
    if (loader != null) {
    externalXML = new XML(loader.data);
    mover_mc.heading_txt.htmlText =
    externalXML.dialogue[0].heading;
    mover_mc.myText_txt.htmlText = externalXML.dialogue[0].text;
    var url:URLRequest = new
    URLRequest(externalXML.dialogue[0].img);
    myLoader.load(url);
    } else {
    trace("loader is not a URLLoader!");
    Can anyone help me on how to pull in the link from the xml
    and use it to navigate to a different page on the site
    Thanks very much
    Hans
    link to
    my unfinished flash file...

    What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
    Cheers
    David

  • How do I insert multiple photos into an excel document vs inserting each individually?  Insert, Picture, From FIle...now what?  it only allows me to choose 1 at a time.

    Help - How do I insert multiple photos into an excel document vs inserting each individually?  Insert, Picture, From FIle...now what?  it only allows me to choose 1 at a time.

    https://discussions.apple.com/thread/3383532?tstart=0
    Stefan

  • BULK INSERT from a text (.csv) file - read only specific columns.

    I am using Microsoft SQL 2005, I need to do a BULK INSERT from a .csv I just downloaded from paypal.  I can't edit some of the columns that are given in the report.  I am trying to load specific columns from the file.
    bulk insert Orders
    FROM 'C:\Users\*******\Desktop\DownloadURL123.csv'
       WITH
                  FIELDTERMINATOR = ',',
                    FIRSTROW = 2,
                    ROWTERMINATOR = '\n'
    So where would I state what column names (from row #1 on the .csv file) would be used into what specific column in the table.
    I saw this on one of the sites which seemed to guide me towards the answer, but I failed.. here you go, it might help you:
    FORMATFILE [ = 'format_file_path' ]
    Specifies the full path of a format file. A format file describes the data file that contains stored responses created using the bcp utility on the same table or view. The format file should be used in cases in which:
    The data file contains greater or fewer columns than the table or view.
    The columns are in a different order.
    The column delimiters vary.
    There are other changes in the data format. Format files are usually created by using the bcp utility and modified with a text editor as needed. For more information, see bcp Utility.

    Date, Time, Time Zone, Name, Type, Status, Currency, Gross, Fee, Net, From Email Address, To Email Address, Transaction ID, Item Title, Item ID, Buyer ID, Item URL, Closing Date, Reference Txn ID, Receipt ID,
    "04/22/07", "12:00:21", "PDT", "Test", "Payment Received", "Cleared", "USD", "321", "2.32", "3213', "[email protected]", "[email protected]", "", "testing", "392302", "jdal32", "http://ddd.com", "04/22/03", "", "",
    "04/22/07", "12:00:21", "PDT", "Test", "Payment Received", "Cleared", "USD", "321", "2.32", "3213', "[email protected]", "[email protected]", "", "testing", "392932930302", "jejsl32", "http://ddd.com", "04/22/03", "", "",
    Do you need more than 2 rows? I did not include all the columns from the actual csv file but most of it, I am planning on taking to the first table these specfic columns: date, to email address, transaction ID, item title, item ID, buyer ID, item URL.
    The other table, I don't have any values from here because I did not list them, but if you do this for me I could probably figure the other table out.
    Thank you very much.

  • How to insert data from file into matlab script node

    I have interfaced input data from file to be processed using matlab script node. But the problem is that I could not capture the multiple data into matlab script node and to convert it into matrix. Further to this I need to process the data by plotting graphs from it. Thank you in advance for the advice

    Zarina,
    To clarify your problem, you have a script node contaning your Matlab code. Are you then using the standard LV functions to load in your data from a file and pass it into the script node?
    Regards
    Tristan

  • LPX-00004 - Problems while inserting xml files in a xmltype column

    I've faced two problems while trying to insert xml files into my table containing a xmltype column:
    create table xml_test (id number(20),content xmltype)
    I use following java code for writing xml docs into db:
         conn.setAutoCommit(false);
         OraclePreparedStatement stmt = (OraclePreparedStatement)
              conn.prepareStatement("INSERT INTO xml_test (id,content) VALUES(?,?)");
         File file = new File(file1);
         InputStream in1 = new FileInputStream(file1);
         Reader r1 = new BufferedReader(new InputStreamReader(in1, "UTF-8"));
         int len = 0;
         StringBuffer text = new StringBuffer();
         while ((len = r1.read()) != -1) {
              text.append((char) len);
         in1.close();
         r1.close();
         XMLType poXML1 = XMLType.createXML(conn, text.toString());
         for (int i = 1; i <= 1; i++) {
              stmt.setInt(1, i);
              stmt.setObject(2, poXML1);
              stmt.execute();
         conn.commit();
    1. problem: occures only if a xml schema has been assoicated to the specific xmltype column. it seems that the length of a specific xml tag in the document is limited. but why?
    java.sql.SQLException: ORA-22814: attribute or element value is larger than specified in type
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:656)
         at test.insertXML(test.java:84)
         at test.main(test.java:261)
    hier the xml-schema of the xmltype column "content":
    <?xml version="1.0" encoding="UTF-8"?>
    <!--W3C Schema generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xs:element name="AUTOR-ID" type="xs:string"/>
         <xs:element name="BODY" type="xs:string"/>
         <xs:element name="CONTENT">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="METADATEN"/>
                        <xs:element ref="BODY"/>
                   </xs:sequence>
                   <xs:attribute name="content-id" type="xs:string" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="DATUM" type="xs:string"/>
         <xs:element name="KEYWORD" type="xs:string"/>
         <xs:element name="METADATEN">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DATUM"/>
                        <xs:element ref="TITEL" maxOccurs="unbounded"/>
                        <xs:element ref="KEYWORD" maxOccurs="unbounded"/>
                        <xs:element ref="AUTOR-ID"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="TITEL" type="xs:string"/>
    </xs:schema>
    2. problem: hier i have no idea what is happening ... please help
    java.sql.SQLException: ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00004: internal error "MultiChar overflow"
    Error at line 61
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:656)
         at test.insertXML(test.java:53)
         at test.main(test.java:259)

    It's hard for me to tell you more without seeing your instance data, but for problem #1, if you look at the underlying SQL types being generated by your schema, you will see that the default SQL mapping for a "string" in your schema is a VARCHAR2(4000) (and I believe this would be only 2000 for a varying width character set like UTF8).
    You can specify that you wish this column to be mapped as a CLOB in your schema if this is the problem. Also note that there is a 64K limit on the size of an individual node in XMLType.

  • Multiple Target from an XML file problem

    I've an XLM file from which I import (using a pluggable mapping generated from xml_etl_ulils) data into a table.
    I need to execute some controls and log errors on these data.
    I created a splitter to split correct data (and put them into the table) and bad data (to log).
    However the generated mapping goes into an error because it tries to read 2 times the same XML data.
    The only way I found is to put all data (good and bad) into a temporary table and then apply the splitter to move data from that table to the targets.
    However that is not a clean solution because I need to have and manage 2 tables for each real table.
    Any clever suggestion ?
    Tks
    Tullio

    What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
    Cheers
    David

  • How to transformed data from File to DB but the data to be insert two tables  parallel?

    Hi friends ,I am new to Oracle SOA ,I have one requirement  for the project
    actually in these project
    1.I have to read three different types of files (Employee info,Purchase Order Info,Salaes Order Info) through file adapter these records are to be store in  data base 
    transaction table.In these transaction table contains WHO columns and payload  with clob data type which contains each  record  in xml form.
    2. Now I have to  take these payload data  which is in xml form and store   in the respective table(employee or PO or SO) .I have to call these in dynamically.
    so please give me ideas and suggesstions ,,
    thanks in advance

    Roger,
    I don't know about simple way to load data from file into a table using button from your application,
    Maybe some piece of PL/SQL code with UTL_FILE or DBMS_LOB, or you can try to upload file to database using Apex "File browse" item, and then do some processing with DBMS_LOB... but it will require some work...
    Maybe someone else could advice with some simple method I don't know...
    However loading files using Apex Load Utility is quite easy.
    You can use something like this to load data to views created on remote tables:
    CREATE TABLE local_tmp_table AS SELECT * FROM view_on_remote_table WHERE 1=0;
    --load data from file to created table using Apex Load utility
    INSERT INTO view_on_remote_table SELECT * FROM local_tmp_table;
    COMMIT;
    DROP local_tmp_table;Or without views:
    CREATE TABLE local_tmp_table AS SELECT * FROM remote_table@dblink WHERE 1=0;
    --load data from file to created table using Apex Load utility
    INSERT INTO remote_table@dblink SELECT * FROM local_tmp_table;
    DROP local_tmp_table;Regards
    Tomasz
    Message was edited by:
    Tomasz K.

Maybe you are looking for