Validating UTF-8 documents error

Dear experts!
I get utf8 saved xml documents into an oracle table (BLOB) of a WE8ISO8859-1 database. I use the following procedure to get a CLOB from the xml documents:
FUNCTION BLOB_TO_CLOB (blob_in IN BLOB)
RETURN CLOB
AS
     v_clob CLOB;
     v_varchar NVARCHAR2(32767); --UTF8
     v_start     PLS_INTEGER := 1;
     v_buffer PLS_INTEGER := 32767;
BEGIN
     DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
     FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in)/v_buffer)
     LOOP
     v_varchar := UTL_RAW.CAST_TO_NVARCHAR2(DBMS_LOB.SUBSTR(blob_in, v_buffer, v_start));
DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
          v_start := v_start + v_buffer;
     END LOOP;
RETURN v_clob;
END blob_to_clob;
In an other procedure I want to validate the xml docs with a schema:
begin
          xmltype.schemaValidate(l_xmldaten);
     EXCEPTION
          when OTHERS then
               l_exception := sqlerrm;
               dbms_output.put_line('Error: ' || l_exception);
          end;
On validating against the schema I get the following exception back:
ORA-31043: Element '' nicht global in Schema '' definiert
Any ideas?
Thanks
Markus

Have a look on this forum regarding NLS issues for instance:
Re: Conversion UTF-8 -> WINDOWS-1250
XML DB

Similar Messages

  • "...not a valid Photoshop document" error when opening Mac cc file on PC

    I get a "Could not complete your request because it is not a valid Photoshop document." error message whenever I try to open up a PSD file created on a Mac using Photoshop CC on my PC using CC. Other people have been able to open the file from the same location, so the files aren't corrupted. Anyone know how to fix this?

    I know this thread is a bit old, but I wanted to share my experience and solution in case anyone else runs into this.
    The other day, I spent many hours editing some photos for a client. I saved them all and closed Photoshop. When I tried to open the .PSDs, they all came up with this "Not a valid Photoshop document" error. I was freaking out. I could see the thunmbnails and previews with the MacOS Finder and could see the images just fine in Lightroom, but couldn't open them in Photoshop CC.
    Finally, I remembered that these were NOT supposed to be .psd files! They were supposed to be TIFFs. What happened was, when I edited them from within Lightroom into Photoshop, they opened as TIFFs. However, when I did "save as", I wanted to name them similarly to some other files I had. I clicked on one of the existing files to copy the file name in the Save As dialog to make it easier to name the new file I was saving, but I didn't realize it was changing the file extention from ".tif" to ".psd" as well. The older MacOS (version 9 and earlier) didn't rely on file extensions fo identifying file types, so it didn't hit me right away that this would be the problem. When I changed the incorrect .psd file extension to .tiff, the files opened in Photoshop just fine.
    SO... if you run into this "Not a valid Photoshop document" error, try figuring out if it's actually another file type (.jpg, .tif, .png, etc) by either getting the file info from another program or just experimenting with different file extensions. Chances are good that your file isn't actually corrupt, but just named improperly!

  • Servermgrd[584]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "v\035\363d".

    All,
    I am having a very odd problem.
    I have recently setup a Mac OS X Mavericks Server for the purposes of NetRestore.
    Everything setup fine, no issues whatsoever and the server has been running non-stop for the past 78 days.
    I've already imaged about 100 MacBook pros off of this server without a problem.
    This morning I come in, start up an MBP that needs to be imaged and it sees the netrestore volumes and attemps to boot to it
    then stops and doesn't go anywhere.
    I've had my NBI's on an external firewire 800 drive (1TB Lacie Rugged) and its been working fine.
    I've checked my logs numerous times and the only error I can find is: servermgrd[584]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "v\035\363d".
    The exact same error keeps repeating every 10 seconds or so.
    I read in another forum that sometime Mavericks Server doesn't like NBI images on external volumes, so I moved them to the standard /Library/Netboot/NetBootSP0 folder on the boot volume and turned off the external drive.
    I'm able to NetRestore again now, but the process is far slower then it was previsously and the error above still persists.
    I've rebooted the server, stopped and restarted the services, made sure no changes have been made on the network, and fully updated the server via software update.
    Any ideas would be greatly appreciated!
    Thanks in advance.

    I post some other error.
    I don't understand why some times when I reboot I don't get any errors and why some Ive this:
    Mac OS X Versione 10.4.9 (Build 8P2137)
    2007-04-26 09:26:54 +0200
    At revision 7057.
    Apr 26 09:27:02 MacBook diskarbitrationd[49]: SystemUIServer [265]:15143 not responding.
    Apr 26 09:27:02 MacBook /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framewo rk/Support/ATSServer: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "ˆ®˜Ëî^?Ío".
    Can any help me to found the problem???????
    Thanks so much to all

  • Validation foe blocking document types in FY 2009

    Hi All,
    Please help me to set the validation for the document types used in FY 2009.
    We want to block document type DG, KZ , Z3 & ZK for posting in FY 2009 for all the users. But the same document types would be continued to use for posting the entries related to FY 2008 We have already created one validation as follows -
    Application Area - FI
    Call up point - 1
    Perquisite-
    User Name = '1010FIN' OR User Name = 'CONSULTANTS' OR User Name = 'BASIS'
    Check -
    Document Type <> 'DG' AND Document Type <> 'KZ' AND Document Type <> 'Z3' AND
    Document Type <> 'ZK' AND ( Fiscal Year <> '2009' )
    Message - Document type blocked for posting.
    But with the above validation it is giving me the same error message whenever i m trying to post the documents in FY 2008 with the above document types.
    Please guide me in setting the logic so that system will allow me to use same document types in FY 2008 & not in FY 2009
    Thanks
    Sonal

    Hi Sonal,
    The other approach will be to not authorize the users to the document type (which u require)
    The following is the object for document type:
    F_BKPF_BLA -
    Accounting Document: Authorization for Document Types
    Instead of *, include all the docs which u require the authorization for.
    And for year...
    Only open the year for the users u desire
    Regards,
    Kiran

  • SleepServicesD[68]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, ""

    I have an iMac late 2013 which hangs after one night in sleep mode. The only way to get it back working again is to power cycle it (5 sec power button)
    It is a late 2013 21'' imac with 16GB RAM, and a fusion drive, with Mavericks installed.
    When I look in the console the following entries appear just before the reboot:
    10/10/14 00:45:17,000 kernel[0]: [0x2e0685000, 0x100000]
    10/10/14 00:45:17,000 kernel[0]: [0x2e07c5000, 0x80000]
    10/10/14 00:45:17,000 kernel[0]: [0x2e0885000, 0x100000]
    10/10/14 00:45:17,000 kernel[0]: [0x2e09c5000, 0x180000]
    10/10/14 08:15:58,000 bootlog[0]: BOOT_TIME 1412921758 0
    A lot of kernel messages, this is always the same. Just before the kernel messages appear these messages:
    10/10/14 00:44:50,000 kernel[0]: AppleThunderboltNHI::prePCIWake - power up complete - took 0 us
    10/10/14 00:44:50,000 kernel[0]: AppleThunderboltHAL::earlyWake - complete - took 0 milliseconds
    10/10/14 00:44:50,000 kernel[0]: VNOP_ALLOCATE(0) 413138944
    10/10/14 00:44:50,000 kernel[0]: Thunderbolt Self-Reset Count = 0xedefbe00
    10/10/14 00:44:50,000 kernel[0]: IOThunderboltSwitch<0xffffff8023b5c400>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
    10/10/14 00:44:51,000 kernel[0]: IOThunderboltSwitch<0xffffff8023b5c400>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
    10/10/14 00:45:17,000 kernel[0]: [0x1530d2000, 0x13000]
    These messages are always Thunderbold related. When I look in to the logs these events occur regularly, also when the system does not hangs over night. Today I discovered the following. Just before the crash there is an IOUnserialize error that is related to Sleep :
    10/10/14 00:44:21,874 SleepServicesD[68]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "P ��".
    Just after restart it generated several similar error, as:
    10/10/14 08:16:19,760 configd[18]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "P ��".
    I am not sure but it seems like that the crashes are more likely to occur when both me and my wife are logged in to the system. My wife is using Parallels desktop 9 with windows 8.1. And it seems that the hangs occur the night after she worked for multiple hour on the virtual machine, but I have to stress that this is just a feeling, I am not sure if that is the cause of the problems. Maybe working for extensive periods is the cause not the virtual machine.
    I am wondering did anyone other experience this and what worked for you? I am tired of the hard reboots. Today even the keyboard had crashed (apple wired keyboard with numerical input) I had to unplug it for a while (several minutes) before it started working again. The USB ports were fine after reboot. I tested them with another wired keyboard, while the other one was connected and not working. Switching ports did not help, thus that problem was really keyboard related.
    I hope someone has any ideas.
    Thanks in advance!

    To be sure I reinstalled Mavericks again, the first night exactly the same. This morning the imac did not wake up from sleep again. I checked the logs after a hard reboot. Exactly the same issue as above
    It contained multiple FIXME entries. The SleepService was the first FIXME that appeared in the log and is followed by multiple FIXMEs from various sources:
    11/10/14 03:05:29,052 SleepServicesD[71]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "Q
    ��".
    11/10/14 09:25:45,215 configd[17]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "1 � ".

  • Cannot open document (Error: INF)

    We have migrated reports from version Business Objects 6.5.1 to Business Objects XI 3.1 SP2. We have been receiving sporadic 'Cannot open document (Error: INF)' now and again whenever you open Desktop Intelligence reports using Infoview. Have any other users come across this issue using BOXI 3.1 SP2. I do not believe that this issue occurred on SP1.
    This error is very frustrating.
    I have browsed various forums and implemented changes which have had no effect whatsoever including the SAP Marketplace.
    We are also receiving SetPrompts Failed errors. When a report is opened in Infoview and you refresh a report, a blank dialog appears with a red cross. if you refresh the report again then the SetPrompts Failed error appears. I have evene made changes according to article 1364437 based on this error and this has not resolved the issue.
    Regards
    Dipendra

    We're on BOXI3.1 SP2 aswell and we have had the same sporadic issue - Cannot open document for Deski reports. This is causing some serious concern amongst our users over system stability.
    You can recreate the situation by shutting down the InputFileRepository server and you get the same message. I've noticed that when this happens there is a mesage in the fcproc log file 'm_repFileMgr.Download failed'
    My theory is that there may be some congestion in linking between the desktopintelligence server and the inputfilerepository. In addition, we had some logging on the fileserver and at the time of the error there was no mention of the report that failed or any error. We contacted SAP about this but did not get a satisfactory response. There were some heavily utilised DESKi reports which we managed to convert to Webi to take the load off and we also dropped the timeout to 20 minutes (not brilliant but it did mean that if we got the message the users wouldn't have to wait too long before it was resolved in case they couldn't get hold of IT).
    I also upped the parameter for Maximum Retries for File Access in case it was having problems getting the file.
    The result of this was that the error appeared to go away... until yesterday!!!
    Any further insights welcome.

  • UTF-8 Encoding errors during nightly batch runs

    My boss recently tasked me with researching (and hopefully resolving) why our XML frequently has UTF-8 encoding errors.
    I've been in the IS world for less than a year now so please bear with me when it comes to terms, data flow, etc.
    Overview:
    Our Oracle DB spits out XML for the nightly batch runs into a file location, lets say C:\xPression\CustomerData\Certificate.xml. The XML is in Courier New font but some characters make their way into the XML but arent supported. The big one is the elongated ' - ' character. Just one instance of this and the entire XML fails.
    When the batch job is run sometimes there are encoding errors (¿, ¡, -, etc) and every morning I have to come in, finding the invalid character, fix it and have the job re-run.
    I want to know if there's a way so that the XML that comes out is always in the Courier New font, or is there a way to convert it.

    I want to know if there's a way so that the XML that comes out is always in the Courier New font, or is there a way to convert it.
    First thing first, an XML file is a text file, it doesn't have a "font" but an encoding.
    The font is the graphical representation of characters and it is related to whatever client tool you're using to view the content, not to the content itself.
    That being said, a lot of fonts do not support the full range of unicode characters so you may get replacement characters in some case.
    We're missing some information to provide an answer :
    - what's the database version?
    - what's the character set of the database?
    - how are you generating and writing the XML to the file ? UTL_FILE, dbms_xslprocessor, dbms_xmldom?
    If the file is generated using UTF-8 encoding then the issue might just be that you're not using an UTF-8-enable editor.

  • Load the document in Firefox (click gmail "Documents") error: The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    load document in Firefox (clicking gmail "Documents", error: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • Cannot open document (Error: INF) / Session is closed (Error: INF )

    SAP BO XI3.1
    last time I face this one but suddenly disappear during testing, now we once again face this issue. As all users are member of group 'EveryOne' if we add any user membership to administrator group / master group this error resolved for this user.but that is not proper solutions, so far i m unable to find the rights which is lacking to all user for these report which are available in each user infoview and causing these errors while viewing.
    Open Document error message:
    While viewing Web Intelligence reports
    [Session is closed (Error: INF )|http://yfrog.com/0cwebirightsp|Session is closed (Error: INF )]
    While viewing Desktop Intelligence reports
    [Cannot open document (Error: INF )|http://yfrog.com/mjdeskirightsp|Cannot open document (Error: INF )]

    You might need to give read rights to the folder and category this report belongs to???
    If the problem is fixed when the user who is viweing is an administrator, this means there is insufficient privileges for the other users.

  • Validation on Clearing documents

    Hello
        We need to write a validation on Clearing Documents.
    can we validate the clearing functions F-03, F-32, F-44 for certain document types? We want to make sure that DocType 'ZL','ZG','ZS','ZI'( Z doc types in our business landscape) can't be cleared with regular document types like 'KR','SA'.
      How can we descriminate the Document type of Actual document and Clearing document type with respect to field names.
    Appreciate your valuable answers.
    Thanks
    Suresh

    hi,
    look this discussion:
    Re: F-03 Clearing
    A.

  • Special G/L Indicator -- Validation of double documents

    Hello!!!
    When we post a document with special G/L Indicator, table BSIP isnu2019t updated. The validation of double documents isnu2019t working for documents with special G/L Indicator.
    Do you know what we can do in order to validate duplicity for documents with special G/L Indicator?
    Regards,
    Fernando.

    Fernando,
    Were you able to get any solution for the same? We are facing the same issue.
    Regards,
    Hari

  • Maintain Validity Date for Documents

    Hi
    Any Idea how can we put and maintain Validity Dates for any Document uploaded in DMS Server.
    Validity Dates here means (Documents cannot be used if validty is over)
    I could not find any option in CV01*   T-Codes.
    Regards

    Dear Prasant,
    You can also do this solution also if you find it OK.
    1. Create a Class with "Validaty Date" as characteristics. Assign this Charac to class. Assign this class to doc Type. This charac should not be editable to any one except creator.
    2. Create a program with BAPI " Set Status" ( Check the name). which will run in background to check the validity date of Document. If the validity date is reached the BAPI will change the status to "S" as stated by Chritoph.
    This will help user to manually tracked which documents have exceded the validity date. You can also genegrate report and mail it to particular user that what documents have been set to Status "S".
    Hope I have provided a valid solution as I have tried similar kind of functionality with changing a characteristics with Date.
    With warm Regards
    Mangesh Pande

  • Large XML Document Error

    We are using Oracle's XSQL servlet engine 9.0.2.0.0A to query an Oracle Database using xsql:include-owa. This xsql document uses a custom serializer to write the resulting XML to a file on the webserver. We have run into a problem with writing XML documents larger than approximatly 7MB. The file is written but just contains a Malformed XML Document error. We have tried tracking down the problem and it seems to be occuring before the custom serializer is given control of the document. Attached below is the xsql document and the Java source of our serializer if it would be of any help.
    -Eric Dalquist
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="simple_transform_xml.xsl" serializer="XMLWriter"?>
    <BASE_TAG connection="XXXXXXXX" xmlns:xsql="urn:oracle-xsql">
        <xsql:set-page-param name="save-file" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/applInfo.xml"/>
        <xsql:include-owa >
            STUDEV.STUADMSDSET.P_GET_RECRUIT_INFO('A','C');
        </xsql:include-owa>
    </BASE_TAG>-----------------------------------------
    * Author:        Eric Dalquist
    * E-Mail:        [email protected]
    * Date Created:  10-03-2001
    * Last Modified: 10-03-2001
    * Modified By:   Eric Dalquist
    * Description:   This class writes out the contents of the final document produced by the xsql servlet.
    package com.mtu.XSQLSerializers;
    import java.io.FileOutputStream;
    import oracle.xml.xsql.*;
    import oracle.xml.parser.v2.XMLDocument;
    import org.w3c.dom.Document;
    * <P>
    *    XMLWriter is an implementation of the abstract XSQLDocumentSerializer class. It is passed a refrence to a DOM Document
    *    and the servlet environment. The XMLWriter takes the document and writes it out to the servlet's output stream. There
    *    is also the option that the saveFile xsql page parameter can be set to a fully qualified path and file name to write the
    *    document to.
    * </P>
    * <P>
    *    Here is an example of setting the saveFile page paramter. This line would be the first tag inside the root xsql servlet tag.
    * </P>
    * <PRE>
    *    &#060;xsql:set-page-param name="save-file" value="/u01/oracle/ias10210/xdk/java/xsql/Repository/Course_List/XMLDocument.xml"/&#062;
    * </PRE>
    * @author  Eric B. Dalquist
    * @version 1.0 10/03/2001
    public class XMLWriter implements XSQLDocumentSerializer
        /** the header we send if we are returning XML */
        private static final String MIME_XML = "text/xml";
        /** the name of the page parameter we look for to get the path and name to save the XML document to */
        private static final String ATTR_FILE = "save-file";
         * The serialize is called by the servlet engine and is passed the DOM Docuement result
         * from the XSLT transformation if there was one and a refrence to the XSQL servlet environment
         * @param doc The document representation of the XML output of the xsql servlet.
         * @param env A refrence to the servlet's environment.
         * @throws Throwable Any unhandled error is handled by the servlet by default.
        public void serialize(Document doc, XSQLPageRequest env) throws Throwable
            System.out.print("start ... ");
            FileOutputStream fos = null;
            String reqType = env.getRequestType();
            String saveFile = env.getParameter(ATTR_FILE);
            if (!reqType.equals("Command Line"))
                env.setContentType(MIME_XML);
                ((XMLDocument)doc).print(env.getOutputStream());
                env.getOutputStream().close();
            if (saveFile != null && !saveFile.equals("") && saveFile.indexOf("..") == -1 && saveFile.indexOf("~") == -1)
                fos = new FileOutputStream(saveFile);
                ((XMLDocument)doc).print(fos);
                fos.close();
            System.gc();
            System.out.println("end");
    }

    Technically DBMS_XMLSAVE and it's alter ego DBMS_XMLQUERY are not considered part of XML DB. DBMS_XMLSAVE and DBMS_XMLQUERY are legacy Java implementations.
    In 9.2.x these routines were replaced by DBMS_XMLSTORE and DBMS_XMLGEN which are written in 'C' and should be much faster in most cases and address a number of limitations inherant in the older implementations. DBMS_XMLSTORE and DBMS_XMLGEN are part of XML DB and the minimum supported release for XML DB is 9.2.0.3.0.
    DBMS_XMLSAVE issues are addressed in the TECH/XML forum
    http://forums.oracle.com/forums/category.jspa?categoryID=51

  • Preparing to Upgrade to LiveCycle ES from 7.x document error: page 85

    Preparing to Upgrade to LiveCycle® ES from 7.x document error: page 85, when configuring the JMS with Microsoft SQL Server 2005 for JBoss 4.0.3 SP1. Step 5: Modifiy <local-tx datasource> element .....   <connection-url> jdbc:microsoft.sqlserver ..... <c/onnection-url>, in mssql-ds.xml file:
    Should be: <connection-url>jdbc:sqlserver://.... </connection-url>
    Notice the word "microsoft" needs to be removed as this is SQL 2005, not SQL 2000.
    Also, in the same JMS configue file, com.microsoft.jdbc.sqlserver.SQLServerDriver should be changed to com.microsoft.jdbc.sqlserver.SQLServerDriver as the driver-class.
    We are using
    SQL 2005 SP1
    JBoss 4.0.3 SP1
    Windows 2003 SP1
    Adobe ES 8.2
    If not corrected, you'll see error like this in log file:
    Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: com.microsoft.jdbc.sqlserver.SQLServerDriver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.microsoft.jdbc.sqlserver.SQLServerDriver)
    at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(L ocalManagedConnectionFactory.java:287)

    Sorry - wrong spot. I will re-post this in ES Installation Discussion forum.

  • [svn:osmf:] 10441: Add support for strict validation of VAST documents during parsing.

    Revision: 10441
    Author:   [email protected]
    Date:     2009-09-20 16:23:43 -0700 (Sun, 20 Sep 2009)
    Log Message:
    Add support for strict validation of VAST documents during parsing.
    Modified Paths:
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/parser/VASTParser.as
        osmf/trunk/libs/VASTTest/org/openvideoplayer/vast/parser/TestVASTParser.as

    Hi, everything in the "Quick Reference" section should be commented out with ;
    You should change those settings further down in the php.ini file.
    Example:
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
    display_errors = Off
    Last edited by adrianx (2013-07-26 12:32:02)

Maybe you are looking for

  • When do we ceate custom messagae type apart for custom idocs type

    Hi all.     Can u pls let me know when do we create custom message type in ALE/IDOCS. what I know is we can create a custom message when we create custom idoc type & when we have reduced idoc type.Pls let me what are other cases in which I need to cr

  • Time machine error 6584

    Just upgraded to Mountain Lion. It had a problem and the Apple store did a wipe and install. I restored all my data and apps by ethernet from Time Capsule. I had to find and reinstall Java. Things appear to work ok except launching Time Machine gets

  • REP-0132 - could not start JVM

    We currently just successfully installed Oracle 9ias Reports Server on Windows 2000 (both the Infrastructure and the Reports) When we try to start the Report Server via the Enterprise Manager Application, it does not start. Next we try to start the r

  • Can't see movie on Apple TV, but iTunes does - why?

    I have MANY movies on iTunes, and with a couple of exceptions, am able to view them all on TV via Apple TV. The exceptions are movies that look great on my mac, but do not show up on the movie list via the Apple TV. I have deleted them and moved them

  • 10.3 - No Admin Accounts available

    I've got a problem I've never seen before in over 20 years with Apple. I've got a iMac G3 slot load installed with 10.3. All the accounts have somehow changed over to "standard" and I've no administrator accounts to open locks on system prefs. I've l