ORA-06508 cannot create excel file

Hi,
I have forms 6i and windows 7. We have few forms which should create excel files but all of them fail with ORA-06508 and it happens only on my PC. Other colleagues don't have any problem with it. Forms path on my PC is the same as ones on other PC's.
Also weird, when I run problematic forms through debugger, they work correctly and create excel files.
How to solve this?
Tnx in advance,
Nati

Nati,
Recompiling libraries is not an option because of dependencies on too many forms. The number of Forms in your application and their dependencies is irrelevant if you follow one simple rule: Always compile PL/SQL Libraries first; compile Menu Modules second and lastly, compile your Forms. This will eliminate the dependency issues.
Anyway, mass recompiling is not allowed because of company rules. I disagree with this rule, but I don't work for your company! ;) Perhaps it is time for your company to re-evaluate this rule. :)
I tried with replacing ";" with ";" in particular form and the result was non-oracle exception 304500 which unfortunately doesn't say anything detailed. If this produced an error, I recommend you close all Forms related applications; re-open Forms builder and try again. This method should never produce an error.
I have forms 6i and windows 7.Forms 6i is not supported with Windows 7. More importantly, they are not compatible with each other. Forms 6i was designed to run on Windows 95/98. The differences between the Windows versions is tremendous. If you are unable to upgrade your Forms version, then at the very least, I recommend you run your application in Windows XP mode. This is not just setting the "Compatibility" to Windows XP. Take a look at Windows XP Mode - Windows 7 features, Install and Use Windows XP Mode in Windows 7 and Download Windows XP Mode.
Running Forms 6i on Windows 7 is like mixing Pickles with Ice Cream. Somethings are just not meant to go together. :)
Craig...

Similar Messages

  • ORA-02348: cannot create VARRAY column with embedded LOB

    Hi
    This error message I get when I try to create a table from my schema file which has a (sub-) element of type CLOB.
    In my XML document I have an element which needs to become declared a CLOB (because it's > 4000 bytes), in my Schema I define it's element node like:
    <xs:element name="MocovuState" xdb:SQLType="CLOB">
    I can register this Schema file but when I create the table, I get the error:
    ORA-02348: cannot create VARRAY column with embedded LOB
    Does anybody know how to handle this ?
    Marcel

    You need to use the xdb:storeVarrayAsTable="true" schema annotation so that unbounded elements are created at schema registration time as nested tables. Varrays can not contain CLOBs/BLOBS. Use the schema annotation xdb:SQLType="CLOB" to tell Oracle XMLDB to use CLOB storage for the element. See your schema below:
    P.S. XMLSPY is invaluable as it supports Oracle XML Schema annotations.
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" targetNamespace="http://www.yourregisteredschemanamespace.com" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:storeVarrayAsTable="true">
         <xs:element name="nRootNode">
              <xs:complexType>
                   <xs:all>
                        <xs:element name="nID" type="xs:long"/>
                        <xs:element name="nStringGroup" type="nStringGroup" minOccurs="0"/>
                   </xs:all>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="nStringGroup">
              <xs:sequence>
                   <xs:element name="nString" type="nString" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="nString" xdb:SQLType="CLOB">
              <xs:sequence>
                   <xs:element name="nValue" type="nValue" minOccurs="0" xdb:SQLType="CLOB"/>
              </xs:sequence>
              <xs:attribute name="id" type="xs:long" use="required"/>
         </xs:complexType>
         <xs:simpleType name="nValue">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>

  • ERROR ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

    Hi,
    SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -ctf I C:/temp/51030721/EXP2/DATA/SAPSSRC.STR C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/DDLORA.TPL C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.TSK ORA -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job completed
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195133
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) INFO: ABTREE created #20071018195134
    (IMP) INFO: import of ABTREE completed (39 rows) #20071018195134
    (DB) INFO: ABTREE~0 created #20071018195134
    (DB) INFO: AKB_CHKCONF created #20071018195134
    (IMP) INFO: import of AKB_CHKCONF completed (0 rows) #20071018195134
    (DB) INFO: AKB_CHKCONF~0 created #20071018195134
    (DB) INFO: AKB_INDX created #20071018195134
    (IMP) INFO: import of AKB_INDX completed (0 rows) #20071018195134
    (DB) INFO: AKB_INDX~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO2 created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO2 completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO2~0 created #20071018195134
    (DB) INFO: APTREE created #20071018195134
    (IMP) INFO: import of APTREE completed (388 rows) #20071018195134
    (DB) INFO: APTREE~0 created #20071018195134
    (DB) INFO: APTREE~001 created #20071018195134
    (DB) INFO: APTREET created #20071018195134
    (IMP) INFO: import of APTREET completed (272 rows) #20071018195134
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195134
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195314
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) ERROR: DDL statement failed
    (DROP INDEX "APTREET~0")
    DbSlExecute: rc = 103
    (SQL error 1418)
    error message returned by DbSl:
    ORA-01418: specified index does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195315
    I'm getting this error "duplicate keys found". I'm finished installing the central instance and during the database instance, i got this error. I'm installing BW 3.5 on x64 windows server 2003 platform. I'm using NU kernel 6.40.
    Thanks for your suggestions on how to resolve this error.
    Reward points guaranteed.

    Issue solved by deleting central and database instance and started a new build. it finished without an error.
    Thank you.

  • Possible cause of "Cannot open Excel file error"?

    Hi!
    Here's my problem: one of our LabView applications creates .xls Excel
    files.  However some of these files are too big to be opened into
    Excel, so we need to open these files in DIAdem to analyse the data (in
    fact, even the smaller ones often need to be analysed in DIAdem). 
    The problem is that DIAdem seems totally unable to open Excel files,
    small or big, created by our LabView application or not.  The
    error message appearing when we try to import Excel files is "Cannot
    open Excel file"... which doesn't give any clue about the cause of the
    error.   My question is: what may cause this error to
    occur?  I searched both the help and the website without finding
    useful information.
    The computer is running on WinXP with OfficeXP installed, and we are
    using DIAdem 9.0.  If additionnal information is required, just
    let me know.
    Thanks in advance!
    Maxime B.

    Hi!
    I did some experiments this morning.  First of all, the file I had
    created using Excel that I tried to open yesterday just opened.  I
    don't know why it didn't work yesterday, but, for now, it's
    working.  Now, for my LabView-created files, I still get the same
    error message.  However, if I open the files in Excel and try to
    save, a warning message appears, saying that the file may not be
    compatible with the text (separator:tabulation) format.  If I
    ignore the warning and save the file as a .xls file, I can now import
    it into DIAdem.  The problem is probably that my LabView-created
    files are not "real" .xls files.  Now, this is a problem, because
    I can't open some of the bigger files in Excel without having the data
    truncated (Excel has a maximum of 65536 rows); last year, using DIAdem
    8.X (I don't remember the exact version we had), I could open those
    files without any trouble... Is there any way to get those files to be
    opened with DIAdem 9.0?  I attached one of those files if it may help.
    Thanks!
    Maxime B.
    Attachments:
    Data1.xls ‏152 KB

  • How to Create Excel File in Background processing with different colors

    HI All
    I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
    Initially i completed above requirement by using HTML type of document with attachment type 'ALI'  & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
    but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
    I am thankfull to everybody who will help me.
    Regards
    Lokesh

    Lokesh,
    Iam also trying to populate my text file with colors as an attachment . If you know this please let me know.

  • Application cannot create needed files

    I have searched under this heading but Firefox brought up 1000 articles and I gave up after going through 10 pages, as none seemed relevant.
    I was trying to open my GIO "Virtual Safe" file, which allows me to list all my contents for insurance purposes, by where they are in the house and what category they fall into, and includes costs and photos, and also totals all entries to a final figure. I am sorry but I am not sure what type of file or program it is, but hopefully someone who sees this question will know "Virtual Safe". Anyway, I got a pop-up - "This application cannot start as it cannot create needed files. There may not be enough free disc space".
    I don't see how the last sentence can apply, as I am only using about 140 GB on a 1 TB disc. Also, subsequent checks (see after this) make me question whether the problem is related to the Virtual Safe program at all.
    A short time after this problem surfaced I received a pop-up to say that there was an update to Apache Open Office, which I downloaded. When I tried to open the application file to update Open Office I got a pop-up - "Error! Can't initialize plug-ins directory. Please try again later". I then searched and found the Mozilla help file "Re-initiallizing the plugins database", and other files as well, and followed their instructions. Firstly I changed all my plugins to "Never Activate" as suggested, but it made no difference. So I changed them all back to "Always activate".
    I then deleted the pluginreg.dat file as suggested, but it made no difference, so I reinstated that.
    By this time I began to wonder whether I would be able to open any application file, so out of interest I tried to open a few more application files from my downloads. None would open and I got various pop-up messages when I tried. For some reason they weren't all the same.
    i.e. "Can not create temp folder archive"; and "Failed to download file"; and ""Setup was unable to create the directory "C:\Users\owner\AppData\Local\Temp\is-TTSU7.tmp". Error 5: Access is denied"".
    Can anyone help me?
    Thanks,
    Barry

    hey barry, when you google that error message, it seems to appear for all kinds of different software & it appears that it is caused by something corrupting the system environment. you might want to try the tip here: http://www.windowsbbs.com/windows-7/106826-adobe-reader-wont-install-windows-7-64-bit.html#post618612 or starting the system in safemode and scanning for malware. but again, any more detailed help regarding this issue is probably outside the scope of this forum :-/

  • Cannot create PS file and PDF in Framemaker 9

    I'm using Version 9.0p196.
    When I used the "Advanced Save" to save an .fm file to a pdf, I got the message "The specified printer 'N/A' cannot be found, use printer 'Adobe PDF' instead. After I click OK, it said "cannot create PS file", and "failed to create PDF file.
    It worked fine before.This problem was occurred after I copied some fonts to the following locations:
    C:\Windows\Fonts
    and
    C:\Program Files\Adobe\FrameMaker9\fminit\fonts\adobe
    Those fonts are:
    timesbd.ttf
    times.ttf
    HelveticaWorld-Regular.ttf
    HelveticaWorld-Italic.ttf
    HelveticaWorld-BoldItalic.ttf
    HelveticaWorld-Bold.ttf
    I have no idea if that's the cause of the problem. Does anyone know?
    By the way, the FM 9 is running on XP.
    Thanks,
    Meggie

    Meggie,
    You may or may not have created a mess with fonts. I would try not to have duplicate fonts, it is totally sufficient to have them in C:\Windows\Fonts.
    But your FrameMaker verson is definitely four (4) patches behind. The current version is 9.0.4 (9.0p255) and you can get the updaters here:
    http://www.adobe.com/support/downloads/product.jsp?product=22&platform=Windows
    You have to install them one after another.
    Some of the patches improved the Save as PDF feature.
    For further communication, please add your OS version and Acrobat version.
    - Michael

  • ORA-01124: cannot recover data file 1 - file is in use or recovery

    I am trying to recover standby database, but it is giving the below error.
    ORA-00283: recovery session canceled due to errors
    ORA-01124: cannot recover data file 1 - file is in use or recovery, recovery is already stated
    ORA-01110: data file 1: 'I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM.DATA1'
    when i checked in the alert log the recovery is not started. and later i hae given "alter database recover cancel' and the command end up with the below line
    "media recovery not started".
    it seems that the recovery has stuck in between.
    please advise me how to kill the recovery session that's stuck. because i dont want to bounce the standby database.
    thanks in advance.

    Without dataguard and MRP, you are running a scripted standby.
    In a scripted standby, a RECOVER DATABASE session would have an UNTIL clause (most likely UNTIL SEQUENCE). At the end of the recovery to that point (SEQUENCE#), it exits and shuts down the database.
    Also, the scripting is such that when one RECOVER session is active, another session is not allowed to start. It may loop in wait state or exit and retry at the next scheduled interval.
    Apparently your standby scripting is not robust enough to prevent another RECOVER session from starting off even as the first is active (and/or it doesn't have a proper UNTIL clause and stop, exit, shutdown actions)
    What you have is a custom implementation of a standby database. Without complete details of the script, the "locking" between sessions (to prevent a second RECOVER from starting when one is already running) etc .... we really cannot do much to help you.
    Your scripts should be maintaing status information . It should be possible for you to discover the "other" sqlplus session that has issued a RECOVER DATABASE but not yet exited (e.g. ... how about a simple "ps -ef |grep sql" and "ps -ef | grep ora" combination ??)
    Hemant K Chitale
    Edited by: Hemant K Chitale on May 29, 2013 5:47 PM

  • Creating Excel Files on 9i

    What is the best approach/method to creating excel files on 9i using PL/SQL stored procedures/packages?
    I have seen multiple posts on this topic but would like one source for this solution. I have also visited asktom and seen an example using owa_sylk. However, that one is specific to Oracle 8. Is there a newer and more efficient way to creating Excel files?
    Regards...

    Is there a newer and more efficient way to creating Excel files?Nope.
    And if you are required to use a stored procedure, then the best way is to write out a .csv file using UTL_FILE which is probably what you saw in the examples you mentioned.

  • Cannot create a file when that file already exists, but should overwrite

    Hi,
    I need the same file name which is at Sender side and when it reaches to Receiver directory without timestamp.
    for eg., Sender side : Yeswanth.txt
    and also receiver side   :  Yeswanth.txt
    but, here it should overwrite the existing file (because, the sender side file name is always constant) at receiver directory when the job schedules for each time.
    Processing parameters i has given on Receiver side:
    File Construction Mode  :  Create
    put file  : Use Temporary File
    and I enabled the Adapter Specific Message Attributes at Sender side and Receiver side.
    Error getting receiver side at communication channel :
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException:
    Yeswanth.txt: Cannot create a file when that file already exists. : com.sap.aii.adapter.file.ftp.FTPEx: 550
    Yeswanth.txt: Cannot create a file when that file already exists.
    Reward points for useful answers.
    Regards,
    Yeswanth.
    Edited by: YeswanthRaj Kumar on May 23, 2008 8:20 AM

    Hi Yeswanth
    Then you can try with a "Add Counter". This will create new file each time with the same name but a counter will be added to the file name at the end specifying the number of times it is created.
    You can also the specify the format to create the counter once select this option u can correspondingly fill the Format and step fields.
    Will this be fine.
    Regards
    Ashmi

  • Create Excel file in application server but the field value is incorrect

    Hi Experts,
    i am facing a problem when create excel file in application server using OPEN DATASET command.
    the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
    the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
    Example :
    the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
    and if i add alphabet like a8962118800000447654 then it is correct.
    is there is anything wrong with my code?
    here is my code
    CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
    Data : begin of lt_zdsdmmdt00005 occurs 0,
             SERNR (18) type c,
             MSISDNl(20) type c,
             BOX1 (20) type c,
             ICCID(30) type c,
           end of lt_zdsdmmdt00005.
    data : ld_temp(100) type c.
    i_file = '/usr/sap/DM/test_excel.xls'.
    open dataset i_file for output in legacy text mode.
      loop at lt_zdsdmmdt00005.
        move lt_zdsdmmdt00005-ICCID to ld_iccid .
        concatenate lt_zdsdmmdt00005-sernr  lt_zdsdmmdt00005-MSISDN  lt_zdsdmmdt00005-BOX1 ld_iccid
        into ld_temp separated by c_tab.
        transfer ld_temp to i_file.
      endloop.
      close dataset i_file.
    Best Regard,
    Akbar.

    Hi Naveen,
    thanks for your reply,
    i already tried and the result still the same. any idea?
    Best Regard,
    Akbar.

  • FTPEx: 550  : Cannot create a file when that file already exists.

    Hi experts,
    I am working on idoc to file scenario and PI 7.1. The idoc is split into 3 files.
    In sxmb_moni , the message is successful , but in rwb( Message montoring) i am geeting the fllowing  Error message.
    ' Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server '172.19.125.190:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /Storedata/Outbound/0000001802: Cannot create a file when that file already exists. '. For details, contact your FTP server vendor..'
    and this error message is not displayed for all the target files , some files are getting created succesfully.
    After some times , the file in error status , gets created automatically.
    What may be the reason.?
    Thanks in advance .
    Best Regards,
    Anil

    There seem to be already some files in your Target Directory with the same name as your new files (which the CC is trying to place) and the CC is not able to overwrite the existing files and hence the error...check this.
    Check: http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/69d7cfa4b633eae10000000a1553f6/content.htm
    14.      Select the File Construction Mode.
    u25CB       Create
    The file is created. The document received last is saved in each case.
    If you want the created file to be overwritten, select Overwrite Existing File. If you do not set the indicator, processing is stopped until the created file is processed.
    You can only set the indicator if you select Use Temporary File under Put File below.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jul 28, 2009 6:59 PM

  • Problem to create Excel file

    Hi,
    I'm to create Excel file by C# codes and have got this
    Error 1 Assembly 'Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    Error 2 Assembly 'Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'Microsoft.Vbe.Interop, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    using these codes
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    using System.Text.RegularExpressions;
    using System.Globalization;
    using System.Collections;
    using System.Diagnostics;
    using System.Drawing;
    using Microsoft.Office.Interop;
    using Excel = Microsoft.Office.Interop.Excel;
    namespace ns1
    class Program
    static void Main(string[] args)
    string orp_path = "//ABC";
    bool allowappend = true;
    string test = "test";
    Excel.Application app = null;
    Excel.Workbook workbook = null;
    Excel.Worksheet worksheet = null;
    Excel.Range workSheet_range = null;
    object misValue = System.Reflection.Missing.Value;
    Excel.Application xlApp = new
    Microsoft.Office.Interop.Excel.Application();
    workbook = xlApp.Workbooks.Add(misValue);
    workbook = xlApp.Workbooks.Add(misValue);
    worksheet = (Excel.Worksheet)workbook.Worksheets.get_Item(1);
    worksheet.Cells[1, 1] = "Run Date";
    workbook.SaveAs("c:\\" + test + ".xls", Excel.XlFileFormat.xlOpenXMLTemplate, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
    workbook.Close(true, misValue, misValue);
    xlApp.Quit();
    releaseObject(worksheet);
    releaseObject(workbook);
    releaseObject(xlApp); ...
    on VS 2013. Any advice?
    Many Thanks & Best Regards, Hua Min

    Hey,
    Not sure what the problem is, I got the code working.
    One thing you're doing wrong though: Excel.XlFileFormat.xlOpenXMLTemplate supposes you're using the file extension ".xlsx" (Open XML format) and not ".xls" (Microsoft Excel 97-2003).
    So you should start by changing either the extension to xlsx or the XlFileFormat to
    xlExcel8.
    For further reference take a look
    here

  • Cannot rename DC, "Cannot create a file when that file already exists."

    Hi,
    A long time ago we used a domain controller named jacob.mydomain.lan.  It was removed, possibly in a 'dirty' way, and now we cannot re-use that name for another domain controller.  In the meantime we have upgraded to Win 2012 domain controllers
    now, and when I enter this to rename:
    netdom computername ourdc.mydomain.lan /add:jacob.mydomain.lan
    I get the error:  "Unable to add jacob.mydomain.lan as an alternate name for the computer.  The error is:  Cannot create a file when that file already exists."
    If I enter: 
    netdom computername ourdc.mydomain.lan /remove:jacob.mydomain.lan
    I get: "The command completed successfully", but it still refuses to add jacob.mydomain.lan
    After each attempt to add a forward zone dns record 'jacob.ourdomain.lan' has been created.  I always erase this manually afterwards.
    What is the problem? How can I search to find the offending 'file' named 'jacob'?
    Thanks a lot for help on this.
    regards Tor

    Kevin,
    I suggest you wait 30 days instead of 3 days before you enthusiastically close threads. Some people might think you are being a jerk if you don't.
    "K_evin Zhu" wrote in message
    news:[email protected]...
    Hi,
    As this thread has been quiet for a while, we will mark it as �??Answered�?? as the information provided should be helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to
    unmark the answer as you wish.
    BTW, we�??d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks for your understanding and efforts.
    Best Regards
    Kevin
    Tomás Mason

  • ORA-12015:  cannot create a fast refresh materialized view from a complex q

    Hi,
    I'm facing very strange problem. Please help me why this error is coming
    I'm creating a simple materialized view, but it is giving below error since this is simple select * from.
    CREATE MATERIALIZED VIEW EFMS.MS_TASK
    BUILD IMMEDIATE
    REFRESH FAST
    START WITH SYSDATE
    NEXT (SYSDATE + 1/24)
    WITH ROWID
    AS
    SELECT * FROM MS_TASK@efms_link;
    SELECT * FROM MS_TASK@efms_link
    ERROR at line 8:
    ORA-12015: cannot create a fast refresh materialized view from a complex query
    CREATE MATERIALIZED VIEW LOG ON MSDBO.MS_TASK
    TABLESPACE DBOR_MVLOG
    PCTUSED 0
    PCTFREE 60
    INITRANS 20
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOCACHE
    NOLOGGING
    PARALLEL ( DEGREE 2 INSTANCES 1 )
    WITH ROWID, PRIMARY KEY
    EXCLUDING NEW VALUES;


    Not is a best practice to use 'select *'

    ORA-12015: cannot create a fast refresh materialized view from a complex query
    Cause:      Neither ROWIDs and nor primary key constraints are supported for complex queries.
    Action:      Reissue the command with the REFRESH FORCE or REFRESH COMPLETE option or create a simple materialized view.
    Then you have to change REFRESH FAST or create a primary key in MS_TASK@efms_link to avility fast refresh.
    . :-) any help with my english is wellcome :-) .

Maybe you are looking for

  • How do I (or can I) apply alternating para styles (using "next style") to existing text?

    I am trying to apply background shading to alternate lines of text by creating two paragraph styles and naming each as the "next style". This works when manually entering text - but I can't figure out if it is possible to apply it to existing copy wi

  • Starting Classic while running OS 10.4.11

    I can no longer start up classic while OS 10.4.11 is running. If I go to system pref. I can choose 9.1 as start up and OS 10.4.11 will close and 9.1 will open but this proves to be a pain. I reinstalled classic and now have two system folders (one la

  • Payment on Account and dunning run

    One of our customers demands some changes within the Business One. The support in Ireland advised us to post these requirements in this Forum. Payments on Account will not be considered in dunning runs. The customers opinion is, that these Payments h

  • Integration with SAP order fulfillment?

    Hi, forgive me in advance for my ignorance and high-level questions in this post.  Though I am a good programmer, I have never used SAP before and am trying to learn as much as I can as quickly as I can. I am the founder and director of technology of

  • Tools greyed out, can only access T- HELP

    I am a new user. Have created a document, but when i reopened it today all the tools were greyed out and I can only access the Text tool. What do I do?