Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Internal error when using external data from spreadsheet

    Posted 09/01/17 10:02 AM

    Originally posted by: WEDE_KID


    Hi everybody,

    I am new using OPL projects in IBM CPLEX Studio IDE 12.7.1.

    I've got two problems that might be related to each other:

     

    1. When trying out the example projects that include external data from Excel spreadsheets, e.g. "oil", I realized that I cannot open the Excel data within the application from the project tree. Clicking on the Excel data (oilSheet.xls) leads to the following bug:
    Failed to create Ole Client. result = -2147221164

    2. When running the configuration "Data from spreadsheet" in the example I get an internal error without any discription.

     

    I really hope someone had the same troubles and might be able to help me now. Thanks in advance!

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Internal error when using external data from spreadsheet

    Posted 09/02/17 09:10 AM

    Hi,

    have you tried with oplrun ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Internal error when using external data from spreadsheet

    Posted 09/02/17 09:16 AM

    Originally posted by: WEDE_KID


    Hi Alex,

    I get the same exception when I try to run the IDE from the cmd.

    -> Failed to create Ole Client. result = -2147221164

    Thank you for your help!

    WEDE_KID

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Internal error when using external data from spreadsheet

    Posted 09/02/17 11:04 AM

    Hi

    even without the ide You can open a Command Promptwindow or a UNIX command line and enter the oplrun command manually.

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Internal error when using external data from spreadsheet

    Posted 09/02/17 12:01 PM

    Originally posted by: WEDE_KID


    Hi Alex,

    I tried to run the model manually via the Command promptwindow. Unfortunately I get the same exception:

     

    D:\Programme\IBM\ILOG\CPLEX_Studio1271\opl\bin\x64_win64>oplrun.exe "D:\Eigene Dateien\CPLEX_Studio1271\OPL_Projects\oil\oil.mod" "D:\Eigene Dateien\CPLEX_Studio1271\OPL_Projects\oil\oilSheet.dat"

    <<< setup

    * Note: This OPL data file is not compliant with cloud execution
    Com Exception:
            Code = -2.147.467.261
            Code meaning = Ungültiger Zeiger
    xlsFile = D:\Eigene Dateien\CPLEX_Studio1271\OPL_Projects\oil\oilSheet.xls
    ### UNEXPECTED ERROR ...

    D:\Programme\IBM\ILOG\CPLEX_Studio1271\opl\bin\x64_win64>D:\Eigene Dateien\CPLEX_Studio1271\OPL_Projects\oil

    ...


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: Internal error when using external data from spreadsheet

    Posted 02/27/19 09:36 PM

    Originally posted by: Filipe123


    The same problem for me, as mentioned by WEDE_KID:

    "2. When running the configuration "Data from spreadsheet" in the example I get an internal error without any discription."

     

    >>>Templates with Excel spreadsheet do not work!
    I also tested the example "oil", and it does not work (as shown in the attached image)

     

    Please, does anyone know how to fix this problem?

     

    My system configuration:

    IBM ILOG CPLEX 12.8 (32 bits)
    Office 2010 (32 bits)
    Microsoft .NET 4.7
    Microsoft Visual C++ 2015 (or 2017)
    Windows 10 Pro

    NOTE:

    I used the same installers* (using the same flashdrive) on a pc running Windows 8.1 and everything worked.
    I used the same installers
    * (using the same flashdrive) on my pc running Windows 10 and this problem has occurred.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: Internal error when using external data from spreadsheet



  • 8.  Re: Internal error when using external data from spreadsheet

    Posted 02/28/19 06:54 PM

    Originally posted by: Filipe123


    Sorry, I missed the information about Windows.

     

    My current system configuration (spreadsheet doesn't work):

    * IBM ILOG CPLEX 12.8 (32 bits)
    * Office 2010 (32 bits)
    * Microsoft .NET 4.7
    * Microsoft Visual C++ 2015 (or 2017)
    Windows 10 Pro (64 bits)

     

    My OLD system configuration (everything works):

    * IBM ILOG CPLEX 12.8 (32 bits)
    * Office 2010 (32 bits)
    * Microsoft .NET 4.7
    * Microsoft Visual C++ 2015 (or 2017)
    Windows 8.1 (64 bits)

     

    The problem remains unsolved!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 9.  Re: Internal error when using external data from spreadsheet

    Posted 03/01/19 02:46 AM

    Hi,

    and with oplrun ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer