Invalid DateFormat for dbms_xmlgen.getxml

Hello
I use the dbms_xmlgen.getxml to generate the XML from the table.

I have problems with the type of data type date.

For date fields type XML is generated in format DD-MON-AA, but it does not record the passage of time.

What should I do?

Hello

In the absence of an explicit conversion, NLS session parameters are used.

Thus, two solutions:

(1) change the setting NLS_DATE_FORMAT for the session:

ALTER SESSION SET nls_date_format = "DD/MM/YYYY HH24:MI:SS";

(2) use an explicit cast:

SELECT to_char(your_date_col, 'DD/MM/YYYY HH24:MI:SS'), ...
FROM ...

Tags: Database

Similar Questions

  • Problems with DBMS_XMLGEN.getXML add features

    Hello

    I use DBMS_XMLGEN on 11 GR 2.

    The documentation Pages of PL/SQL and Types Reference 11 GR 2 (July 2013) reads as follows:

    GETXML functions

    This function returns the XML document. The function is overloaded.

    Syntax

    Gets the XML document from the maximum number of rows specified. It

    adds the XML in the CLOB passed Use this version of GETXML

    To avoid extra CLOB copies and reuse the same CLOB for subsequent functions

    calls. Due to the CLOB reuse, this GETXML Functionscall is potentially more

    effective:

    DBMS_XMLGEN. GETXML)

    CTX IN ctxHandle,

    tmpclob IN OUT NCOPY CLOB,

    dtdOrSchema in numbers: = NONE)

    RETURN A BOOLEAN VALUE;

    11 GR 2 Guide (February 2014) developer Oracle DB XML stipulates the following:
    Parameters

    getXML (ctx IN ctxHandle,

    clobval IN OUT NCOPY clob,

    dtdOrSchema in numbers: = NONE);

    CTX -The context handle from call

    newContext.

    clobval (IN/OUT) - the CLOB to which the XML document is

    being attached,

    dtdOrSchema -If you need to generate the DTD or

    Schema. This parameter is NOT supported.

    Use this version of the function getXML, in order to avoid any supplement

    CLOB copies and if you want to reuse the same CLOB for

    subsequent calls. This getXML call is more effective than the other

    flavor, even if it means that you create the LOB reference.

    When you generate the XML, the number of lines specified by the

    setSkipRows call are ignored, then the maximum number of

    ranks as specified by the setMaxRows call (or all if

    not specified) is read and converted into XML. Use of the

    getNumRowsProce

    I'm bringing 2 parts of XML document.  I use 2 hierarchical queries.  One to generate hierarchical header of a table and another information to generate information of hierarchical detail to a separate table. My code is generally as follows:

    DECLARE

    hdrctx DBMS_XMLGEN.ctxHandle;

    detailctx DBMS_XMLGEN.ctxHandle;

    hdrdoc CLOB.

    BOOLEAN success;

    hdrqry VARCHAR2 (2000): = ' SELECT LEVEL, XMLELEMENT (EVALNAME HTAGNAME, HTAGVAL) OF HDRTABLE

    CONNECT HSUBSEQ = PRIOR HGRPSEQ';

    --

    detailqry VARCHAR2 (2000): = ' SELECT LEVEL, XMLELEMENT (EVALNAME DTAGNAME, DTAGVAL) OF DETAILTABLE

    CONNECT DSUBSEQ = PRIOR DGRPSEQ';

    BEGIN

    hdrctx: = DBMS_XMLGEN.newContextFromHierarchy (hdrqry);

    detailctx: = DBMS_XMLGEN.newContextFromHierarchy (detailqry);

    DBMS_LOB.CREATETEMPORARY (hdrdoc, true);

    DBMS_XMLGEN. GetXml (hdrctx, hdrdoc);

    -dbms_output.put_line (hdrdoc);

    DBMS_XMLGEN. GetXml (detailctx, hdrdoc);

    DBMS_XMLGEN.closeContext (hdrctx);

    DBMS_XMLGEN.closeContext (detailctx);

    dbms_output.put_line (hdrdoc);

    DBMS_LOB. FREETEMPORARY (hdrdoc);

    END;

    I also tried the next iteration:

    BEGIN

    hdrctx: = DBMS_XMLGEN.newContextFromHierarchy (hdrqry);

    detailctx: = DBMS_XMLGEN.newContextFromHierarchy (detailqry);

    DBMS_LOB.CREATETEMPORARY (hdrdoc, true);

    hdrdoc: = DBMS_XMLGEN.getXML (hdrctx);

    -dbms_output.put_line (hdrdoc);

    DBMS_XMLGEN. GetXml (detailctx, hdrdoc);

    DBMS_XMLGEN.closeContext (hdrctx);

    DBMS_XMLGEN.closeContext (detailctx);

    dbms_output.put_line (hdrdoc);

    DBMS_LOB. FREETEMPORARY (hdrdoc);

    END;

    The two sources of documentation indicates that version 3 of overload of getXML parameter adds the CLOB parameter that is passed and yet I am not able to get the details to add to the header.  If I Uncomment the first put_line I get a document of xml output containing the header as expected information.  However, the second put_line outputs of an xml document that contains only the detail information and none of the header information.  It is not adding as stated in the documentation, but substitute instead.  Any ideas what is happening here and how I can get the feature of adding such as specified in the documentation?

    An additional but trivial problem is the difference in the documentation.  Documentation packages and types indicates that 3 parameter getXML overload returns a BOOLEAN value.  DB XML Dev Guide does not indicate this.  When I use this, the call works as a process and not a function, but I'm failed in the 3rd parameter, which must by default to NONE.  I want to just make sure that using the 2 explicit and implicit parameters 1 is not ending up with me call the wrong version.

    Thanks in advance for any help you can give me on this point,

    Paul

    Because that the additional XML prologue is a specific, defined in section it is easy to remove.

    The best way to get something is to not generate it.

    This is the meeting of the 2 segments arbitrarily dimensions and structured it's much more embarrassing for me.

    What you mean?

    I'll look into the possibility of restructuring in those non-hierarchical hierarchical queries as a work-around.

    Don't bother it.

    Simply add two structures manually instead of using a 'function' who obviously don't get you any advantage.

    for example

    DECLARE

    hdrctx DBMS_XMLGEN.ctxHandle;

    detailctx DBMS_XMLGEN.ctxHandle;

    doc CLOB.

    hdrqry VARCHAR2 (2000): = ' SELECT LEVEL, XMLELEMENT ("emp", xmlattributes (empno as "id")) FROM scott.emp

    CONNECT BY prior empno = mgr

    Start with mgr is null';

    detailqry VARCHAR2 (2000): = ' SELECT LEVEL, XMLELEMENT ("emp2", xmlattributes (empno as "id")) FROM scott.emp

    CONNECT BY prior empno = mgr

    Start with mgr is null';

    BEGIN

    hdrctx: = dbms_xmlgen.newContextFromHierarchy (hdrqry);

    detailctx: = dbms_xmlgen.newContextFromHierarchy (detailqry);

    DBMS_LOB.CREATETEMPORARY (doc, true);

    Select xmlserialize (document

    XmlElement ("root"

    dbms_xmlgen.getxmltype (hdrctx)

    dbms_xmlgen.getxmltype (detailctx)

    )

    as clob dash

    )

    in the doc

    Double;

    dbms_xmlgen.closeContext (hdrctx);

    dbms_xmlgen.closeContext (detailctx);

    dbms_output.put_line (doc);

    DBMS_LOB.freeTemporary (doc);

    END;

    /

    output:

    
      
        
          
            
          
        
        
          
          
          
          
          
        
        
          
        
      
      
        
          
            
          
        
        
          
          
          
          
          
        
        
          
        
      
    
    
  • Change the default output of dbms_xmlgen.getxml

    10g 10.2.0.3

    installation program:
    create table table_x (column1 varchar2(10), column2 number) 
    
    insert into table_x values('row1',1);
    
    insert into table_x values('row2',2);
    
    commit;
    Select using getxml:
    select dbms_xmlgen.getxml('select column1, column2 from table_x') from dual;
    
    gives:
    
    <?xml version="1.0"?>
    <ROWSET>
     <ROW>
      <COLUMN1>row1</COLUMN1>
      <COLUMN2>1</COLUMN2>
     </ROW>
     <ROW>
      <COLUMN1>row2</COLUMN1>
      <COLUMN2>2</COLUMN2>
     </ROW>
    </ROWSET>
    How to get:
    <?xml version="1.0"?>
    <ROWSET>
     <ROW>
      <COL_DTLS>
        <COL_VALUE>row1</COL_VALUE>
      </COL_DTLS>
      <COL_DTLS>
        <COL_VALUE>1</COL_VALUE>
      </COL_DTLS>
     </ROW>
     <ROW>
      <COL_DTLS>
        <COL_VALUE>row2</COL_VALUE>
      </COL_DTLS>
      <COL_DTLS>
        <COL_VALUE>2</COL_VALUE>
      </COL_DTLS>
     </ROW>
    </ROWSET>
    In summary.

    1. how to 'inject' the COL_DTLS tag for each piece of old LINE.
    2. how to change each element tag name line to 'COL_VALUE '.

    Note that the < Column1 > tag could change your name to any other tag, I have to be able to handle any valid SQL that generates SQL column names and number of items will change

    DBMS_XMLGEN can control only the names of ROWSET and ROW tags.
    So, if your only entry is a string SQL, then you must postprocess the XML generated, and XSLT can be useful here:

    SQL> select xmltransform(
      2    dbms_xmlgen.getxmltype('select column1, column2 from table_x')
      3  , xmltype(
      4  '
      5    
      6    
      7      
      8        
      9      
     10    
     11    
     12      
     13    
     14  '
     15    )
     16  ).extract('/*')
     17  from dual
     18  ;
    
    XMLTRANSFORM(DBMS_XMLGEN.GETXM
    --------------------------------------------------------------------------------
    
      
        
          row1
        
        
          1
        
      
      
        
          row2
        
        
          2
        
      
    
     
    

    Otherwise, the implementation of PL/SQL:

    DECLARE
    
      ctx   dbms_xmlgen.ctxHandle;
      doc   clob;
    
      xsl   xmltype := xmltype('
      
      
        
          
        
      
      
        
      
    ');
    
      qry   varchar2(2000) := 'select column1, column2 from table_x';
    
    BEGIN
    
      ctx := dbms_xmlgen.newContext(qry);
      dbms_xmlgen.setXSLT(ctx, xsl);
      doc := dbms_xmlgen.getXML(ctx);
      dbms_xmlgen.closeContext(ctx);
    
      dbms_output.put_line(doc);
    
    END;
    /
    
  • Getting the error "the device reported unexpected or invalid data for a command. (oxC0AA02FF) when you try to create the system repair disc

    original title: error 0xC0AA02FF

    I try to use a "USB" "cruzer" to create a disc repair system, but when I click on this drive to create it I get the following error message:

    "The device reported unexpected or invalid data for a command.  (oxC0AA02FF)

    Hello

    What method did you follow to create the system repair disc?

    I suggest you to create the system with different USB repair disc and check if it helps.

    Means all try the methods and check them off below if it helps.

    Method 1:

    Try to put the computer in a clean boot state, and then check if it helps.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    I also suggest you to perform check disk (chkdsk) on the computer and see if it helps.

    http://Windows.Microsoft.com/en-us/Windows7/check-a-drive-for-errors

    Note: You may lose a small amount of data while performing the check disk.

    I also inform you that the data on the USB key will be lost. You should take a backup.

    You can also check with the reference article below:

    http://Windows.Microsoft.com/en-us/Windows7/create-a-system-repair-disc

  • Error downloading: digest of invalid signature for main manifest file assigns System.exit unauthorized calls!

    Hello fellow sufferers!

    I am trying to download my first application at BB appworld. While trying to download the file * .bar, I get this error:

    Digest of invalid signature for main manifest file assigns System.exit unauthorized calls!

    What does this errormessage?

    It's my MANIFESTO. MF file:

    Archive-manifest-Version: 1.1
    Archive-created-by: BlackBerry Tablet OS Elf BAR Packager 1.3.1

    Package-Type: application
    The author of the package: -.
    Package name: de.helex.clipmanlite
    Package version: 1.0.2.0
    Package-Architecture: armle-v7
    Package-author-certificate hash: _QCY8j3bSpt-67mhJLED-4xZooXxA7vZBMu2MbHI97SYlh5aoRxaHi44Ie-WMfh9-AGPG2YnwlW7X-AJ-A7xPQ
    Package-author-Id: gYAAgEPQ7F7MvQXnpyTXcW_b9KQ
    Package-Id: gYABgFYDI7fyWoGVx88_tVwB_Ic
    Package-Version-Id: gYACgHvOOTEXtanI-HRmZlA82u8

    Application name: ClipManLite
    Application Description: Clipboard Manager
    Application version: 1.0.2.0
    Request-requires-system: Tablet OS/1.0.7.0
    ID of the application: gYADgFZI5L0DEfspLgVvaOJ8kK0
    Application ID-Version: gYAEgIravTIRSld3gfNygimA3qI

    Name of the entry Point: clipmanlite
    Entry point: QML_IMPORT_PATH = app/native/import QT_PLUGIN_PATH = native/app/plugins LD_LIBRARY_PATH = lib/native-app app/native/clipmanlite - blackberry - platformpluginpath ./app/native/lib/platforms platform
    Entry-Point-Type: Qnx/Elf
    Entry-Point-icon: native/icon.png
    Entry-Point-Splash-Screen: native/splashscreen.png
    Entry-Point-focus: auto
    Entry-Point-System-stocks: run_native

    Archive-asset-name: native/clipmanlite
    Archive-asset-SHA-512-Digest: EgIFzXisCdbgWHASq7sSPYjSDWRzzl77_hw-TYnopqUjV9JDbRORwzCruReZOG2iq3SQv-Yi50NcD7XPHqz_Jw
    Archive-active-Type: Qnx/Elf

    Archive-asset-name: native/icon.png
    Archive-asset-SHA-512-Digest: MFqIlfKgqTrhI3yZkGZyv0l1YUubJblUMc6mhcZuhJfktqX5x-NwfWL7m-McGoKUMjgCTbFBSW1e3voCcZoBGg

    Archive-asset-name: native/splashscreen.png
    Archive-asset-SHA-512-Digest: CNzXgezPb8oKHCJ_4Zqk2_Fb1D6tkMVGEn3mhPQFRD7REdRG0ZnELLdu0gkM1pVvyObc0bH2ouv84_QwJ7kuLg

    Archive-asset-name: native/lib/libQtCore.so.4
    Archive-asset-SHA-512-Digest: 9gnZ149YG3kPs8ZFbHoZ6kFrL5dj4yW40urXd-uZPDrif0zYMzI29TUsp794U4GBiQUXaKKlbZOWUqIZlEHI9A

    Archive-asset-name: native/lib/libQtGui.so.4
    Archive-asset-SHA-512-Digest: EgYpcFf7xItFiqQ_PDm8FFVFu5vdbIrg4-h2d3sB-3FfPuAlnZasR_UQ45yNxzZoIwowtdaNVstIvVZXd7j1AA

    Archive-asset-name: native/lib/libQtOpenGL.so.4
    Archive-asset-SHA-512-Digest: is9HkVzh6mFpVs0N7LkYCH1Aps3pt-Q20XHP37jLnLPnoME4kl3hl9sCkCU1XCm-PchfoX51GxjMS9wBkSuMgA

    Archive-asset-name: native/lib/libQtNetwork.so.4
    Archive-asset-SHA-512-Digest: pP6tPwXFGmFQnYTuHn80aFV7xh8pG4y6wOWIIvGGlp4UXl570Gq5W3lbOuCGtCQKyPwPLc7bVOPuK3Ur8hf6SA

    Archive-asset-name: native/lib/libQtDeclarative.so.4
    Archive-asset-SHA-512-Digest: W2wS_9_9Cqqqio2w6251fhFnxnQm4ZY2COFm5xQQVCQwcMCvly2KmGxVruZO2yc_WN65MGeEOvH4cAAt1rOznQ

    Archive-asset-name: native/lib/libQtSql.so.4
    Archive-asset-SHA-512-Digest: 7H8cJrn5yhG3p4K3G4oYO8XWr_D_AZcLD5T9Zfn6mc8lUiyJ4o6mXouXmFC9imoMeUmq4KsTVM2AdhZStXA7gQ

    Archive-asset-name: native/lib/libQtSvg.so.4
    Archive-asset-SHA-512-Digest: dJk9FYrRJGqPeaEG17LWTKC_ogV6Few2BzK4t-WlcXUg0MJxinKp5jigsCHzFm6SJiFJLHDj3jRS16bTV12qgQ

    Archive-asset-name: native/lib/libQtScript.so.4
    Archive-asset-SHA-512-Digest: 809rAuYFWIOxeJuNJcL63URoMKXz6NKrmKOfZZWDjPUVqTJkxL7tBr_joHZR-EVY1mSJ8wBbh64iB6YdbqTmUg

    Archive-asset-name: native/lib/libQtXmlPatterns.so.4
    Archive-asset-SHA-512-Digest: zVw6F43U2TKa3dbYosygRliRlhdNisb-sdBmzh6AgTyh9GlVCkLLBie781GpQLA-uOyKpDOoT5B6N8h4ulaCBw

    Archive-asset-name: native/lib/platforms/libblackberry.so
    Archive-asset-SHA-512-Digest: uEdFgiXdWMo3MV5szE5vn2EcVXxubMZl4e71PT4z614ONV2ZqcFKzf6CFGzV9mwQGlWKm5Jrra71I2fzASnurw

    Archive-asset-name: native/blackberry - tablet.xml
    Archive-asset-SHA-512-Digest: mzIshm0x0oBMW7T-SlYg5ywvgFSeeHSyx53kkvzaf - WQWDtkbxqqXDldjCQrvYv631_2Q6OCAiYOmZRoslsYg

    Any ideas what could cause this error?

    First I thought maybe it's because the same mistake: what to do if your Package ID was rejected by BlackBerry App World

    But the creation of a new element of product does not help with this problem.

    It is a native application of qml Qt. It does not store the files, need to no write access and uses only simple, free of components created 1.0 QtQuick with no additives. So, it should be the best portable application out of my small collection.

    Unfortunately I have no real device here since I, like many of you, to present one of my tablet at BB App World Applications, first to get a.

    Google was not my friend on this topic, so I hope someone has this kind of error message and could tell me what could bring it. Any kind of advice are welcome.

    Best regards

    HELEx (Ambassador of Qt)

    FYI, a new simpler command allows to sign the 1 step:

    BlackBerry-sign - storepass .bar

    P12 both RDK of passwords must be the same, but this measure will apply to both the two signatures. It should have the same results as the command that you run.

    Kind regards

  • Invalid key for the specified state

    Re-install the lightscribe software: connect to screen (thin name / business very well / product key appears in the entrance to the screen.)  When I press on enter = error message - INVALID KEY for SPECIFIC STATE?    FROM WHAT I UNDERSTAND, IT MIGHT BE A STACK OVERFLOW?  How can I fix it?

    GH

    You should contact the developer (or computer mfr) lightscribe software.  We have no knowledge of their products.

  • Drive error 'invalid' value for registry when opening PDF files.

    Original title: Hi,.

    I use windows 8 pro.

    When I try to open the PDF files.

    Drive does not work. That is, the invalid value for registry.

    Any suggestions?

    From the desk of
    Press the Windows key + R
    Type WSReset.exe and press OK

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    Method 3:


    You can try to run Apps Troubleshooter

    Download and run the troubleshooter modern UI App and check.

    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    Please use the following links as reference:

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

  • ORA-00119: invalid specification for the system LOCAL_LISTENER parameter

    I cloned database of MRC. (test for role transitions) and set up DR.

    I tried to set up with no default port.

    When I'm bouncing of the db, (stop and start), cannot connect to the db.

    SQL > startup nomount;

    ORA-00119: invalid specification for the system LOCAL_LISTENER parameter

    ORA-00132: error syntax or network name not resolved "LISTENER_STBYCRMS."

    > > tnsnames.ora

    LISTENER_STBYCRMS

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT= 1898))

    STBY_CRMSDB =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1898))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = stbycrms)

    (UR = A)

    )

    )

    LISTENER_CRMS =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1698))

    CRMSDB =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1698))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = GCD)

    (UR = A)

    )

    )

    ~

    > > listener.ora

    LISTENER11G =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1898))

    )

    SID_LIST_LISTENER11G =

    (SID_LIST =

    (SID_DESC =

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = stbycrms)

    )

    )

    ADR_BASE_LISTENER11G = / u01/app/oracle

    * I have an entry to the file for local_listener pfile.

    * .db_name = "CRM".

    db_unique_name = stbycrms

    LOCAL_LISTENER = "LISTENER_STBYCRMS."

    Thank you

    Hello

    LISTENER_STBYCRMS (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT= 1898))

    Is the above entry is correct according to the syntax?

    where give you "="?

    LISTENER_STBYCRMS = (Description = (Address = (Protocol = TCP (port = 1898))(Host=Neptune)))

    or

    LISTENER_STBYCRMS =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXx)(PORT = 1898))

    )

    )

    -Pavan Kumar N

  • Invalid value for the registry when opening pictures

    How to avoid the problem of the "invalid value for registry", in the first place?

    Separated from -.

    https://answers.Microsoft.com/en-us/Windows/Forum/windows_8-pictures/invalid-value-for-registry-when-opening-photos/531aea75-00b8-4C8D-a91a-87a6e439ab1c

    Hi Anthony,.

    Did you follow the troubleshooting steps suggested to solve the problem of the other link?

    I recommend you to define an application installed on the default computer to view the pictures and check if it helps.

    Refer to:

    Choose the apps Windows uses by default

    http://Windows.Microsoft.com/en-CA/Windows-8/choose-Programs-Windows-uses-default

    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.

  • Get the message invalid source for video (html5 dreamweaver cs6)

    I copied the code example to test if it was me! It works perfectly if I then change the code to point to my site - I get the invalid source for ideas?

    I am "video play abandoned because of a network error" when I go to your video links directly.

    This means that your server does not support the MIME types for your videos. It "may" be intentional on the part of your host. You can ask them about it. If it's not an intentional "you can not host videos here" style of setting up, you can add the following to your .htaccess file...

    AddType video/mp4 mp4 m4v, f4v, f4p

    AddType video/ogg, ogv

    AddType video/webm, webm

    AddType video/x-flv flv

    .. .and that should allow them to work in the browser.

  • Invalid configuration for the device 3

    Hi all

    I have set up a lab nested with three hosts esxi and two warehouses of data connected with the Microsoft iscsi target server. I know nested vm is not supported, but I'm trying to implement this workshop because I support a real VMware environment and I wish I could test some things before I break anything, so it's important. I get this error when you try to create a virtual machine "invalid configuration for the device 3.  Someone knows how can I know where is the problem?

    Thank you

    I think I can find the answer, it seems that it could be a windows problem causing data corruption. Somehow I created a VM but get all kinds of error trying to create an another VM.  Iscsi targets set up using windows server 2012 and it seems that there is a fix from Microsoft below which deals with corruption LUNs in windows 2012.  I have not yet tested, but this seems to be the right direction. http://support.Microsoft.com/kb/2908783

  • Adding new SCSI controller: "error string: invalid operation for the '0' device.»

    Hello

    I have a problem when I try to add a SCSI controller to a virtual machine.

    I have this error:

    Error string: invalid operation for the device '0'.

    Lack of details: InvalidDeviceOperation

    Here is my code:

    my $info = Description-> new (label = > summary of "" SCSI controller 2 ' = > 'LSI Logic parallel' ");

    my $controller = VirtualLsiLogicController-> new)

    deviceInfo = > $info,

    scsiCtlrUnitNumber = > '7'.

    sharedBus = > VirtualSCSISharing-> new ('noSharing'),

    busNumber = >-1,

    key = >-1,

    backup = > $backing_info,

    controllerKey = > 100,

    );

    My $devspec = VirtualDeviceConfigSpec-> new (operation = > VirtualDeviceConfigSpecOperation-> new ('add'),)

    device = > $controller,

    fileOperation = > VirtualDeviceConfigSpecFileOperation-> new ('create').

    );

    My $vmspec = VirtualMachineConfigSpec-> new (deviceChange = > [$devspec]);

    {eval

    $vm_view-> ReconfigVM (spec = > $vmspec);

    Util::trace (0, "Controller has been created. \n") ;

    };

    I don't know how to handle, or even how to solve problems.

    Any ideas would be greatly appreciated.

    Kind regards

    Jeremy

    I finally found a solution.

    It seems that it fails if you give a marked as mandatory parameter (scsiCtlrUnitNumber, hotAddRemove)... Theses parameters seem to be set automatically, a dump of the device which will show.

    Here's the code used:

    My = $controller_spec

    VirtualDeviceConfigSpec-> new (device-online VirtualLsiLogicController-> new (key-online 0

    device-online [0],

    busNumber => $scsi_controller.

    sharedBus => VirtualSCSISharing-> new ('noSharing')),

    operation => VirtualDeviceConfigSpecOperation-> new ('Add'));

    My $vmspec = VirtualMachineConfigSpec-> new (deviceChange-online [$controller_spec]);

    {eval

    $vm_view-> ReconfigVM (spec-online $vmspec);

    };

  • I'm trying to timestamp (RFC 3161) a pdf file using my own timestamp server equipment but still get an error: 'invalid certificate for use.

    I'm trying to timestamp (RFC 3161) a pdf file using my own timestamp server equipment but still get an error: 'Invalid certificate for use' (text Original - certificado valido para uso e nao pt_BR:O). How can I get more information on what I'm missing or whats wrong with the certificate?

    I found the answer to my problem: it was linked to the plug of the TSA and its attribute 'Extended Key use '.

    In any case, thanks for your help. Just to answer the questions:

    Version: Adobe Reader XI

    Tried both:

    (A) the time stamp for the signature: signature put under without timestamp and an alert

    (B) the document timestamp: no changes and an alert

  • ORA-19030: invalid method for the schema not based XML Documents

    Hi everyone can u help me please when I am trying to execute query below his throw errror

    DECLARE

    doc xmltype.

    BEGIN

    SELECT

    XMLAGG (XMLElement ("employee",

    XMLAttributes)

                      ' http://www.Oracle.com/emp_simple.xsd ' AS 'xmlns',

                      ' http://www.w3.org/2001/XMLSchema-instance ' AS ' xmlns: xsi ",

                      ' http://www.Oracle.com/emp_simple.xsd

    http://www.oracle.com/emp_simple.xsd'

    AS "xsi: schemaLocation").

    XMLForest (e.employee_id LIKE "EmployeeId",

    Select AS "name."

    e.job_id AS "Job."

    e.manager_id "MANAGER."

    e.hire_date AS "Hire Date"

    e.Salary AS "wages."

    e.commission_pct AS 'The Commission',

    XMLForest)

    d.department_id AS "DeptNo."

    d.department_name AS "DeptName",.

    d.location_id AS 'Place') AS 'Dept')))

    in the doc

    E employees, departments d

    WHERE e.department_id = d.department_id;

    doc.schemaValidate ();

    END;

    /

    The error I get is following

    ORA-19030: invalid method for the schema not based XML Documents

    Yes, Odie meant something like that.

    
        
            
                
                    
                        
                            
                                
                                
                                
                                
                                
                                
                                
                                
                                    
                                        
                                            
                                            
                                            
                                        
                                    
                                
                            
                        
                    
                
            
        
    
    

    See how the employee node can now occur more than once in the employees node.

  • Invalid value for parameter error when the value is in the list of the parameters allowed

    I have a few documents with many styles of paragraphs which have been organized in groups. I have a simple script that aims to decouple these styles and remove groups now empty.

    Code:

    #target indesign
    
    
    var myDoc = app.activeDocument;
    
    
    if (myDoc.paragraphStyleGroups.length > 0)
    {
        myDoc.paragraphStyleGroups.everyItem().paragraphStyles.everyItem().move(LocationOptions.AT_END, myDoc);
    
    
        myDoc.paragraphStyleGroups.everyItem().remove();
    }    
    
    
    alert("Done")
    
    

    The error I get is (my highlighting):

    JavaScript error!

    Error number: 30477

    Error string: invalid value for the "reference" parameter of method "move". ParagraphStyle waited, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or application, but received Document.

    As you can see, my Pickle is my value is of a type allowed. This only happens in certain documents, and there is nothing that distinguishes these documents from those in which it works of course.

    One thing I noticed is that the error sometimes manifests a while to appear (a minute or two), but none of the styles have been moved once I click OK. So, I don't know if this is specific to a single style. I doubt it, just because other documents with the same style the value of work.

    Anyone can shed light on what this error can mean in this context? I have certainly an activeDocument, so what could cause a Document to a Document?

    Any help much appreciated!

    Hello

    It occurs when there are 2 or more models have the same name, probably.

    Jarek

Maybe you are looking for