IS - XML validation error for file task.xml. (COR-10142)

Hi,
I am facing an issue while running column profile task on a text file.
Version of BODS components below:
IPS: IPS 4.1 SP2
DS: DS 4.2 SP1
IS: IS 4.2 SP1(14.2.1.220)
All the above components are installed on linux RHEL 6.5 machine(single machine).
Attached the error log file.
Appreciate the quick response.
Thanks,
Lokesh

Hi Lokesh,
Check the KBA  1931128 which may help you to resolve your issue.
Thanks,
Ramakrishna Kamurthy

Similar Messages

  • XML validation error while parsing MXI Manifest

    Hi,
    I have created an hybrid extension for Photoshop. I want to upload my extension on Adobe Exchange. during the upload process I get an error,
    "XML validation error while parsing MXI Manifest: Declarations can only occur in the doctype declaration. Line: 19 Position: 791 Last 80 unconsumed characters".
    The error description specifies that description in MXI file is not valid. Below are the contents of my MXI file.
    <macromedia-extension
               name="yyy"
               id="com.yyy"
               version="1.0.0"
               type="object"
               requires-restart="true">
              <author name="abcd" />
              <products>
              <product familyname="Photoshop" maxversion="" primary="true" version="12.0"/>  
              </products>
    <description>
              <![CDATA[
    <p><font size="14" color="black"><b>abcd</b> qwertyuioipafgjhkjljljklkjl
    <br><br>
    Open Extension via: Photoshop top menu > Window > Extensions > abcd.
    <br><br>
    Online support at: <a href="http://www.abcd.com/help.php">http://www.abcd.com/help.php</a></font></p>
    <br>]]>
    </description>
    <ui-access>
              </ui-access>
    <license-agreement>
    </license-agreement>
    <files>
                <file destination="$ExtensionSpecificEMStore/com.abcd/html/abcd.html" products="" source="zxp-support/Description/abcd.html"/>
                <file destination="$ExtensionSpecificEMStore/com.abcd/html/abcd.png" products="" source="zxp-support/Description/abcd.png"/>
                <file destination="" file-type="CSXS" products="" source="abcd.zxp"/> 
                <file destination="$automate" file-type="plugin" platform="mac" products="Photoshop" source="mac/abcd.plugin"/>
                <file destination="$automate" file-type="plugin" platform="win" products="Photoshop32" source="win32/abcd.8li"/>
                <file destination="$automate" file-type="plugin" platform="win" products="Photoshop64" source="win64/abcd.8li"/>
    </files>
    </macromedia-extension>
    Can anyone please point out why am I getting the error?
    Thanks

    Hi CarlSun,
    Thanks for the reply. I have made the changes suggested by you.
    I have few queries:
    1.  Can we use attribute "source" in the description tag?
         I have created a local html page and specified it in source attribute. but the Extension Manager CS6 did not render the local html page and displayed      the following:
         No description avaliable. Click the following link for more details.
         "http://www.abcd.html". Is it possible to display a local html page in Extension Manager CS6?
    2. Can I display an image (png) in CDATA under description tag? If yes, then can you please guide me how can I do so?
    3. As suggested in tech notes MXI file must include UTF-8 encoding as header (<?xml version="1.0" encoding="UTF-8"?>). The MXI I am using does      not have this header. Do I need to include the header?
    Thanks

  • Setup.exe fails, folder " "does not contain a valid media info file 'mediainfo.xml'"

    I'm trying to run the SQL Server R2 setup.exe, and all I get is a command window popping up briefly, then nothing.
    This actually affects all SQL Installers that I have on my machine:
    2008R2
    2012
    SSDT BI Pack for VS2012
    If I run the setup.exe from the command line, I get this:
    An error occurred during the SQL Server 2008 R2 Setup operation
    Error result: -2067529698
    Result facility code: 1220
    Result error code: 30
    For more information, review SQL Server R2 Setup Logs in your temp folder
    The contents of that log file are:
    04/04/2014 10:54:34.489 ======================================================================
    04/04/2014 10:54:34.510 Setup launched
    04/04/2014 10:54:34.541 Attempting to determine media source
    04/04/2014 10:54:34.558 Media source value not specified on command line argument.
    04/04/2014 10:54:34.574 Setup is launched from media directly so default the value to the current folder.
    04/04/2014 10:54:34.591 Media source: C:\SQL Server Installers\2008 R2\
    04/04/2014 10:54:34.608 Attempt to determine media layout based on file 'C:\SQL Server Installers\2008 R2\mediainfo.xml'.
    04/04/2014 10:54:34.627 The folder 'C:\SQL Server Installers\2008 R2\' does not contain a valid media info file 'mediainfo.xml'.
    04/04/2014 10:54:34.649 Setup closed with exit code: 0x84C4001E
    04/04/2014 10:54:34.677 ======================================================================
    I've checked 1000 times that the folder DOES contain a mediainfo.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <MediaInfo>
    <Properties>
    <Property Id="MediaLayout" Value="Full" />
    </Properties>
    </MediaInfo>
    I've seen a few suggestions elsewhere in search results, but nothing has worked so far.
    I've previously run the 2008R2 installer and the 2012 installer without problems, so I'm not sure what has changed, or how to get round it.
    I'm running on Windows 7 Enterprise SP1, 64 bit with up-to-date Windows Updates.
    Any help would be very much appreciated.

    In addition to Alberto’s suggestion:
    Validate the setup media is not corrupt.
    http://thesqldude.com/2012/01/27/sql-server-setup-how-to-validate-downloaded-imagemedia-before-installation
    Install .net framework 3.5 and 4.0. Repair them, if already installed.
    This posting is provided “AS IS” with no warranties, and confers no rights.
    If this reply answers your question, please mark it as Answered for others to find it easily.
    If this reply help you resolving the problem, please vote the post as Helpful.

  • XML validation errors in embedded OC4J jazn.xml

    hi
    If I open the jazn.xml of the embedded OC4J in JDeveloper 10.1.3.3.0 and select "Validate XML" from the context-menu on that file, I get these messages in the "XML Validation Errors - Log" :
    D:\oracle\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml
        Error(10,28): <Line 10, Column 28>: XML-24535: (Error) Attribute 'schema-major-version' not expected.
        Error(10,28): <Line 10, Column 28>: XML-24535: (Error) Attribute 'schema-minor-version' not expected.
        Error(10,28): <Line 10, Column 28>: XML-24536: (Error) Missing Attribute 'filepath'
        Error(10,28): <Line 10, Column 28>: XML-24536: (Error) Missing Attribute 'OC4J_INSTANCE_ID'Strange, because I'm not aware of any changes I've made to this file.
    Could someone (from Oracle) please confirm that this is "intended", so I can exclude it as possible cause for the "security configuration issue" that I'm having.
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    If "the content seems to be correct" then the XML schema jazn-10_0.xsd might not be what it should be.
    For the attributes "filepath" and "OC4J_INSTANCE_ID" it says they are "required", just like the validation by JDeveloper says, but they are not in the documentation.
    For the attributes "schema-major-version" and "schema-minor-version" the documentation says:
    "This attribute is not defined directly in the XSD for jazn.xml. It is according to the attributeGroup specification in the top-level OC4J XSD."
    Although there is no exact reference in that documentation, and also not in jazn-10_0.xsd, that XSD could be oc4j-10_0.xsd because it defines this:
        <xsd:attributeGroup name="oc4j-schemaVersionAttributeType">
            <xsd:annotation>
                <xsd:documentation>This type defines two different attributes which are intended to be used in the
                    root element of a schema document to define version 10.0 of the schema document.
                </xsd:documentation>
            </xsd:annotation>
            <xsd:attribute name="schema-major-version" type="xsd:integer" fixed="10"/>
            <xsd:attribute name="schema-minor-version" type="xsd:integer" default="0"/>
        </xsd:attributeGroup>I'm not sure if it is the validation by JDeveloper that went wrong here, or the XML schema jazn-10_0.xsd that is incomplete about these "schema version" attributes.
    Anyway, it seems OK to exclude it as possible cause for the "security configuration issue" that I'm having.
    regards
    Jan

  • Need help... Context validation error for tag cfscript.

    Code:
        <cffunction name="computeHash" access="public" returntype="String">
          <cfargument name="password" type="string" />
          <cfargument name="salt" type="string" />
          <cfargument name="iterations" type="numeric" required="false" default="1024" />
          <cfargument name="algorithm" type="string" required="false" default="SHA512" />
          <cfscript>
            var hashed = '';
            var i = 1;
            hashed = hash( password & salt, arguments.algorithm, 'UTF-8' );
            for (i = 1; i <= iterations; i++) {
              hashed = hash( hashed & salt, arguments.algorithm, 'UTF-8' );
            return hashed;
          </cfscript>
        </cffunction>
    Error on web app:
    Context  validation error for tag cfscript.
    The start tag must have a matching  end tag. An explicit end tag can be provided by adding </cfscript>. If the  body of the tag is empty you can use the shortcut <cfscript .../>. The CFML compiler was processing:
    a cfscript tag beginning on line 11, column 12.
    a cfscript tag beginning on line 11, column 12.
    The  error occurred in xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\salty.cfc: line  11
    9 :        <cfargument name="iterations" type="numeric" required="false" default="1024" />
    10 :        <cfargument name="algorithm" type="string" required="false" default="SHA512" />
    11 :        <cfscript>
    12 :           var hashed = '';
    13 :           var i = 1;
    I am completely lost on why it's fumbling with why it says there's no closing tag.  Help!!!!
    Thanks

    What's on lines 1-7 of that file?
    That code compiles fine for me on CF8 & CF9, so that's not where the error is.
    You're not trying to compile it on any earlier version of CF than CF8 are you?  The < and ++ operators are not valid prior to CF8.  CFMX7 might see the < as a stray angle bracket, and get confused.  I don't have CFMX7 running here to test the exact error that would produce, sorry.
    Adam

  • Order of the validation error for mandatory properties

    Hi,
    I have created mandatory Properties in KM Configuration.I have configured in such a way that the properties are shown while uploading a file.Now when I upload a file without filling the properties it shows the validation error for the properties but it is not shown in the order of the properties mentioned in the property Groups.
    Everytime the error is shown in a random order.
    Please advise me whether I am missing something in the configuration.
    Thanks in advance
    Sowjanya.

    Hi,
    is it possible, that someone inserted data with a different GC as parameter than your actual group currency is?
    otherwise: I had the same problem, but I actually don't know the reason. I changed the validation rule:
    before i had: VAL_YTD( write-offs cap. assets BS ) = VAL_YTD( write-offs PL)
    now i have: ABS( VAL_YTD( write-offs cap. assets BS ) ) = ABS( VAL_YTD( write-offs PL) )
    ABS = absolute value (no sign, only values).
    You could also do it like that: ABS( VAL_YTD( write-offs cap. assets BS  ) ) - ABS( VAL_YTD( write-offs PL) ) = 0
    PS: To have the amount 0 in a validation rule is a restricted perspective. Never forget that!
    Not only for the validation - it is always absolutely important to make sure which perspective you have choosen. Check the parameters, check the rules, the selections etc.
    BR

  • ORA-19563:  header validation failed for file

    hai all ,
    i faced problem when restore database from tape backup ,
    my current database 11.1.0.7.0 , with AIX OS
    im running RMAN to restore with set new name to change poiting to new lun.
    but when end of restore show this :
    channel c05: restore complete, elapsed time: 01:00:34
    channel c06: piece handle=PRFN_DB_bk_31518_1_831778821 tag=HOT_DB_BK_LEVEL0
    channel c06: restored backup piece 1
    channel c06: restore complete, elapsed time: 01:01:39
    Finished restore at 22-NOV-13
    released channel: c01
    released channel: c02
    released channel: c03
    released channel: c04
    released channel: c05
    released channel: c06
    released channel: c07
    released channel: c08
    released channel: c09
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of switch command at 11/22/2013 15:13:04
    ORA-19563:  header validation failed for file
    im open alert.log and see the error
    Errors in file /oracle/PROD/db/tech_st/11.1.0/admin/PROD_smjkt-prfn01/diag/rdbms/prod/PROD/trace/PROD_m000_5243492.trc:
    ORA-51106: check failed to complete due to an error.  See error below
    ORA-48251: Failed to open relation due to following error
    ORA-48122: error with opening the ADR block file [/oracle/PROD/db/tech_st/11.1.0/admin/PROD_smjkt-prfn01/diag/rdbms/prod/PROD/metadata/HM_FINDING.ams] [0]
    ORA-27041: unable to open file
    IBM AIX RISC System/6000 Error: 22: Invalid argument
    Additional information: 2
    ORA-01122: database file 30 failed verification check
    ORA-01110: data file 30: '/oradata51/PROD/data/ctxd01.dbf'
    ORA-01565: error in identifying file '/oradata51/PROD/data/ctxd01.dbf'
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    Fri Nov 22 15:11:58 2013
    Errors in file /oracle/PROD/db/tech_st/11.1.0/admin/PROD_smjkt-prfn01/diag/rdbms/prod/PROD/trace/PROD_m000_5243494.trc:
    ORA-51106: check failed to complete due to an error.  See error below
    ORA-48251: Failed to open relation due to following error
    ORA-48122: error with opening the ADR block file [/oracle/PROD/db/tech_st/11.1.0/admin/PROD_smjkt-prfn01/diag/rdbms/prod/PROD/metadata/HM_INFO.ams] [0]
    ORA-27041: unable to open file
    IBM AIX RISC System/6000 Error: 22: Invalid argument
    Additional information: 2
    ORA-01122: database file 221 failed verification check
    ORA-01110: data file 221: '/oradata51/PROD/data/a_txn_data86.dbf'
    ORA-01565: error in identifying file '/oradata51/PROD/data/a_txn_data86.dbf'
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    info
    '/oradata51/PROD/data/a_txn_data86.dbf' --> path original from production
    SET NEWNAME FOR DATAFILE 221 TO '/oracle/PROD/db/apps_st/data/a_txn_data86.dbf' --> path in Testing that do full restore
    this file already exist a_txn_data86.dbf
    someone can help me ?
    Imron

    Hi Imron,
    Ensure the file is available at the OS level, if yes then follow the below link and see if it helps you
    https://forums.oracle.com/thread/2544292
    https://forums.oracle.com/message/1237966
    https://forums.oracle.com/message/
    Thanks &
    Best Regards,

  • Validation error for tag cfloop

    Hi All,
    Complete newbie to CF here.  I've inherited (or bought) an online business which has its site written in CF.  I haven't done this sort of stuff before but do work SQL for a living and object oriented stuff plus have done a bit of html and php so CF isn't mind blowing to me (in its simple form).
    I've downloaded my site on to my computer to run a local copy that I can hack to pieces if needs be.  For some reason, I have a few problems with the site running locally.  The first error I'm getting is a Attribute validation error for tag cfloop.
    Basically, index.cfm has this bit of code in it:
    <cfinvoke component="#datasets#" method="storedProcedure" returnvariable="getFeaturedWineries_qry">
        <cfinvokeargument name="storedProcedure" value="usp_GetFeaturedWineries">
    </cfinvoke>
    Ok, easy enough.  Anyway, there's a call down the page to:
    <cfinclude template = "#REQUEST.CFMPath#includes/displayFeaturedWineries.cfm">
    Within displayFeaturedWineries.cfm is the code that calls the stored proc invoked above:
    <cfloop query="getFeaturedWineries_qry" startrow="1" endrow="2">
    Bam, that's where the error occurs.  "The value of the attribute query, which is currently getFeaturedWineries_qry, is invalid.
    What???  The stored proc exists and it only returns two records (which begs me to wonder why you would have startrow and endrow but anyway, it doesn't work with or without it).
    The other interesting thing is that this works on production, NO PROBLEM!!!  WTF?  How can it work on production but not locally.
    The only thing I'm starting to think is:
    a)  I've missed a setting somewhere in CF or
    b)  I'm running Apache as compared to IIS or
    c)  I'm running SQL 2008 and CF 9 which will no doubt be different to the production host server.
    Should B or C be causing THAT type of problem??
    Thanks,
    Matt

    I'm not sure what code apart from the above is going to show you what you could possibly need to solve this, but here goes.  The following is only snippets of the code, but they are the relavant snippets.  Other stored procs work.  The cfdump for getFeaturedWineries_qry shows 'usp_getFeaturedWineries'.  I know its there because I've been unable to run "EXEC usp_getFeaturedWineries" after copying it straight out of the code.  As previously stated, there are other stored procs which are running fine.
    datasets.cfc
        <cffunction name="storedProcedure">
            <cfargument name="storedProcedure" required="Yes" type="string">
            <cfstoredproc procedure = "#ARGUMENTS.storedProcedure#"
                          datasource = "#REQUEST.DSN_NAME#"
                          username   = "#REQUEST.DSN_USER#"
                          password   = "#REQUEST.DSN_PASS#"
                          returncode = "Yes">
                <cfprocresult name="storedProcedure" resultset="1">
            </cfstoredproc>
            <cfreturn storedProcedure>
        </cffunction>
    application.cfm
        <!--- DATA SOURCE VARIABLES --->
        <cfset DSN_NAME = "boutiqueWineriesTest">
        <cfset DSN_USER = "coldfusion">
        <cfset DSN_PASS = "coldfusion">
    index.cfm
    <cfobject component="#COMP_REF#.datasets" name="datasets">
    <cfinvoke component="#datasets#" method="storedProcedure" returnvariable="getFeaturedWineries_qry">
        <cfinvokeargument name="storedProcedure" value="usp_getFeaturedWineries">
    </cfinvoke>
    <cfinclude template = "#REQUEST.CFMPath#includes/displayFeaturedWineries.cfm">
    displayFeaturedWineries.cfm
             <cfloop query="getFeaturedWineries_qry" startrow="1" endrow="2">
    Attribute validation error for tag cfloop.
    The value of the attribute query, which is currently  getFeaturedWineries_qry, is invalid.                                                                                  The error occurred in C:\apps\iishome\includes\displayFeaturedWineries.cfm:  line 33
    Called from C:\apps\iishome\index.cfm: line 399
    Called from C:\apps\iishome\index.cfm: line 79
    Called from C:\apps\iishome\index.cfm: line 1
    31 :      <tr>
    32 :           <td width="626" colspan="3" class="productCenter_bg2">
    33 :          <cfloop query="getFeaturedWineries_qry" startrow="1" endrow="2">
    34 :              <div class="productCennews">
    35 :                  <table border="0" cellspacing="0" cellpadding="0">

  • Gardei@gardei-lab:~$ ./firefox/firefox XPCOMGlueLoad error for file /home/gardei/firefox/libxpcom.so: libxul.so: cannot open shared object file: No such file or

    Friends:
    The latest Firefox won't launch. Here's what I get...
    gardei@gardei-lab:~$ ./firefox/firefox
    XPCOMGlueLoad error for file /home/gardei/firefox/libxpcom.so:
    libxul.so: cannot open shared object file: No such file or directory
    Couldn't load XPCOM.
    Both .so files exist in ./firefox
    Thanks. -- BG

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • Attribute validation error for tag CFQUERY

    I have a CF application that's running fine on a shared host. I now have a VPS running version of CF 9. When I try to use this on the VPS, I get the following error:
    Attribute validation error for tag CFQUERY.
    The value of the attribute datasource, which is currently '', is invalid.
    The datasource is being set in application.cfc, and again works just fine in the shared environment.
    The only differences is the shared is running on Windows, and the VPS is Linux. Also, the Windows is running version 9,0,1,274733 and the Linux is 9,0,0,251028
    Any help would be greatly appreciated.

    bbholdem wrote:
    I have a CF application that's running fine on a shared host. I now have a VPS running version of CF 9. When I try to use this on the VPS, I get the following error:
    Attribute validation error for tag CFQUERY.
    The value of the attribute datasource, which is currently '', is invalid.
    The cause of the error is obvious. Somewhere in your application, the cfquery tag is used as follows, with an empty string as datasource:
    <cfquery datasource="">
    </cfquery>
    That is a mistake. The error message should tell you where that occurs.

  • Get errors of a xml validation from xsd file

    hi everyone,
    i created a xml validation from a XSD file as follow:
    public String validate(String xml) {
            String saida = "";
            InputStream xsd = XmlValidator.class.getResourceAsStream("shiporder.xsd");       
            try {
                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                docBuilderFactory.setNamespaceAware(true);
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                ByteArrayInputStream is = new ByteArrayInputStream(xml.getBytes());
                Document doc = docBuilder.parse(is);
                SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
                Source schemaFile = new StreamSource(xsd);
                Schema newSchema = (Schema) factory.newSchema(schemaFile);
                Validator validator = newSchema.newValidator();
                validator.validate(new DOMSource(doc));           
                saida = "SUCESSO";
            } catch (DOMException ex) {           
                ex.printStackTrace();
                saida =  "DOM";
            } catch (SAXException ex) {           
                saida = ex.getMessage();
            } catch (IOException ex) {           
                ex.printStackTrace();
                saida =  "IO";
            } catch (ParserConfigurationException ex) {           
                ex.printStackTrace();
                saida = "PARSER_CONFIGURATION";
            return saida;
        }this code works perfectly, but i must change one thing.
    When is found a error on a xml structure, one exception is threw, and then the method is finalized. However i need to show up all errors on one shot.
    Because right now when i run and it find a error, the method throw an exception an stop, so i have to adjust, then execute again and adjust another repeatedly until everything is right, so i have to change that.
    Anyone could help me?
    thanks in advance

    That's the rule for XML validation. As soon as the parser finds an error, it must report it and stop.
    If you are having a lot of trouble creating an XML document which conforms to a schema, perhaps you should invest in one of those XML editors which supports validation as you enter the document.

  • XML validation in sender file adapter

    Hi
    I am using FCC on the sender file adapter ....i need to make sure that one of the fields should always be integer else the sender adapter should give error
    Can i use xml validation with FCC on the sender file adapter?

    Hi Hema,
    As per understanding you need to check one or few fields value is integer or not.
    You can achieve in 2 ways :
    Case1:Using inbuilt xml validation options.
    For 7.11 and below
    1)In ESR/Message type/Export the xsd to local machine.
    2)Insert the xsd file in the below loc
    /usr/sap/<sid>/DVEBMGS00/j2ee/cluster/server0/validation/schema/
    <guid>/<namespace1>/<service_interface_name>/<namespace2>
    <sid>: System ID of the server instance.
    <guid>: The GUID of the SWCV.
    <namespace1> : The namespace within which the service interface is defined.
    <service_interface_name> : The name of the service interface.
    <namespace2>
    : The namespace of the Message Type used by the service interface. In many
    instances, namespace1 and namespace2 are the same.
    Italic path folders need to create by you.
    For 7.3 and above
    Michal's PI tips: XML validation - changes in 7.3
    Case 2 :Handling using simple UDF.
    Input-->UDF-->Output
    try {
       Integer.parseInt(input);
       return input ;
    catch(NumberFormatException e) {   
    throw new StreamTransformationException( "Input field value for xyz field "+input+"is not in integer format.Plz correct it"); 
    Regards
    Venkat

  • Xml validation error, pls help

    I try to use the following way to validate my xml file with one schema.
    // parse an XML document into a DOM tree
    DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document document = parser.parse(new File("instance.xml"));
    // create a SchemaFactory capable of understanding WXS schemas
    SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    // load a WXS schema, represented by a Schema instance
    Source schemaFile = new StreamSource(new File("mySchema.xsd"));
    Schema schema = factory.newSchema(schemaFile);
    // create a Validator instance, which can be used to validate an instance document
    Validator validator = schema.newValidator();
    // validate the DOM tree
    try {
    validator.validate(new DOMSource(document));
    } catch (SAXException e) {
    // instance document is invalid!
    got the error message like SAXException: http://www.w3.org/TR/xml-schema-1#cvc-type.3.1.1?
    i am very confused. what can be the problem?
    Thanks very much.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataset xmlns="xx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="xx yy.xsd">
    <heading xsi:type="PW_Heading" datasetId="PW_2005-08-22_18-34-58.pts" generationDate="2005-08-22T16:35:00Z" providerId="PW"/>
    <eventCommands>
    <DEFINE>
    <siEvent xsi:type="KRIMI_SiEventDefinition" eventId="KRIMI_0000177732121_SI" serviceId="KRIMI" programId="KRIMI_0000177732121"
    startTime="2005-08-23T03:52:15Z" duration="00 00:48:54.000" title="SOKO Leipzig" comment="#SG:1" triggerType="TIMED">
    </siEvent>
    </DEFINE>
    </eventCommands>
    </dataset>
    This should be output xml which can be validated.
    the schema for heading and siEvent is:
    <xs:complexType name="Heading" abstract="true">
              <xs:attribute name="generationDate" type="xs:dateTime" use="required"/>
              <xs:attribute name="datasetId" type="Token30" use="required"/>
              <xs:attribute name="providerId" type="Token10" use="required"/>
         </xs:complexType>
    <xs:complexType name="SiEventDefinition" abstract="true">
              <xs:choice>
                   <xs:element name="siStandard" type="SiStandardDefinition"/>
                   <xs:element name="siReference" type="SiReferenceDefinition"/>
                   <xs:element name="siTimeshift" type="SiTimeshiftDefinition"/>
              </xs:choice>
              <xs:attributeGroup ref="EventPropertyDefinition"/>
         </xs:complexType>
    now my output xml is:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataset >
    <heading datasetId="PW_2005-08-22_18-34-58.pts" generationDate="2005-08-22T16:35:00Z" providerId="PW"/>
    <eventCommands>
    <DEFINE>
    <siEvent eventId="KRIMI_0000177732121_SI" serviceId="KRIMI" programId="KRIMI_0000177732121"
    startTime="2005-08-23T03:52:15Z" duration="00 00:48:54.000" title="SOKO Leipzig" comment="#SG:1" triggerType="TIMED">
    </siEvent>
    </DEFINE>
    </eventCommands>
    </dataset>
    my problem is: i dont know how to generate these attributes in dataset, and how to generate the xsi:type attribute in heading and siEvent.
    Thanks in advance.

  • Suppress XML validation when opening files

    Hi,
    is there a way to (temporarely) suppress the validation? I have a large amount of DITA files created with an old FM version. For some reason, the doctype "dita" has been written into the headers. All I need to do is open each file, confirm the validation error message, and save the file again. FM then automatically writes the correct doctype. However clicking through all these error messages would be very time consuming.
    This is FM11 with FMx 1.1.
    Robert

    Hi scott, yes you can see an example of the first lines below. It was not a problem under FM7.2 (with DITA application pack) and I never payed attention to this until we updated to FM11. A script would be the fastest solution I suppose, as there are a few thousand files to fix.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd" [
    <!-- Begin Document Specific Declarations -->
    <!-- End Document Specific Declarations -->
    ]>
    <concept id = "id081NF500U30" status = "changed" xml:lang = "de-de"
    xmlns:ditaarch = "http://dita.oasis-open.org/architecture/2005/">
    <title>title</title>

  • XML Validation error

    Hi,
    Version : 10.1.3.4
    Scenario : Extracting data from Oracle apps using DBAdapter and insert the same to a 3rd party application
    I am tring to use XMLtype.create function in a stored procedure to get the XML.The out parameter for the procedure is XMLtype. I tried to Call this PL/SQL procedure from the BPEL and getting the XML.Then i generated a XSD from this XML using third party tool(stylus) and tried to use it for parsing the XML in BPEL. But i am not able to Manipulate XML data as it is giving the below error.
    In this scenario i tried to Use Assign activity to copy the value from /ns3:PurchaseOrderRequest/ns3:OrderHeader/ns3:SEGMENT1 to string variable.But i am not able to do that, is there any solution for it?
    Error:
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result.
    xpath variable/expression expression "/ns3:PurchaseOrderRequest/ns3:OrderHeader/ns3:SEGMENT1" is empty at line 107, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:PurchaseOrderRequest/ns3:OrderHeader/ns3:SEGMENT1" is not empty.
    Possible reasons behind this problems are: some xml elements/attributes are optional or the xml data is invalid according to XML Schema.
    To verify whether XML data received by a process is valid, user can turn on validateXML switch at the domain administration page.
    </summary>
    </part></selectionFailure>
    The XML message i am getting From PL/SQL procedure in BPEL is
    <messages><Invoke_1_ss_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters"><InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XYZ_ASC_PKG/POCLOBOUT/">
    <ORDERNUM>4437</ORDERNUM>
    </InputParameters>
    </part></Invoke_1_ss_InputVariable><Invoke_1_ss_OutputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters"><OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XYZ_ASC_PKG/POCLOBOUT/">
    <RESULT>
    <PurchaseOrderRequest xmlns="">
    <OrderHeader num="1">
    <PO_HEADER_ID>32906</PO_HEADER_ID>
    <SEGMENT1>4437</SEGMENT1>
    <AGENT_ID>25</AGENT_ID>
    <LAST_UPDATE_DATE>11/28/2008 0:20:35</LAST_UPDATE_DATE>
    <TYPE_LOOKUP_CODE>STANDARD</TYPE_LOOKUP_CODE>
    <TERMS_ID>10002</TERMS_ID>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <RATE_DATE>11/28/2008 0:0:0</RATE_DATE>
    <REVISION_NUM>0</REVISION_NUM>
    <CONFIRMING_ORDER_FLAG>N</CONFIRMING_ORDER_FLAG>
    <ACCEPTANCE_REQUIRED_FLAG>N</ACCEPTANCE_REQUIRED_FLAG>
    <FIRM_STATUS_LOOKUP_CODE>N</FIRM_STATUS_LOOKUP_CODE>
    <FROZEN_FLAG>N</FROZEN_FLAG>
    <ORG_ID>204</ORG_ID>
    <CURRENCY_CODE>USD</CURRENCY_CODE>
    <CREATION_DATE>11/28/2008 0:17:50</CREATION_DATE>
    <LANG>en-US</LANG>
    <LINE>
    <LINE_ROW num="1">
    <PO_LINE_ID>38176</PO_LINE_ID>
    <LINE_NUM>2</LINE_NUM>
    <LINE_TYPE_ID>1</LINE_TYPE_ID>
    <ITEM_DESCRIPTION>TEST1</ITEM_DESCRIPTION>
    <UNIT_MEAS_LOOKUP_CODE>Each</UNIT_MEAS_LOOKUP_CODE>
    <ISO_UOM>Ea</ISO_UOM>
    <UNIT_PRICE>200</UNIT_PRICE>
    <QUANTITY>200</QUANTITY>
    <ORG_ID>204</ORG_ID>
    <COMMODITYCODE>MISC:MISC</COMMODITYCODE>
    <DESCRIPTION>Miscellaneous</DESCRIPTION>
    <LAST_UPDATE_DATE>2/19/1997 0:0:0</LAST_UPDATE_DATE>
    <CATEGORY_ID>1</CATEGORY_ID>
    <LINELOCATION>
    <LINELOCATION_ROW num="1">
    <LINE_LOCATION_ID>72552</LINE_LOCATION_ID>
    <QUANTITY>200</QUANTITY>
    <QUANTITY_RECEIVED>0</QUANTITY_RECEIVED>
    <QUANTITY_ACCEPTED>0</QUANTITY_ACCEPTED>
    <QUANTITY_REJECTED>0</QUANTITY_REJECTED>
    <QUANTITY_BILLED>0</QUANTITY_BILLED>
    <SHIP_TO_ORGANIZATION_ID>1884</SHIP_TO_ORGANIZATION_ID>
    <SHIPMENT_NUM>1</SHIPMENT_NUM>
    <CLOSED_CODE>OPEN</CLOSED_CODE>
    <SHIPTOLOCATIONID>2402</SHIPTOLOCATIONID>
    <SHIPTOLOCATIONCODE>W1 - Cherry Hill</SHIPTOLOCATIONCODE>
    <SHIPTOLOCATIONUSE>HR</SHIPTOLOCATIONUSE>
    <SHIPTOTELEPHONENUMBER1>0</SHIPTOTELEPHONENUMBER1>
    <SHIPTODESCRIPTION>W1 - Cherry Hill Distribution</SHIPTODESCRIPTION>
    <SHIPTOADDRESSLINE1>8756 Benjamin Franklin Boulevard</SHIPTOADDRESSLINE1>
    <SHIPTOTERRITORY>United States</SHIPTOTERRITORY>
    <SHIPTOTOWNORCITY>Cherry Hill</SHIPTOTOWNORCITY>
    <SHIPTOCOUNTRY>US</SHIPTOCOUNTRY>
    <SHIPTOPOSTALCODE>08003</SHIPTOPOSTALCODE>
    <SHIPTOREGION1>Camden</SHIPTOREGION1>
    <SHIPTOREGION2>NJ</SHIPTOREGION2>
    <DISTRIBUTIONS>
    <DISTRIBUTIONS_ROW num="1">
    <PO_DISTRIBUTION_ID>74376</PO_DISTRIBUTION_ID>
    <CODE_COMBINATION_ID>17347</CODE_COMBINATION_ID>
    <QUANTITY_ORDERED>200</QUANTITY_ORDERED>
    <QUANTITY_DELIVERED>0</QUANTITY_DELIVERED>
    <DESTINATION_ORGANIZATION_ID>1884</DESTINATION_ORGANIZATION_ID>
    </DISTRIBUTIONS_ROW>
    </DISTRIBUTIONS>
    </LINELOCATION_ROW>
    </LINELOCATION>
    </LINE_ROW>
    <LINE_ROW num="2">
    <PO_LINE_ID>38175</PO_LINE_ID>
    <LINE_NUM>1</LINE_NUM>
    <LINE_TYPE_ID>1</LINE_TYPE_ID>
    <ITEM_DESCRIPTION>test</ITEM_DESCRIPTION>
    <UNIT_MEAS_LOOKUP_CODE>EA</UNIT_MEAS_LOOKUP_CODE>
    <ISO_UOM>EA</ISO_UOM>
    <UNIT_PRICE>100</UNIT_PRICE>
    <QUANTITY>100</QUANTITY>
    <ORG_ID>204</ORG_ID>
    <COMMODITYCODE>MISC:MISC</COMMODITYCODE>
    <DESCRIPTION>Miscellaneous</DESCRIPTION>
    <LAST_UPDATE_DATE>2/19/1997 0:0:0</LAST_UPDATE_DATE>
    <CATEGORY_ID>1</CATEGORY_ID>
    <LINELOCATION>
    <LINELOCATION_ROW num="1">
    <LINE_LOCATION_ID>72551</LINE_LOCATION_ID>
    <QUANTITY>100</QUANTITY>
    <QUANTITY_RECEIVED>0</QUANTITY_RECEIVED>
    <QUANTITY_ACCEPTED>0</QUANTITY_ACCEPTED>
    <QUANTITY_REJECTED>0</QUANTITY_REJECTED>
    <QUANTITY_BILLED>0</QUANTITY_BILLED>
    <SHIP_TO_ORGANIZATION_ID>1884</SHIP_TO_ORGANIZATION_ID>
    <SHIPMENT_NUM>1</SHIPMENT_NUM>
    <CLOSED_CODE>OPEN</CLOSED_CODE>
    <SHIPTOLOCATIONID>2402</SHIPTOLOCATIONID>
    <SHIPTOLOCATIONCODE>W1 - Cherry Hill</SHIPTOLOCATIONCODE>
    <SHIPTOLOCATIONUSE>HR</SHIPTOLOCATIONUSE>
    <SHIPTOTELEPHONENUMBER1>0</SHIPTOTELEPHONENUMBER1>
    <SHIPTODESCRIPTION>W1 - Cherry Hill Distribution</SHIPTODESCRIPTION>
    <SHIPTOADDRESSLINE1>8756 Benjamin Franklin Boulevard</SHIPTOADDRESSLINE1>
    <SHIPTOTERRITORY>United States</SHIPTOTERRITORY>
    <SHIPTOTOWNORCITY>Cherry Hill</SHIPTOTOWNORCITY>
    <SHIPTOCOUNTRY>US</SHIPTOCOUNTRY>
    <SHIPTOPOSTALCODE>08003</SHIPTOPOSTALCODE>
    <SHIPTOREGION1>Camden</SHIPTOREGION1>
    <SHIPTOREGION2>NJ</SHIPTOREGION2>
    <DISTRIBUTIONS>
    <DISTRIBUTIONS_ROW num="1">
    <PO_DISTRIBUTION_ID>74375</PO_DISTRIBUTION_ID>
    <CODE_COMBINATION_ID>17347</CODE_COMBINATION_ID>
    <QUANTITY_ORDERED>100</QUANTITY_ORDERED>
    <QUANTITY_DELIVERED>0</QUANTITY_DELIVERED>
    <DESTINATION_ORGANIZATION_ID>1884</DESTINATION_ORGANIZATION_ID>
    </DISTRIBUTIONS_ROW>
    </DISTRIBUTIONS>
    </LINELOCATION_ROW>
    </LINELOCATION>
    </LINE_ROW>
    </LINE>
    <VENDOR_ID>1595</VENDOR_ID>
    <VENDOR_NAME>Agile Electronic Supplies</VENDOR_NAME>
    <PAYMENT_METHOD_LOOKUP_CODE>CHECK</PAYMENT_METHOD_LOOKUP_CODE>
    <VENDOR_SITE_CODE>SANTA ROSA-USE</VENDOR_SITE_CODE>
    <ADDRESS_LINE1>22800 Corby Avenue</ADDRESS_LINE1>
    <BILL_TO_LOCATION_ID>2402</BILL_TO_LOCATION_ID>
    <VENDORTERRITORY>United States</VENDORTERRITORY>
    <VENDORCONTACT>
    <VENDORCONTACT_ROW num="1">
    <VENDOR_CONTACT_ID>2485</VENDOR_CONTACT_ID>
    <FIRST_NAME>Li</FIRST_NAME>
    <LAST_NAME>Wang</LAST_NAME>
    <AREA_CODE>707</AREA_CODE>
    <PHONE>638-7814</PHONE>
    </VENDORCONTACT_ROW>
    </VENDORCONTACT>
    <SHIPTOLOCATIONID>2402</SHIPTOLOCATIONID>
    <SHIPTOLOCATIONCODE>W1 - Cherry Hill</SHIPTOLOCATIONCODE>
    <SHIPTOLOCATIONUSE>HR</SHIPTOLOCATIONUSE>
    <SHIPTOTELEPHONENUMBER1>0</SHIPTOTELEPHONENUMBER1>
    <SHIPTODESCRIPTION>W1 - Cherry Hill Distribution</SHIPTODESCRIPTION>
    <SHIPTOADDRESSLINE1>8756 Benjamin Franklin Boulevard</SHIPTOADDRESSLINE1>
    <SHIPTOTERRITORY>United States</SHIPTOTERRITORY>
    <SHIPTOTOWNORCITY>Cherry Hill</SHIPTOTOWNORCITY>
    <SHIPTOCOUNTRY>US</SHIPTOCOUNTRY>
    <SHIPTOPOSTALCODE>08003</SHIPTOPOSTALCODE>
    <SHIPTOREGION1>Camden</SHIPTOREGION1>
    <SHIPTOREGION2>NJ</SHIPTOREGION2>
    <BILLTOLOCATIONID>2402</BILLTOLOCATIONID>
    <BILLTOLOCATIONCODE>W1 - Cherry Hill</BILLTOLOCATIONCODE>
    <BILLTOLOCATIONUSE>HR</BILLTOLOCATIONUSE>
    <BILLTOTELEPHONENUMBER1>0</BILLTOTELEPHONENUMBER1>
    <BILLTODESCRIPTION>W1 - Cherry Hill Distribution</BILLTODESCRIPTION>
    <BILLTOADDRESSLINE1>8756 Benjamin Franklin Boulevard</BILLTOADDRESSLINE1>
    <BILLTOTERRITORY>United States</BILLTOTERRITORY>
    <BILLTOTOWNORCITY>Cherry Hill</BILLTOTOWNORCITY>
    <BILLTOCOUNTRY>US</BILLTOCOUNTRY>
    <BILLTOPOSTALCODE>08003</BILLTOPOSTALCODE>
    <BILLTOREGION1>Camden</BILLTOREGION1>
    <BILLTOREGION2>NJ</BILLTOREGION2>
    </OrderHeader>
    </PurchaseOrderRequest>
    </RESULT>
    </OutputParameters>
    </part></Invoke_1_ss_OutputVariable></messages>
    Thanks
    Sen

    Forwarded to developers.

Maybe you are looking for

  • Error while installing KMC SP09

    Hey,      I am getting the following error while installing KMC on Web AS 6.40 EP 6.0 SP09.      Other colleagues of mine have been able to install the same successfully from the same installatin DVD. Can someone help me with a work around? Thanks. R

  • ITunes wont open, won't uninstall

    I need to update my iPhone but iTunes will not open. I have tried re-installing it, uninstalling it, downloading again. When I click on iTunes icon, it says it's not installed. (even though it is in all my program lists) I get this message when I try

  • Default View Size In My Own Template

    I have created a template of my own called "My Template" and have set it to open automatically as a new document in preferences. Everything works great except it opens at 100% view size I want it to open at 150% view size, I've tried saving it as a t

  • Creating a surface plot in Illustrator

    Good morning, new to this forum. I have a number of tools for plotting XYZ surface data (Z is the elevation and drives colour), however I'd like to be able to overlay a surface graph on other things, like a visual photo of the area. Illustrator has a

  • How do I retrieve my imessages once deleted

    I have deleted a block of iMessages off my phone but want to retrieve them ? Is this possible ?