Variable printing problem Clob into 32 KB chunks using a loop

Hello
I tried to generate and return a XML file that is extended to the APEX with oracle 11g Express Edition 4.1 (more than 900 lines and for each line must sees 34 columns of information), but I do not know what is happening with the loop I use because only when I use a filter for consultation 19 ranks the xml file is generated, but if I need to generate the XML for all the lines (more than 900) the XML is empty and didn't display an error message.

Please I need your help.
Thank you.

Attached to the code source processed:

declare
l_clob_XML CLOB.
xml_size pls_integer: = 32000;
Start
sys. HTP.init;
wwv_flow.g_page_text_generated: = true;
wwv_flow.g_unrecoverable_error: = true;

DBMS_LOB. CREATETEMPORARY (lob_loc = > l_clob_XML, cache = > false, hard = > dbms_lob.session);

Select xmlElement
(
"iva"
xmlElement ("numeroRuc", J.RUC),
xmlElement ("razonSocial", J.RAZON_SOCIAL),
...
xmlElement)
"shopping")
Select xmlAgg)
xmlElement)
"detalleCompra,"
xmlForest)
K.COD_SUSTENTO as "codSustento."
K.TPLD_PROV as "tpldProv."
....
)
)
)
)
SRI_COMPRAS k
...
)
)
). getClobVal()
in l_clob_XML
ANEXO_INFORMANTE j
....
sys.owa_util.mime_header('Text/XML',false);
sys. HTP.p ('Cache-Control: non-cache');
sys. HTP.p ('Pragma: non-cache');
sys.owa_util.http_header_close;

Recorre - intervalos 32 k
for i from 0... CEIL ((DBMS_LOB. GetLength (l_clob_XML) - 1) / xml_size)
loop
sys. HTP. PRN (dbms_lob.substr (l_clob_XML, xml_size, 1 + i * xml_size));
end loop;

DBMS_LOB. FREETEMPORARY (lob_loc = > l_clob_XML);
end;

OK, I have reproduced the issue.

The problem is that DBMS_LOB. SUBSTR does not necessarily return the amount specified as input.
It's a documented behaviour to account for fixed length character sets not.

The solution is to check the length of the extracted substring to calculate the next offset.

Here is an example of code tested successfully with a query on object, in order to obtain a large enough output XML doc:

declare

  v_clob        clob;
  v_buffer      varchar2(32767);
  v_length      number;
  v_amount      number := 32767;
  v_offset      number := 1;

begin

  sys.htp.init;
  wwv_flow.g_page_text_generated := true;
  wwv_flow.g_unrecoverable_error := true;

  dbms_lob.createtemporary(lob_loc => v_clob, cache => false, dur => dbms_lob.session);

  select xmlserialize(document
           xmlelement("rowset",
             xmlagg(
               xmlelement("row",
                 xmlforest(owner, object_name, subobject_name, object_id,
                           data_object_id, object_type, created, last_ddl_time,
                           timestamp, status, temporary, generated,
                           secondary, namespace, edition_name
                           )
               )
             )
           ) as clob
         )
  into v_clob
  from all_objects;

  v_length := dbms_lob.getlength(v_clob);

  sys.owa_util.mime_header('text/xml', false);
  sys.htp.p('Content-Length: ' || v_length);
  sys.owa_util.http_header_close;

  -- read and write in chunk of 32k
  while v_offset <= v_length loop
    dbms_lob.read(v_clob, v_amount, v_offset, v_buffer);
    htp.prn(v_buffer);
    v_offset := v_offset + v_amount;
  end loop;

  dbms_lob.freetemporary(lob_loc => v_clob);

end;

Tags: Database

Similar Questions

  • Select the statement to insert into a table by using a loop

    Hello
    create table uploadtab(
    itema varchar2(3),
    xtype varchar2(1),
    salesa number,
    margina number,
    salesb number,
    marginb number,
    salesc number,
    marginc number);
    
    insert into uploadtab
      (itema, xtype, salesa, margina, salesb, marginb, salesc, marginc)
    values
      ('abc', 'a', 100, .40, 300, .10, 450, .25);
    
    create table testinsert(itema varchar2(3),
    xtype varchar2(1),
    sales number,
    margin number);
    what I want to do is create 3 records based on this one in a loop
    so here's my desired for testinsert output
    abc  a 100  .40
    abc  a 300  .10
    abc  a 450  .25
    I don't want to use 3 insert tables if possible

    any help would be greatly appreciated
    Thanks in advance

    Published by: DM on July 7, 2010 14:22

    This gives a shot:

    INSERT INTO testinsert
    ( itema
    , xtype
    , sales
    , margin
    )
    SELECT  itema
    ,       xtype
    ,       DECODE
            ( RN
            , 1,salesa
            , 2,salesb
            , 3,salesc
            )
    ,       DECODE
            ( RN
            , 1,margina
            , 2,marginb
            , 3,marginc
            )
    FROM            uploadtab
    CROSS JOIN      (
                            SELECT ROWNUM RN
                            FROM   dual
                            CONNECT BY LEVEL <= 3
                    )
    ;
    
  • Photosmart HP 6520 Internet printing problems

    I have a printer HP Photosmart 6520, that I just installed, and I use Windows 7 Home Premium (64-bit).  The printer is plugged into electricity - IE not used wireless.  I can print a document in "Word", but not Internet.  There has not been any error messages. Don't just print.

    Any ideas please?

    I now have Google Chrome installed and I am able to print the PDF using this.  Thanks a lot for your help.

    I understand that HP could well have assumed that no one prints emails or articles on the internet these days and have set this printer as a result.  However there must be a lot of users, like me and other users of the forum, who are in need of this facility.  As more people buy this printer, I'm sure there will be more people having a problem with this.  It would be useful that HP has released an update.

  • Eny HP 4520: Printing problems in word Document with photo

    I just purcahsed a HP Envy and I use the function print via the wireless option. I have a word document that I was able to print in the past which has an image inserted into the document. All in the words fine printing copies only the upper left photo f. When I show preview before printing, it shows that if the whole of the document will print correctly and the image should print very well... I have attached what print preview looks like and what actually prints

    Hi @dmanyeah,

    Thank you for reaching out to the forums! I understand that you encounter printing problems in Word, the full image is not printing. Thanks for providing the screenshots. I'd love to help you.

    Try to print a picture from another application to see if you have the same problem.

    To exclude the driver, install a generic driver to see if you have the same results.

    • On the computer, go to start, devices and printers, right-click on your printer and select printer properties.
    • Click the Advanced tab and click new driver, and then click Next.
    • HP Deskjet 9800 by selecting in the list or the Deskjet 990c printer, click Next, Finish, and apply the settings. (you can always go back and revert to the original printer driver)

    What version of Word are you using?

    If the problem is resolved and you appreciate my help, please click on the "accept as Solution" and the buttons 'Thumbs Up'. Let me know how make you out. See you soon!

  • HP 3050 j610: wireless printing problem withhp3050j610a all-in-one.

    I have been scanning and printing documents regularly. one day during the analysis of a doc a message flashed on the computer screen that there was a communication problem between the computer and all in a printer.it persists over and over again.

    He had no problem with impression then.

    as advised by the media, I downloaded a link . http://169.254.152.74 and saved as a favorite and he used every time I had to analyze.

    yesterday it stopped opening.

    Contact support who advised me to support responsible link.down to print and scan doctor and solved the problem of scanning and it turned into a printing problem. print a test page, it does not print a document.

    After encountering conflict driver down load of troubleshooting, I was informed to uninstall the drivers and the use of the CD that came with the product.i did. without success. scanning is ok.

    However, questions have been confirmed to have been solved by the doctor tool but is not printing. not even the test page. There is no abras to low ink.

    I double clicked on the printer icon when and as advised by the tools, without result.

    I use a laptop sony vaio e series with win7 os.

    Please help me solve the problem.

    Hello @casia15 and welcome to the Forums of HP, I hope you enjoy your experience!

    I see that you have problems printing.  I would try to help!

    First of all, I would say uninstalling the software of the printer.

    Once it is uninstalled, I suggest you put your system in clean boot mode in the configuration of Microsoft.  You can do this by following this document: How to perform a clean boot in Windows.

    Once the computer is in clean boot mode, I would suggest to reinstall the HP printer install wizard for Windows.

    Good luck and please let me know the results of your troubleshooting operations. Thanks for posting on the HP Forums!

  • HP OfficeJet 6500 E710n: HP OfficeJet 6500 printer problem - connection to new Comcast Wireless Gateway E710n

    Use this printer (wireless) for a few years without problem connected to a Linksys 802.11n wireless router.  Connected to a desktop computer and two laptops.

    Comcast asked recently that I update my modem cable to a new wireless, which also serves as a 802.11n access point wireless router.  I installed the new point wireless very well and has been able to set up the printer on a wireless network. (IP, host name and Mac address doesn't appear on the thin printer).

    I reinstalled the printer drivers on each computer and everything worked very well last weekend.  This weekend, I went to turn the Scanner on the desktop (HP Pavilion, Windows 7, 64-bit) and it wouldn't work.  Then I reinstalled the device drivers and then there was no connection to the printer (many reboots the PC and printer at various times during the tests).  So I ran again the connection settings on the printer - and led wireless term.  (I was able to get the scan to the connection to the computer once on one of the laptops, never the office, then lost.  When I send to the printer, it goes into the queue, a very small number of bytes, cross (usually hear the printer starts) then there lost error "connection to a printer.  Oddly enough, a couple of times after canceling the print job in the queue, the printed test page actually printed a few minutes later...

    I tried to use HP Print & Scan Doctor - it was a complete waste of time.  To date, it has always died (do not connect not not the unit) and never been able to diagnose something.  I end up having to go to the Task Manager to kill him because he always hangs.

    Any thoughts?  I'm puzzled.

    Appreciate any help/ideas that someone can think.

    FYI - I have still no idea what the question is / was?

    Connected to the gateway wireless from Comcast to the old Linksys router and I went back to my old wireless network.  After you have reinstalled the printer drivers, re-connection of the printer to the old wireless network, re-start the printer and computers - I was (finally...) manages to get printing and scanning works again.

    What a waste of a morning/afternoon.

  • Communication between computer and printer problem

    Why can't I print my documents, they go into the queue and do not print?

    Hello

    ·                         try to uninstall and reinstall and use the latest printer drivers VISTA for your model of the manufacturer of the printer

    You can also track information to try to solve your problems of printer below

    read the printer correct that information the slot microsoft, including the 'fix - it' and the information of the links to the other

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    and read this microsoft tutorial too

    Introduction

    This tutorial is designed to help you identify and fix the problem printer common windows problems, including print errors, or errors, and other issues that could prevent you from printing. This tutorial does not cover printing problems related to specific programs. Printing problems can be caused by cables that are not properly connected, corrupt, drivers, incompatible drivers, the printer settings, missing updates and problems with your printer.

    How to use this tutorial

    For best results, complete each step before move you on to the next. Try to print after each step before moving on to the next step.

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

  • Printer problem on Windows 'margins are too small.

    Original title: I'll "ask" as I don't know where to find "answers":

    I am sure that the isI will "ask" that I don't know where to find "answers": when I compose using Word, something to copy and paste it on a blank page or click here to print I get a message that my margins are too small - I really want ot print.  I always click Yes, but the document goes into a queue.  When I explore a reason for the 'unprintable', it's always "a document in the queue has hampered the printing process.  I have delete or cancel the docs one both attempt to determine the doc at fault, but I can never start the printing process.  CAN SOMEONE HELP ME SOON? a simple question for most people, but not for me.   I'll be very grateful for a fix.

    Hi Gunnar,

    1. is the issue limited only when printing word documents access?

    2. what happens when you try to print a test page?

    I suggest you to change the margin of Word and check if it helps.

    Change page margins

    If you are unable to print from any document, try the following methods and check if it helps.

    Method 1:

    Run the printer Troubleshooter and check if that helps.

    Open the printer Troubleshooter: http://windows.microsoft.com/en-US/windows7/Open-the-Printer-troubleshooter

    Method 2:

     

    Restart the print spooler device

    a. click Start, select Control Paneland then click on Administrative Tools.

    b. double-click on Services.

    c. in the user account control window, click on continue.

    d. click on print spooler.

    e. click stop to stop the print spooler.

    f. click Start to restart the print spooler.

    g. click on OK.

    h. restart the computer and check if it helps.

    Method 3:

    Clear the printer files.

    a. click on Start Menu, in the online search, type services.msc and press ENTER. b. the Services listed, stop the print spooler service. (c) in Windows Explorer, navigate to the folder below and open the PRINTERS. C:\Windows\system32\spool\PRINTERS d.     Click on continue or Yes (if prompted by UAC) to approve the opening of the PRINTERS folder. e. remove all files in the PRINTERS folder, until it is empty, and then close Windows Explorer. Note: DO NOT DELETE the PRINTERS folder itself. Don't delete its content. f. open Services, and then start the print spooler service.

    Refer to the steps in the following Microsoft article:

    Printer in Windows problems: http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows 

    Keep us informed on the status of the issue.

  • Printing problem Photoshop CC to HP; newly released s Z5400 Postscxript inkjet printer

    HP support staff unfortunately are still using PS 5 to help with printing problems. They only got Windos 7 too who doesn't get useful information of them viable. The problem that I am facing is print on canvas 24 "on this printer capable of 44". Only been in Australia for a month and had updated its firmware. I create a lot of panoramic canvas 20 "x 40". I need to print 24 "x 44" to facilitate packaging Gallery of images of artists. OK so with all printers in thank you I had no problem using the Photoshop 'don't print' command and setting the specifications in the dialogue provided by Photoshop.

    With this printer I get additional options available through or PC Photoshop via a touch screen of the printer itself. The problem that I can not get resolved by HP (who naturally blame Adobe for it) is that no matter what I said the widtyh of paper for and subsequently, the printed image, the printer tries to print an image of a 44 "wide on paper 24". Nothing to do with the orientation of the image. Nothing to do either with all the settings of Photoshop so please don't go into the basics, I spent 21/2 hours on the phone with HP it.

    If I use Save to PDF from Adobe 9/10 editable in Photoshop, I can print the image using Adobe Acrobat Pro XL. Nice quality, correct color but... It is not printed in Photoshop, I add another layer of complexity to achieve the result. According to HP, I'm the only person in the world with this problem. Well the printert has only just been released and it is not promoted as a specific canvas printer so maybe I was just the first of many who will follow in my footsteps. Recognize by using one of these machines and their ability to produce realistic colors and fall into the pit, in that I am the economy. Staff with on the hardware and software that can't duplicate support issues.

    Apart from giving up my subscription and CC, then back to version 5 of Photoshop, has one you have a suggestion for Tristan, what would happen and what can be done to remedy this?

    The automaticity of this printer uses controls is half the problem. The fact that it does not come with a user manual is another part of the puzzle and how you select a type of paper in order to obtain print heads up to canvas to print by selecting the type of paper, that all adds the problem on what is happening. But at the end of the day, I feel because I can print these images from Corel PhotoPaint, same Irfanview using the printer driver tells me how it is intended to be used, the question is in Photoshop CC.

    Nature cconstructive any help will be welcome.

    Ryadia.

    Well... I solved the problem a little differently. I got a 100% + fees refund of HP themselves and bought an Epson! Boy, was the right decision to make than ever before. I had not one problem with the Epson where HP gave me a litany of endless drama. I do not understand why a manufacturer of the printer must create defective and the bug ridden software that wants to take control of Windows and Photoshop and then they try and blame everyone except themselves.

    The postscript HP Z5400 printer proved something important for me... You always get what you pay for. I run canvas about4-5 hours a day with the Epson. I had to stay at work past 8 hours a day just to get the same amount of work out of the HP. For speed, I've never had anything faster than a 8100 Canon, but the hidden costs of the property are horrible. The HP is the cheapest that I had and the slower printer. The Epson is economical to run, carried out at a reasonable speed and has no hidden cost.

    After 5 months of harassing HP to get the "next, on the site" support I paid an extra $1200 for and never had, I can guarantee you that I will never, never has another Hewlett Packard product again. I had to go to the head of the Asia-Pacific off to get anyone who would listen to me. The Australians asked me to sign a form I would keep my mouth shut and sacrifice almost a grand that I put in it before talking about a refund. Then I discovered that they had received a fine of $ 3 million by competition and consumers watch dog in Australia more than tell someone who bought a $200 printer for a walk when he dropped his bowels a few weeks after the purchase. This crowd is pure poison for consumers.

  • Where can I find better, more correct instructions to solve printing problems by editing prefs.js?

    Instructions of "resolve printing problems | Firefox Help, line 6. Delete all the lines in prefs.js that begin with print_ and save the file. "do not match what is actually in my prefs.js file.

    In other words, he didn't y not the lines * beginning * with "print" or "print_". However, the string of five characters 'print' is * very * many times buried deep in a line of characters, but never at the beginning of a line and rarely followed by underscore. So I have no idea what I'm actually planned to do to solve my problem.

    It seems to me that this is just a badly phrased statement that might be more appropriate for someone who is familiar with the codification and development of software, which I'm not. I don't have the time, experience or knowledge to understand. I need more literal/explicit/specific instructions.

    The printing problem I have is that I have to print via WiFi to a printer in another room wired to another computer, and Firefox seems to switch or possibly reverse scales fonts for information of margin and the text of the Web page. In other words, the title of the document, date, time, prints etc very wide and the content of the page text prints almost too small to read.

    If there is a lot of user set prefs involved that need to be reset, then it's much easier to delete related lines of the prefs.js is each of them with the button straight on the topic: config page and click Reset.
    This is the main reason (single) to edit the prefs.js file.

  • Print problems with the recent update to Version 10.11.5

    Print problems with the recent update to the Version of El Capitan 10.11.5.  Cannot print to my Epson and Samsung printers after update to new IOS.  Print jobs get hooked on my Mac Pro.

    Roger 510 wrote:

    Print problems with the recent update to the Version of El Capitan 10.11.5.  Cannot print to my Epson and Samsung printers after update to new IOS.  Print jobs get hooked on my Mac Pro.

    Have you checked with Epson for an updated printer driver?

  • From updateing to 8.1 WIndows printer problems

    Until I updated to Windows 8.1 other months everything was going well on my new laptop, then I went to something of my HP Photosmart B109n scan and it did not work because the pilot was now missing and the application that replace the HP printer driver HP is useless.

    On the advice of the HP site, I tried to download the new driver, but it wouldn't go, he said I had to remove the exsisting installation but when I try it just reboots the computer, but is still there afterwards. It turns out the uninstall has disappeared from the current and installation does not appear in the installer I downloaded.

    As a last resort, I used the system restore but has not only the printer has not changed but now some pre-loaded apps will not work and ask to renew the license of developers.

    I'm a lost what to do next - please help!

    Your laptop is not known to me, but in the case of update 8.1 Win, you should check this update from Toshiba to win 8.1 page: http://www.toshiba.eu/innovation/gen...ws8_1-message/

    There you can check if the Win 8.1 is supported on your laptop and how to perform the Update step by step for Windows 8.1
    Some drivers must be uninstalled and updated after installation of update 8.1 to win!

    Regarding your printer problem:
    Each manufacturer of the printer contains own drivers for the Windows System.
    We don't know me if HP released Win 8.1 compatible drivers for the printer Photosmart B109n clean, but to be honest, this problem is not related to the Toshiba laptop. If you have problems using HP printer under 8.1 to win, you should visit the support page of the printer manufacturer for troubleshooting tips and workaround solutions.

  • HP envy printer range: HP envy with Win7 Remote Desktop RDP printing problem

    Hello

    I have a printer HP envy 5530 works well for my laptop.

    When I connect to my Win7 Remote Desktop Server (on which HP envy drivers are also installed) and try printing locally on my HP local printer, it does not work.

    When I look at my local mobile print queue, I see two copies of 'Remote Desktop redirected Printer Doc' contained in the queue. One of the queue said copies and then print. Impression size document in the print queue shows 4 KB that is abnormally low, then the missing documents from the print queue, but are not printed on the printer.

    Note that I have no problem with the same laptop, same Remote Desktop server, but using a different printer (not HP).

    I saw that on several forums (including this one), many users have this same problem but I've never seen a valid response that solves this problem with RDP.

    Any idea?

    Thank you

    I solved the problem by creating a new printer on the local computer and configure the port to the Standard TCP/IP port with the IP address of the printer and the HP Deskjet 6940 driver use. Deskjet 5500 driver may work as well.

    The problem is with the specific Envy 5530 driver.

  • Printing problem on deskjet 4510 with windows 8.1

    I bought a new deskjet 4510 and have installed via usb on my desktop running windows 8.1. This isn't the impression through products of ms office word, excel etc. and either through wordpad. I can print Notepad files and pdf via adobe reader software.

    I tried HP print and scan doctor who did not find any problem with the printer and print a test page.

    I tried uninstalling and reinstalling, setting the printer wireless to the top but could not do print.

    I looked at the help on this forum and also tried selective installation, disabling all services except when starting microsoft services, but the problem remains.

    Help, please.

    Hey @rshri7869.

    Welcome to the Forums of HP Support!

    I understand that you meet your HP Deskjet printing problems in advantage 4510 series e-all-in-one printer to your computer Windows 8.1. You have included a large number of useful information in your post, so thank you. After reviewing the troubleshooting you have already finished, I came to the conclusion that what you feel is a conflict of driver on your computer Windows 8.1. To fix this please follow the steps below.

    How to add another driver:

    1. Open the Start screen (by selecting the windows start button in the lower left corner or by selecting the "Windows" button at the bottom left of your keyboard to the left of the 'Ctrl' key
    2. In the start screen, type "Devices and printers"
    3. If the option devices and printers automatically fills, click settings at the top right and then click on devices and printers.
    4. In the devices and printers folder right click on your series Deskjet 4510 and left click on printer properties
    5. Left click on the Advanced tab
    6. Left-click on new driver
    7. When the new window driver opens just hit 'next' until you see a list of manufacturers on the left and a list of printers on the right.
    8. Select HP as the manufacturer on the left
    9. DeskJet 9800 select the printer on the right. If Deskjet 9800 is only select "Windows Update" at the bottom left and once the update has been completed, you will be able to select Deskjet 9800.
    10. After selecting Deskjet 9800 hit next complete the new driver Wizard
    11. Under the printer properties window, select 'Apply' but do not hit OK
    12. Select the general tab
    13. Rename your printer in HP Deskjet 4510
    14. Click OK
    15. Finally, right-click on your Deskjet 4510 series once more and click on Printing Preferences
    16. Left click on the paper/quality tab
    17. Left click on the dropdown 'Normal' for the print quality down to the right and change its normal fast
    18. Press apply and OK
    19. Try to print!

    Please let me know if the steps I have provided to resolve your problem. Good luck!

  • HP Color Laserjet CP2025 print: color printing problem

    Had the printer listed above for several years and love it.  Have just started having problems with the printer does not print not not in color.  Have a recorded document that needs to be printed every month and have had no problems with it, until yesterday when it is printed in black only.  Another document word also printed in black only.  I printed a test page printed correctly.

    Don't know if there is a definition in the document, or is it a printer problem.  Help!

    Welcome to the community @mwillis HP

    I came across your post about the color printing problem and wanted to answer to help with my suggestions. Please see the guide below to resolve this issue.

    HP Color LaserJet - cannot print in color or impossible to Auto-Duplex (two-sided printing fails) after the installation of the UPD

    Let me know if you have any questions.

    Hit the "accept as Solution" if we reached a solution and the "thumbs up" to say thank you for my help.

Maybe you are looking for

  • NB510 - failed connection user profile cannot be loaded

    Out of the blue my NB510 will not connect me and so to load my computer at all. When I get the password to my profile, what happens with the message error "the service user profile Service has no login, cannot load user profile". Any information woul

  • Camileo S20 stabilization

    Is it possible to turn on stabilization permanently in 720 p mode?When I turn camera on, stabilization is still disabled.Can someone help me?Thank you.

  • The satellite L40 BIOS message

    Hello I have a pretty annoying problem with my new laptop (Satellite L40 18W - model PSL4CE). Whenever I boot, I get > {Quote: title = / var/log/syslog :} {quote}}> PCI: BIOS Bug: e0000000 MCFG area isn't just E820> PCI: do not use MMCONFIG.> ACPI: e

  • Lost card SIM of Vibe X 2 support

    Hello My vibe x 2 sim card tray was lost while I'm travelling. How can I get this part alone. Y at - it all optton to buy online or can I replace from the service center. Also, please provide the centre for smartphone lenovo in trivandrum, kerala Kin

  • Adding a device:-201401. Make sure that the device is connected?

    I was able to set up my Explorer Measurement & Automation to detect my device (NI cDAQ-9188), but I'm unable to add the device.  The error statement says: Add the device failed.  From the device driver error report is as follows: Add a device -201401