COM exception in Xcelsius

Hi Experts,
I'm gettng a strange error.When i'm trying to connect to bex queries(BICS connectivity in Xcelsius) of my Development system outside my company network , i'm getting an error called "COM exception".Can anyone tell me about this?
Is this error related to xcelsius or is it some firewall issue?
My version of Xcelsius :2008,SP4
OS: Windows 7
Thanks and regards,
Abhishek

Hi,
Check if your BW id has necessary authorization to access functional modules required for xcelsius connection. Refer below thread also.
[http://www.forumtopics.com/busobj/viewtopic.php?p=734002]
Hope it helps you.
Regards,
Nikhil Joy

Similar Messages

  • Com Exception

    Hi
    When I tried to use the New SAP  Netweaver BI Connection in the Xcelsius Enterprise it is throwing "Com Exception" Error Message.Please help me out.
    Flash Player 10 Activex
    SAP Netweaver
      Business Explorer is  SP 10 Patch Level 1
      SAP GUI for WIdows is FInal Relese 710 ,Patch Level 15
    Xcelisus SP2 FP2.1 Version 5.2.1.0
    -Madhan

    Hi,
    In the release notes of Xcelsius2008 FP3.1 something was mentioned about this problem.
    [http://help.sap.com/businessobject/product_guides/xcelsius2008SP3/en/Xcelsius2008_FP3.4_release_notes_en.pdf]
    After upgrading to Xcelsius 2008 FP3.1 on the Microsoft Vista platform, a COM Exception appears
    during the SAP system logon process when you use the SAP NetWeaver BW Connection, or when you
    select SAP > Open > Publish > Publish As from the menu in Xcelsius.
    To resolve this issue, remove crypt32.dll and winhttp.dll from %Xcelsius_in
    stalled_root%\Xcelsius\, for example "C:\Program Files\Business Objects\Xcel
    sius\".
    Hope this would help.
    H. Bui

  • Unable to load the vertipaq engine because there was a COM exception . Return argument has an invalid type.

    Hi All,
    I have been using powerpivot for months (2010 PowerPivot on Excel 2010, with Sql 2008).  I tried to open powerpivot today and get the following below.  I have already tried uninstalling powerpivot and reinstalling it to no avail.  
    Any suggestions would be appreciated.  Thanks, Ivan
    Unable to load the vertipaq engine because there was a COM exception while loading....
    ============================
    Error Message:
    ============================
    Return argument has an invalid type.
    ============================
    Call Stack:
    ============================
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel.WorkbookConnection.get_OLEDBConnection()
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadOLEDBConnection(Boolean raiseCompleteEvent, String errorCache)
    ============================

    Hi All,
    For anyone who this happens to, what ended up fixing it was uninstalling and reinstalling excel.  I was using excel 2010, so I did this 
    Go to add/remove programs 
    Highlight Microsoft Office Professional 2010 
    Click Change
    ensure Add remove features is selected and click continue 
    click on the little arrow beside excel and click on Not Available, click continue
    After it is done, excel will be uninstalled.  
    When this is done, you can do the same process again, but this time chose the other appropriate selection
    instead of not available.  I chose Run All from My Computer.  

  • Unable to load the Vertipaq engine because there was a COM exception while loading

    I saw a similar thread on the forum but it's a dead end.
    PowerPivot for Excel 2010 gives me this error whenever I click the PowerPivot window icon:
    Unable to load the VertiPaq engine because there was a COM exception. This might happen if you load a workbook on a corrupt installation. To fix the problem, uninstall and then reinstall PowerPivot. Click Details for more error information.
    ============================
    Error Message:
    ============================
    Could not load file or assembly 'msmgdsrv, Version=9.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
    The type initializer for 'Microsoft.AnalysisServices.BackEnd.DAXServices' threw an exception.
    ============================
    Call Stack:
    ============================
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadOLEDBConnection(Boolean raiseCompleteEvent, String errorCache)
    ============================
    I've tried everything that was suggested so far: uninstall and reinstall PowerPivot, Microsoft Office 2010, and all of the prerequisites for PowerPivot (NET Framework 4.0, Visual Studio) and it still gives the same error message.
    Thing is, I don't think it is a PowerPivot issue because many people in the office use PowerPivot and they all receive the same error message.
    We are all running on Windows 7 Pro 64-bit.
    Any help and/or assistance would be greatly appreciated.
    Thanks,
    Seong Lee

    I saw a similar thread on the forum but it's a dead end.
    PowerPivot for Excel 2010 gives me this error whenever I click the PowerPivot window icon:
    Unable to load the VertiPaq engine because there was a COM exception. This might happen if you load a workbook on a corrupt installation. To fix the problem, uninstall and then reinstall PowerPivot. Click Details for more error information.
    ============================
    Error Message:
    ============================
    Could not load file or assembly 'msmgdsrv, Version=9.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
    The type initializer for 'Microsoft.AnalysisServices.BackEnd.DAXServices' threw an exception.
    ============================
    Call Stack:
    ============================
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadSafeSandboxAfterConnection(String errorCache)
       at Microsoft.AnalysisServices.XLHost.Addin.InProcServer.LoadOLEDBConnection(Boolean raiseCompleteEvent, String errorCache)
    ============================
    I've tried everything that was suggested so far: uninstall and reinstall PowerPivot, Microsoft Office 2010, and all of the prerequisites for PowerPivot (NET Framework 4.0, Visual Studio) and it still gives the same error message.
    Thing is, I don't think it is a PowerPivot issue because many people in the office use PowerPivot and they all receive the same error message.
    We are all running on Windows 7 Pro 64-bit.
    Any help and/or assistance would be greatly appreciated.
    Thanks,
    Seong Lee

  • Word 2013 - MSI Install vs. One-Click Install - COM Exception Error

    Hello -
    we have a 3rd party control that sits on top of word to render word documents.  In a MSI installation of Word 2013 everything works fine.  When we use the one-click installation the rendering does not work and the system throws a com exception
    error.
    it basically says "The document is not associated with an ActiveX Document server.  at OfficeControlLIB.IOfficeControl.OpenLocalfile...
    there is a suggested fix @ http://stackoverflow.com/questions/19778211/office-2013-click-to-run-installer-and-activex-issue/26890815#26890815 
    where you modify the registry to insert :
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{F4754C9B-64F5-4B40-8AF4-679732AC0607}\DocObject]
    into the registry - however this did not work (note we looked up the CLSID for our OCX and replaced.
    Any ideas?

    Hi,
    So it's a 32-bit version of Office which is running on a 32-bit version of Windows, try to omit
    Wow6432Node from the registry keys and see if it works.
    It's a 3rd party control, there is no way for us to understand how exactly it works. I'd suggest you contact the vendor support of that control for further assistance.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • A COM exception has been encountered: At invoke of: ADD The server threw an

    Hi,
    we are using the Java Connector, and I can add or update Business Partners.
    But adding or updating an JournalVouchers allways throws the following COM Exception
    on a SBO 6.5. Our programm-code works on a SBO 6.2, but not on a SBO 6.5 ?
    What is wrong ? Can anybody tell us that ?
    Regards
    Jan Nielsen
    AMC-CONSULT A/S
    ====== error mesage ======
    com.sap.smb.sbo.wrapper.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Add
    Description: The server threw an exception.
    ====== Programcode ==============
    Created on 25-09-2003
    To change the template for this generated file go to
    Window>Preferences>Java>Code Generation>Code and Comments
    package amc.sap.util;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.Date;
    import amc.language.Language;
    import amc.xkernel.exception.SetThrowException;
    import amc.xkernel.global.BoxPane;
    import amc.xkernel.global.Convert;
    import amc.xkernel.global.DateX;
    import amc.xkernel.global.SysLog;
    import amc.sap.table.SalarySetupTable;
    import amc.sap.table.SalarySetupTrans;
    import com.sap.smb.sbo.api.IJournalEntries;
    import com.sap.smb.sbo.api.IJournalEntries_Lines;
    import com.sap.smb.sbo.api.IChartOfAccounts;
    import com.sap.smb.sbo.api.SBOCOMUtil;
    import com.sap.smb.sbo.api.SBOErrorMessage;
    import com.sap.smb.sbo.util.ConvertUtil;
    @author Administrator
    To change the template for this generated type comment go to
    Window>Preferences>Java>Code Generation>Code and Comments
    public class MultidataImport extends SAPLogonUtil
         private int lineNo = 0;
         public static void FileCopy(String srcFileName, String destFileName)
              try
                   File srcFile = new File(srcFileName);
                   if (srcFile.exists())
                        File destFile = new File(destFileName);
                        FileInputStream in = new FileInputStream(srcFile);
                        FileOutputStream out = new FileOutputStream(destFile);
                        int ret;
                        for (;(ret = in.read()) != -1;)
                             out.write(ret);
                        in.close();
                        out.close();
              catch (Throwable e)
                   SysLog.setError(e.getMessage(),"");
         private SBOErrorMessage errMsg = null;
         private IJournalEntries iJournalEntries = null;
         private IChartOfAccounts iChartOfAccounts = null;     
         private IJournalEntries_Lines iJournalEntries_Lines = null;
         private boolean iJournalEntriesOK = false;
         private int recCounter = 0;
         private SalarySetupTable salarySetupTable = null;
         private boolean errorsFound = false;     
         File fileName = null;
         public MultidataImport()
              super();
         public void insertRecord(String record) throws Exception
              try
                   SalarySetupTrans salarySetupTrans = new SalarySetupTrans();
                   String strDate = null;
                   Date entryDate = null;
                   String salaryCode = null;
                   String debetCredit = null;
                   String entryAccount = null;
                   String entryText = null;
                   String intAmount = null;
                   Double amount = Convert.string2Double("0.00");
                   Double emptyDouble = Convert.string2Double("0.00");
                   if (record.substring(0, 2).toString().equalsIgnoreCase("ML"))
                        /** Entrydate*/
                        strDate =
                             Convert.subString(record, 21, 4)
                                  + "-"
                                  + Convert.subString(record, 25, 2)
                                  + "-"
                                  + Convert.subString(record, 27, 2);
                        entryDate = ConvertUtil.DateString2Date(strDate);
                        /** Salarycode */
                        salaryCode = Convert.subString(record, 38, 4);
                        /** Identyfier for Debet or Credit amount */
                        debetCredit = Convert.subString(record, 42, 1);
                        /** Amount */
                        intAmount =
                             Convert.subString(record, 43, 10)
                                  + "."
                                  + Convert.subString(record, 53, 2);
                        amount = Convert.string2Double(intAmount);
    Fillout the IJournalEntries
                                                                salarySetupTrans.setWhereFirstOnly(SalarySetupTrans.SalaryId"='"salaryCode+"'");
                        if (iJournalEntriesOK == false)
                             iJournalEntries.setMemo(Language.get("@ImportML"));
                             iJournalEntries.setReferenceDate(entryDate);
                             iJournalEntries.setStornoDate(entryDate);
                             iJournalEntries.setTaxDate(entryDate);
                             iJournalEntries_Lines = iJournalEntries.getLines();     
                             iJournalEntriesOK = true;
                        if (iJournalEntriesOK == true)
    Fillout the IJournalEntries_Lines
                             /** Fetch account from from DB */
                             entryAccount = salarySetupTrans.accountId;
                             /** Fetch Entrytext from DB */
                             entryText = salarySetupTrans.entryText;
                             /** Make debet Line. */
                             if(lineNo >= 1)
                                  lineNo = lineNo + 1;                         
                                  Integer integer_ = new Integer(lineNo);
                                  iJournalEntries_Lines.setCurrentLine(integer_);
                             iJournalEntries_Lines.setAccountCode(entryAccount);     
                             if (debetCredit.equalsIgnoreCase("+"))
                                  iJournalEntries_Lines.setDebit(amount);
                                  iJournalEntries_Lines.setCredit(emptyDouble);                              
                             else
                                  iJournalEntries_Lines.setCredit(amount);
                                  iJournalEntries_Lines.setDebit(emptyDouble);
                             iJournalEntries_Lines.setDueDate(entryDate);
                             iJournalEntries_Lines.setLineMemo(entryText);
                             iJournalEntries_Lines.setReferenceDate1(entryDate);
                             iJournalEntries_Lines.setShortName(entryAccount);
                             iJournalEntries_Lines.setTaxDate(entryDate);
                             iJournalEntries_Lines.add();
                             errMsg = iCompany.getLastError();
                             if (errMsg.getErrorCode() != 0)
                                  iJournalEntriesOK = false;
                                  throw new Exception("Could not create Journalentry "
                                                                  + "\nReason code: "
                                                                + errMsg.getErrorCode()
                                                                + "\nLongtext: "
                                                                + errMsg.getErrorMessage());
                             lineNo = lineNo + 1;                         
                             Integer integer1_ = new Integer(lineNo);
                             iJournalEntries_Lines.setCurrentLine(integer1_);
                             /**  Make credit Line */
                             /** Fetch setoffaccount from from DB */
                             entryAccount = salarySetupTrans.setOffAccountId;                         
                             iJournalEntries_Lines.setAccountCode(entryAccount);                         
                             if (debetCredit.equalsIgnoreCase("+"))
                                  iJournalEntries_Lines.setDebit(emptyDouble);
                                  iJournalEntries_Lines.setCredit(amount);                              
                             else
                                  iJournalEntries_Lines.setCredit(emptyDouble);
                                  iJournalEntries_Lines.setDebit(amount);
                             iJournalEntries_Lines.setDueDate(entryDate);
                             iJournalEntries_Lines.setReferenceDate1(entryDate);
                             iJournalEntries_Lines.setShortName(entryAccount);
                             iJournalEntries_Lines.setTaxDate(entryDate);
                             iJournalEntries_Lines.setLineMemo(entryText);                         
                             iJournalEntries_Lines.add();
                             recCounter = recCounter + 1;
                             errMsg = iCompany.getLastError();
                             if (errMsg.getErrorCode() != 0)
                                  iJournalEntriesOK = false;
                                  throw new Exception("Could not create Journalentry "
                                                                + "\nReason code: "
                                                                + errMsg.getErrorCode()
                                                                + "\nLongtext: "
                                                                + errMsg.getErrorMessage());
              catch (SetThrowException s)
                   SysLog.setError(s.getMessage(),"");
              catch (Exception e1)
                   SysLog.setError(Language.get("@AddFail"),e1.toString());
         public void validateRecord(String record) 
              try
                   SalarySetupTrans salarySetupTrans = new SalarySetupTrans();
                   String salaryCode = null;
                   if (record.substring(0, 2).toString().equalsIgnoreCase("ML"))
                        /** Entrydate*/
                        //** Salarycode */
                        salaryCode = Convert.subString(record, 38, 4);
                        /** Identyfier for Debet or Credit amount */
    Check salarycodes and SAP Ledgeraccounts
                        salarySetupTrans.setWhereFirstOnly(SalarySetupTrans.SalaryId"='"salaryCode+"'");
                        if(!salarySetupTrans.found())
                                            SysLog.setError(Language.get("@SalarycodeNotFound",salaryCode),Language.get("@SalarycodeNotFoundHELP"));
                             errorsFound = true;                         
                        else
                             if(salarySetupTrans.accountId == "")
                                  SysLog.setError(Language.get("@AccountIdNotFound",salaryCode),Language.get("@AccountIdNotFoundHELP"));
                                  errorsFound = true;                         
                             else
                                  if(!iChartOfAccounts.getByKey(salarySetupTrans.accountId))
                                       SysLog.setError(Language.get("@AccountIdNotExist",salarySetupTrans.accountId),Language.get("@AccountIdNotExistHELP"));
                                       errorsFound = true;                         
                             if(salarySetupTrans.setOffAccountId == "")
                                  SysLog.setError(Language.get("@SetOffAccountIdNotFound",salaryCode),Language.get("@SetOffAccountIdNotFoundHELP"));
                                  errorsFound = true;                         
                             else                                             
                                  if(!iChartOfAccounts.getByKey(salarySetupTrans.setOffAccountId))
                                       SysLog.setError(Language.get("@SetOffAccountIdNotExist",salarySetupTrans.setOffAccountId),Language.get("@SetOffAccountIdNotExistHELP"));
                                       errorsFound = true;                         
                   else
                        SysLog.setInfo(Language.get("@WrongFileType",fileName.getAbsolutePath()),Language.get("@WrongFileTypeHELP"));
                        errorsFound = true;
                        return;                              
              catch (SetThrowException i)
                   SysLog.setError(i.getMessage(),"");
         public void run(boolean showBoxes)
              int je;
              String fileNameStr = null;
              File                     backupFile                = null;
              File                     backupDir                = null;
              FileReader fileReader = null;
              BufferedReader read = null;
              String readLine = null;
              String content = null;
              iJournalEntriesOK = false;
              if (iCompany == null)
                   MultidataImport.tryLogon(false);
              if (iCompany == null)
                   return;
              try
                   salarySetupTable = new SalarySetupTable();
                   salarySetupTable.setWhereFirstOnly();
                   fileNameStr = salarySetupTable.salaryImportFile;
                   if (fileNameStr == null || fileNameStr.equalsIgnoreCase(""))
                        SysLog.setError(Language.get("@NoImportfile"),Language.get("@NoImportfileHELP"));
                        return;
                   backupFile = new File(salarySetupTable.salaryMoveTo"
    "DateX.getSystemDateString()Convert.stringRemove( DateX.getSystemTime(),":")".bak");
                   backupDir  = new File(salarySetupTable.salaryMoveTo);
                   fileName   = new File(fileNameStr);
                   if (!fileName.exists())
                        SysLog.setError(Language.get("@FileNoExist",fileName.getAbsolutePath()),Language.get("@FileNoExistHELP"));               
                        return;
                   if ( !backupDir.exists() )
                        SysLog.setError(Language.get("@BackupDirNoExist",backupDir.getAbsolutePath()),Language.get("@BackupDirNoExistHELP"));                    
                        return;
                   if(showBoxes)
                        if (BoxPane.okCancel(Language.get("@OKtoImport")" "Language.get("@Multidata"),"Multidata-import") != 0)
                        return;
                   iJournalEntries  = SBOCOMUtil.newJournalEntries(iCompany);
                   iChartOfAccounts = SBOCOMUtil.newChartOfAccounts(iCompany);               
                   fileReader = new FileReader(fileName);
                   read = new BufferedReader(fileReader);
                   while (((readLine = read.readLine()) != null))
                        content = readLine;
                        if (!content.equalsIgnoreCase(""))
                             this.validateRecord(content);
                   if(errorsFound == true)
                        SysLog.setError(Language.get("@ErrorsFound"),Language.get("@ErrorsFoundHELP"));
                        fileReader.close();
                        read.close();
                        return;
                   fileReader.close();
                   read.close();
                   fileReader = new FileReader(fileName);
                   read = new BufferedReader(fileReader);
                   while (((readLine = read.readLine()) != null))
                        content = readLine;
                        if (!content.equalsIgnoreCase(""))
                             this.insertRecord(content);
                   if (iJournalEntriesOK == true)
                        je = iJournalEntries.add();
                        if (je != 0L)
                             iJournalEntriesOK = false;
                             errMsg = iCompany.getLastError();
                             SysLog.setError(Language.get("@NotCreatedJEntry")
                                                                + "\n"+Language.get("@ReasonCode")
                                                                + errMsg.getErrorCode()
                                                                + "\n"+Language.get("@ErrorMessage")
                                                                + errMsg.getErrorMessage()
                                                                ,Language.get("@ConnectErrorHELP"));
                        else
                             SysLog.setInfo(Language.get("@CreatedJEntry",String.valueOf(recCounter)),"");
                   if(iJournalEntriesOK == true)
                        FileCopy(fileName.getAbsolutePath(),backupFile.getAbsolutePath());
                   fileReader.close();
                   read.close();
                   if (backupFile.exists())
                        fileName.delete();
              catch (SetThrowException t)
                   SysLog.setError(t.getMessage(),"");
              catch (IOException i)
                   SysLog.setError(i.getMessage(),"");
              catch (Exception s)
                   SysLog.setError(s.getMessage(),"");

    After a long search I have found the answer to this proproblem myself on service.sap.com/smb note-no 706379. I have tryed it out and it WORKS. Please read the following text that explains the problem and the solution :
    Symptom
    Following exception or similar text found in the failed response message
    COM exception has been encountered: At Invoke of: Add
    Description: The server threw an exception.
    Other terms
    SBO ITK, Java Connector, SBO SDK, DI-API, SAP J2EE 6.20
    Reason and Prerequisites
    Note 642676 explains this problem in a detail.
    In a brief, the main stack size is not large enough causes this
    exception.
    Solution
    First of all, please find from which exe file the J2EE server started. For starting in the console with go.bat, the exe may be java.exe under %JAVA_HOME%\bin (Please check the path setting for which java.exe
    to be used. Normally, it may be C:\WINDOWS\SYSTEM32\java.exe,
    %JAVA_HOME%\bin\java.exe, %JAVA_HOME%\jre\bin\java.exe,
    or C:\Program Files\JavaSoft\JRE\1.3.1_08\bin\java.exe)
    For starting as the windows service, you can find the exe as following:
    1. Open the service from Start -> Setting -> Control Panel ->
       Adiministrative Tools -> Services
    2. Find the service to start SAP J2EE 6.20 of ITK, for example,
        "SAP J2EE Engine Alone"
    3. Open the properites window of this service, you can find the exe    in "Path to excutable", for example,    d:\SAP_J2EEngine6.20\configtool\alone.exe
    Second, prepare the tools to do the patch. If you have installed
    Microsoft Visual Studio 6.0, you have the right tools. We need
    a. editbin.exe, to patch the exe.
    b. dumpbin.exe, to check the stacksize.
    c. link.exe and MSPDB60.DLL to run above two tools.
    Third, patch the exe:
    1. BACKUP THE ORIGINAL EXE, JAVA.EXE OR ALONE.EXE
    2. Use dumpbin.exe to check the original stack size
       dumpbin.exe /headers alone.exe
       find line: 40000 size of stack reserve
       It means the current stack size is 256k
    3. Use editbin.exe to patch the exe, for example with 2m stack size
       2m = 2 * 1024 *1024 bytes = 2097152 bytes
       editbin.exe /stack:2097152 alone.exe
    4. Use dumpbin.exe to verify the patch.
       dumpbin.exe /headers alone.exe
       find line: 200000 size of stack reserve
       It means the current stack size is 2m
    Last step, start the J2EE server again and see whether everything
    is OK.
    For service, we also recommend you patch    d:\SAP_J2EEngine6.20\configtool\service.exe All installed service exe file, for example alone.exe will be copied from this file. Patch this file will avoid patch each duplicated exe file then.
    Regards
    Jan Nielsen
    AMC-CONSULT A/S

  • At Invoke of: Update,A COM exception has been encountered

    Hi Guys,
    I just use java to access the data of SAP B1, and I  met a trouble, I have no idea.
    I have imported into SAP B1 from file and export the SAP data to a file, just in business partner module,
    it's ok.
    I also can export data from ORDR of SAP B1 database to  a file.
    But I can't work out importing data from external data about Order module, just table ORDR.
    I have search the WEB for 2 days, just nothing!!
    I will appreciate to your great help. Could you please give me a sample, should be perfect!!!!
    ERROR LOG about updating operation-
    !!!Error***-A COM exception has been encountered:
    At Invoke of: Update
    Description: The server threw an exception.
    com.sap.smb.sbo.wrapper.com.ComFailException: A COM exception has been encounter
    ed:
    At Invoke of: Update
    Description: The server threw an exception.
            at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Native Method)
            at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Unknown Source)
            at com.sap.smb.sbo.wrapper.com.Dispatch.callN(Unknown Source)
            at com.sap.smb.sbo.wrapper.com.Dispatch.call(Unknown Source)
    ==========================================================
    ERROR LOG about adding operation is similar-
    !!!Error***-A COM exception has been encountered:
    At Invoke of: Add
    Description: The server threw an exception.
    com.sap.smb.sbo.wrapper.com.ComFailException: A COM exception has been encounter
    ed:
    At Invoke of: Add
    Description: The server threw an exception.
    =================================================================
    the following just is some code.
              ICompany vCompany = SapSdkHelper.getICompany();
              vCompany.connect();
              IDocuments aOrder = SBOCOMUtil.newDocuments(vCompany,
                        SBOCOMConstants.BoObjectTypes_Document_oOrders);
              IDocument_Lines line = aOrder.getLines();//line should be the data in table rdr1
              int successCount = 0;
              for (String[] rowData : dataList) {
                   Integer key = new Integer(rowData[0]);
                   if (aOrder.getByKey(key)) {
                        aOrder.setAddress(aOrder.getAddress()+"test");
                        int rr = aOrder.update();
                        SBOErrorMessage errMsg = vCompany.getLastError();
                        System.out.println(errMsg.getErrorMessage());
                        System.out.println(rr);
                        continue;
                   aOrder.setDocNum(key);
                                                    aOrder.setCardCode(rowData[2]);
                   aOrder.setCardName(rowData[3]);
                   aOrder.setDocTotal(Double.valueOf(rowData[4]));
                   aOrder.setDocType(SBOCOMConstants.BoDocumentTypes_dDocument_Items);
                   //aOrder.setDocCurrency("RMB");
                   //aOrder.setDocRate(10.1);
                   line.setItemCode("A00001");
                   line.setItemDescription("description Testing");
                   line.setQuantity(new Double(3));
                   line.setPrice(new Double(3));
                   //line.setRate(10.1);
                   //line.setCurrency("RMB");
                   //line.add();
                   long rc = aOrder.add();
                   SBOErrorMessage errMsg = vCompany.getLastError();
                   System.out.println(errMsg.getErrorMessage());
                   System.out.println(rc);
                   successCount++;
              vCompany.disconnect();

    Just refer to DI JCo: Getting a COM Exception when adding an Order
    I got it.
    If you have any question about this issue, please contact me.
    For SAP B1, just need to patch java.exe, if you develop/test something in IDE you should also patch javaw.exe, please notice the right path used in IDE.
    Just my steps-
    1. download the Visual studio express 2008 from microsoft.com and install it online(no need to download SQLSERVER Express)
    2. backup the original exe file, java.exe/javaw.exe
    3. edit the PATH environment variable plus 'C:Program FilesMicrosoft Visual Studio 9.0VC in'
    4. open CMD window and enter into %JAVA_HOME%/bin/
    5. Use dumpbin.exe to check the original stack size
        dumpbin.exe /headers java.exe
        find line: 40000 size of stack reserve
        It means the current stack size is 256k
    6. Use editbin.exe to patch the exe, for example with 2m stack size
        2m = 2 * 1024 *1024 bytes = 2097152 bytes
        editbin.exe /stack:2097152 javaw.exe
    7. Use dumpbin.exe to verify the patch.
       dumpbin.exe /headers java.exe
       dumpbin.exe /headers javaw.exe
       find line: 200000 size of stack reserve
       It means the current stack size is 2m
    IT'S OKAYYYYYY.
    The version of SAP B1 is 7.10.32 SP:00 EF:2.
    The version of SDK just is contained in the SAP B1.
    Hope it can help you a little.
    MZ

  • Cannot open visio template in visual studio 2012 COM Exception "An exception occurred"

    Hi,
     I have following piece of code
    DocumentnewDocument =
    null;
    if
    (visioApplication ==
    null)
    visioApplication = newVisio.Application();
    newDocument = visioApplication.Documents.OpenEx(fileTemplate, (
    short)Visio.VisOpenSaveArgs.visOpenCopy);
    This works fine in visual studio 2008 and server 2008. But after migration to visual studio 2012 and windows server 2012(this code runs in a windows service in server) it is no longer working throwing COM Exception - "An Exception occurred" while
    opening a template. Visio 2013 is installed on both server and client. Tried changing the file extension from vst to vstx. but no use.

    Hi
    SM_CT,
    According to the error message “Exception from HRESULT: 0x800706BE”, you can refer to this article.
    http://support.microsoft.com/kb/2461206
    If there is anything I can do for you regarding this issue, feel free to post back.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Scripting API: Com exception when calling Session.Record

    Hi,
    I'm communicating with SAP Scripting API Com-Object from my Net application.
    When the Scripting events are disable in server side (by setting sapgui/user_scripting_disable_recording=TRUE in the server profile see Note 692245) ans i try to set the GuiSession.Record property to true i recieve a COM exception.
    System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
    at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
    at SAPFEWSELib.ISapSessionTarget.set_Record(Boolean )
    My question is - is this is the expected behavior? (I wouldn't expect exception when mode is disabled).
    Thanks,
    Dror.

    The problem is: i don't know how to check for the HTTP-Header, because
    my call
    <i>SOAPOutPayload = accessor.call(payload);</i>
    throws the mentioned exception, even though it works behind the scene.
    Is it possible to check for the HTTP-Response-Code in the catch block?
    We want to avoid an synchronous scenario because we don't need the result and the WebService is rather slow.

  • Just Loaded P6 - getting "COM Exception Caught" when loading P3 files -Help

    I desperately need some help. I have loaded P6, uninstalled, loaded, unistalled, countless times trying to get the program to allow me to upload some p3 files I need to review. When I try to load the p3 files I get a pop-up that says "COM Exception Caught. Value = 0." I just purchased the program and have spent a week trying to install p6 and load these schedules. There is absolutely no customer support and I am very frustrated. If anyone can help me, it would be greatly appreciated. I don't know if it is a database issue, a P6 installation issue, or a loading issue.
    Thanks.

    user12144842 wrote:
    I desperately need some help. I have loaded P6, uninstalled, loaded, unistalled, countless times trying to get the program to allow me to upload some p3 files I need to review. When I try to load the p3 files I get a pop-up that says "COM Exception Caught. Value = 0." I just purchased the program and have spent a week trying to install p6 and load these schedules. In the future, you should check out the knowledgebase, you will find answers to almost all of your problems.
    In this case, you would see that in order to import P3 projects into P6, P3 must be installed.
    If you own a P3 license and and want to be able to import/export to P3 without installing it, you can copy the following files from your P3 installation disk to your '\Windows\System32' Directory
    W32MKDE.EXE
    W32MKRC.DLL
    WBTRV32.DLL
    There is absolutely no customer support and I am very frustrated. If anyone can help me, it would be greatly appreciated. I don't know if it is a database issue, a P6 installation issue, or a loading issue.
    >
    Thanks.Have you contacted support? You can call them at 610-668-3030 or email [email protected]

  • Un Handled Com Exception

    Hi Experts,
    While Adding the User Authorization Using the DI API Getting the COM Exception in the Bold Line...i am using SAP B1 8.8 SP 00 PL 00
    Unhandled Com Exception...
    "Enum 'BoPermission' not found"
    SAPbobsCOM.Users oUsers;
                        oUsers = (SAPbobsCOM.Users)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUsers);
                        if (oUsers.GetByKey(oCompany.UserSignature))
                            oUsers.UserPermission.PermissionID = strPermissionID;
                            oUsers.UserPermission.Permission = SAPbobsCOM.BoPermission.boper_Full;                        int Status = oUsers.Update();                        
    Thanking You,
    MadhuSudhana Rao.G

    Madhu,
    The version of SAP Business One 8.8 SP 00 PL00 you are using is not the GA released version from SAP.  The GA released version is SAP Business One 8.8 SP00 PL10.  There have been many updates between the version you have and the GA release.  Please download and update to PL10 and retry your code.
    Eddy

  • PCo - COM exception

    Hi,
    Background:
    PCo connected to Matrikon OPC DA successfully (DA 2.05A).
    Issue:
    I am trying to connect PCo to SV OPC DA server (DA 2.05A).
    PCo has similar configurations for SC OPC as Matrikon OPC.
    Error obtained: COM Exception [HRESULT = -2146959355]  from LegacyOpcWrapper
    More Info:
    PCo V 2.0.1.8
    Able to browse subscription Items
    successfully connected to SV OPC DA with Matrikon Explorer.
    Need help to overcome the issue, thank you for your time
    - Ajay

    Where is the error being thrown, on agent instance start or on on an instance notification event?
    - Agent Instance Start
    Place the debug level of the agent instance into Verbose and see if there are any additional messages in the log that could indicate the issue.
    - Error happens when establishing a connection
    Are you running both a 2.05 DA agent connection (SV) AND a 3.0 DA agent connection (Matrikon) within the same OPC source agent? If so, try to create a new source agent for just the SV OPC server and try starting it without starting the Matrikon-connected OPC Source agent.
    - I have been trying the same for a while, no luck
    What is the full name of the OPC Server, and a web site link?
    - http://www.opcfoundation.org/Products/ProductDetails.aspx?CM=1&RI=8907&CU=1
    In the DCOM Config ... what i have noticed is the application starts as current user, instead of that if it can be setup as service it might work, I will talk to the SCADA team and post an update.
    Thanks Steve,
    - Ajay

  • COM exception: IDispatch error #19808 (0x80044f60): []

    While running a cralwer, I've got below error message from PTSpy.
    When I look at TCPTrace, I could see running well until getDocumet calling.
    but after calling getDocument, PTSpy shows me below com exception message.
    ===========================================================================
    [TRACE, PID 1744, TID 2232, 18:11:07 in WEBDOWNLOADERPARALLEL.DLL] Error in CPTHttpRequestParallel::get_Response. The request is not yet finished. The request could not resolve the host..[ERROR, PID 1744, TID 2232, 18:11:07 in WEBDOWNLOADERPARALLEL.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [The request is not yet finished.  The request could not resolve the host.] (981,I:\Released Code\4.5ws\TopLevel\ProductCode\Utility\WebDownloaderParallel\PTHttpRequestParallel.cpp)[TRACE, PID 1744, TID 2232, 18:11:07 in WEBDOWNLOADERPARALLEL.DLL] deleting pHTTPRequest[ERROR, PID 1744, TID 2232, 18:11:07 in SOAPPROVIDER.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [] (648,I:\Released Code\4.5ws\TopLevel\ProductCode\Extensibility\Accessors-Providers\SOAPProvider\PTSOAPProvider.cpp)[ERROR, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [] (419,I:\Released Code\4.5ws\TopLevel\ProductCode\Server\PlumtreeDLL\PTDataSource.cpp)[TRACE, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] *** Caught COM exception in CPTCrawlerState::ProcessDocumentNode in call to IPTDataSource::ImportDocument.[TRACE, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] *** COM exception: IDispatch error #19808 (0x80044f60): [][TRACE, PID 1744, TID 2232, 18:11:07 in PLUMTREE.DLL] logmsg: (2232) Aborted Card creation for document: _____ _____ ___ . Import error: IDispatch error #19808 (0x80044f60): [] (2)
    ============================================================================
    Any idea on this?
    Thanks,
    young-jin

    I'm crawling SQLDatabase. Actually, in that DB, there are indexed text which is already indexed from the other backend system.
    The getDocument method is returning the url that a text is located in the other backend system.
    I'm not using DocFetch, but now I think I have to use that.
    Thank you for your helping
    -Young-Jin

  • COM Exception while using CWGraph controls

    Hi,
    I am trying to use activeX controls(AxInterop.CWUIControlsLib.dll, AxInterop.CW3DGraphLib.dll) provided by NI in my sample application (wriiten in C#) but I am receiving COM exceptions after the activeX controls gets instantiated.
    Has anyone encountered such a problem before. Any help will be highly appreciated

    I am trying to migrate a vb6.0 project which is using a CWGraph control to C# application. The installation of the vb6.0 application also adds cw3dgrph.ocx ,cw3dgrph.ocx and cwanalysis.ocx controls in System32 folder and I am referencing the same control in the C# application and trying to access the CWGraph control (C# itself creates the wrapper for this ActiveX controls:AxInterop.CW3DGraphLib,AxInterop.CWUIControlsLib,etc).
    When I enable the CLRExceptions from the Debug menu in Visual studio and run the code , an unhandled exception of type COMException occurs without any description about th exception(it displays Unknown Error). everything runs fine if I disable the CLRException from debug menu.

  • Error while deleting list item 0x80131904 com exception in sp 2010

    We are getting below error on production server,on development and test server its working fine.There is Application page to fill employee goals for appraisal,when user tries to save in draft they are experiencing issue that goals are deleting and not save.when
    we check in production log we are getting 'COMException'   
    ExceptionMessage: '<nativehr>0x80131904</nativehr><nativestack></nativestack>' .
    01/21/2014 18:57:05.26  w3wp.exe (0x3D98)       
    0x29FC  VFS Performance Management Syst      
    PMS Error           
    9999               
    Unexpected       Error in PMS H2 Self Evaluation  
    ExceptionType: 'SPException'   ExceptionMessage: ''  
    StackTrace: '   at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)      
    at Microsoft.SharePoint.Library.SPRequest.DeleteItem(String bstrUrl, String bstrListName, Int32 lID, UInt32 dwDeleteOp, Guid& pgDeleteTransactionId)      
    at Microsoft.SharePoint.SPListItem.DeleteCore(DeleteOp deleteOp)      
    at Microsoft.SharePoint.SPListItem.Delete()      
    at VFS.PMS.ApplicationPages.CommonMaster.DeleteCompetenciesDraft(Int32 appraisalPhaseId, String currentUser, String listName)      
    at VFS.PMS.ApplicationPages.Layouts.H2initial.SelfEve.SaveCompetenciesDraft(Int32 appraisalID, Int32 appraisalPhaseId, String listName)      
    at VFS.PMS.ApplicationPages.Layouts.H2initial.SelfEve.<btnSave_Click>b__0()      
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()      
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)      
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)      
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)      
    at VFS.PMS.ApplicationPages.Layouts.H2initial.SelfEve.btnSave_Click(Object sender, EventArgs e)'  
    Source: 'Microsoft.SharePoint'   TargetSite: 'Void HandleComException(System.Runtime.InteropServices.COMException)'  
    Inner exception:   ------------------------------------------------------------   
    ExceptionType: 'COMException'    ExceptionMessage: '<nativehr>0x80131904</nativehr><nativestack></nativestack>'   
    StackTrace: '   at Microsoft.SharePoint.Library.SPRequestInternalClass.DeleteItem(String bstrUrl, String bstrListName, Int32 lID, UInt32 dwDeleteOp, Guid& pgDeleteTransactionId)       
    at Microsoft.SharePoint.Library.SPRequest.DeleteItem(String bstrUrl, String bstrListName, Int32 lID, UInt32 dwDeleteOp, Guid& pgDeleteTransactionId)'   
    Source: ''    TargetSite: 'Void DeleteItem(System.String, System.String, Int32, UInt32, System.Guid ByRef)'   
    8f922003-389d-4edf-b75f-7e69c5818a7a              

    Hi,
    According to your post, my understanding is that you got ‘0x80131904’ error on production server.
    The issue was caused by mismatched versions between the SQL Server and SharePoint.
    In order to get the database stored procs up to the right version, the Database needs to be connected before the upgrade.
    In addtion, you can install august 2011 CU patch:
    http://support.microsoft.com/kb/2553048/en-us
    Here is a similar thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/9f1349b9-d8fa-4cfd-88e5-f24d67646c4e/error-exception-from-hresult-0x80131904-when-deleting-an-item-from-a-list?forum=sharepointgeneralprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for