Problem while parsing Rulebase Excel Spreadsheet

Hi All,
My program was running using OPA Determination Engine libraries.
Apparently when trying to parse a rulebase excel spreadsheet, the OPA regards one attribute as unknown even though it has been listed as empty in the excel spreadsheet's cell.
My Data has this information
field1 = XXX
field2 = YYY
field3 = ZZZ
field4 = empty
The excel spreadsheet contains this information
row1: field1 is empty, field2 is empty, field3 is empty, field4 is AAA
row2: field1 is XXX, field2 is YYY, field3 is ZZZ, field4 is empty
Decision Report:
Can't draw conclusion because
field1 = XXX
field2 = YYY
field3 = ZZZ
and field4 is unknown
Any suggestion for this?

I think you are making this more complicated than it needs to be. Based on your description above of the logic, I wouldn't even be using Excel at all, and I wouldn't be doing it as a rule table in Word either.
Using dummy attribute text which I'm just making up for the purpose of this example, it sounds like you're logic can be represented with the following simple regular Word rule:
the person is happy if
the first text variable = "AAA" or
all
.....the first text variable = "XXX" and
.....the second text variable = "YYY" and
.....the third text variable = "ZZZ"If you write it as a regular Word rule like this, then the conclusion WILL evaluate to TRUE if the only data you provide is the following:
the first text variable = "XXX" and
the second text variable = "YYY" and
the third text variable = "ZZZ"
[As an aside... depending on what you're doing and what your real rules actually are, you might also want to separately stick a Boolean attribute over the top of each of these variable attributes and then use the Booleans in the rest of the rulebase. However, I wouldn't bother with the extra Booleans if you're just having a bit of a play around with OPA, or if you're just building a simple little demo.
If you are doing anything more than just having a bit of a look at OPA, then I strongly suggest that you consider some proper OPA training anyway.]

Similar Messages

  • CLIENT_OLE2 date formatting problem while reading from Excel

    I have installed webutil package and tested that everything works by running webutil_demo as well as WU_TEST_106 form. Then I had implemented reading from Excel sp. sheet using Oracle note 813535.1 (This note has OLE2 code sample on how to read an Excel file). Everything fine till now. The problem started when I have a date fiield to read from Excel. The field where the value is going to has format mask of 'DD-MM-RRRR'. When the date is displayed in the form, it shows '01-AUG-0009' instead of '01-AUG-2009'. I tried changing the date format to different formats in Excel but no go. I found one blog which stated that treat the date as number and use e.g. "cell_date_value:=to_date('01/01/1900','DD/MM/YYYY')+client_OLE2.get_num_property(cel,,'Value')+2" but it too did not change the display. Then I tried debugging and stepping through the code..the only thing I noticed that OLE2 function displayed the date with 2 digit year as 09 and when the code completed execution, the date went back to '01-AUG-0009'. Casting with 4 digit year at every step in the code is not helping to change final date display correctly. Any idea?!!!

    Hi,
    While reading the date column from excel, try using
         m_col_val := OLE2.get_char_property(Workcell,'Text');
    Instead of
         m_col_val := OLE2.get_char_property(Workcell,'Value');
    I think you problem will be solved...
    hello...i meant client_OLE2
    Regards
    Dora
    Edited by: Dora on Sep 16, 2009 11:05 AM

  • Problem while opening the excel files

    Hi
    In my system , i have excel reports in my server disk . And i am opening the excel files through an action class like /viewReport.do?id=23 .....and thus from the action class i open my excel file .
    After opening one excel file , i try to open another excel by clicking that link , then my system often hangs else excel shows an error saying "a report with name viewReport.do is already open " even though both of these files are different on the server
    How can i avoid this ??
    The reason why i am opening the excel file through an action class is , i need to perform some operations before opening that excel report
    i tried by setting the
    response.setHeader("Content-disposition","attachment; filename=myWorksheet.xls");
    and i kept on changing the names but that doesnt work
    Can any one let me know how to go abt this ??

    Hi Sir,
    I found you posted the issue in the
    APS.NET forum, and you seems use some code to open the file. Have you tried the last link in the thread?
    Then, let's do some test to narrow down the issue.
    I notice that you are using Office 2010, does the issue occur only with 'Reachlocal.xlsx' or every existed file?
    If every Excel file has the issue, please try the following methods:
    Open the file in
    safe mode.
    Repair Office 2010.
    On the other hand, this problem might be caused by malware on the affected machine. There are now two known variants of malware which causes this problem: Win32/Crilock.A and
    Win32/Buma!rts. They have both been identified as a new family of
    ransomware.  
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx                                   
    If you have any further assistance about code/program, I recommend you post the question to MSDN forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    Regards,
    George Zhao
    TechNet Community Support

  • Currency format problem while exporting as excel

    Hi
    I have to create a report for which the currency format should be $#,##0.00 and -$#,##0.00 for negative numbers.
    In the text form field of rtf template, I have selected number format and removed the portion ;($#,##0.00) from $#,##0.00;($#,##0.00).When I view the report as HTML the numbers are showing in proper format.($#,##0.00 or -$#,##0.00).But when the report is exported as excel ,the negative number format changes to ($#,##0.00) in red color.
    Can anyone tell me how avoid this problem?
    Thanks in advance
    Naveen

    I think this is an Excel issue - you can right mouse click in Excel the column header and "Format Cells>Text"
    You could also append a ' character to your numbers in BI Answers ie: '6035784010491980 which should give you the correct format in Excel.
    eg. CONCAT( '''', CAST ( '6035784010491980 AS CHAR) )
    There is also an MS Office plug in available for OBIEE this may give you further options.

  • Problem with opening an excel spreadsheet

    Hello,
    I need to open an excel sheet when the user clicks on a link.
    When I run the code I get SAVE/ DOWNLOAD dialog box.
    Is it possible to get around the SAVE/DOWNLOAD dialog and open the excel sheet directly.
    In other words, is it possible to download the excel sheet to a temp directory and open it from there.
    Please help,
    Thanks in advance.

    Hi,
    I am able to open the excel sheet successfully from the web application but what is happening is that when it opens it sets the title of the excel sheet as the URL from where it was downloaded.
    The problem with this is that the macros within the excel sheet are not working.
    If i save the excel sheet and give it a name, the macros are working.
    So, obviously it is something to do with the title.
    Is it possible for me to pass the filename along with the code to open the excel sheet.
    Thanks for your help so far.

  • Problem while opening an excel file

    Hi
    I am trying to open an excel file by clicking a link where it goes to action class and then sets the content type to excel and I am opning it from there�but the strange thing is that a file download opens with open/save/cancel but in the same window but it is showing a warning in the dailog box(windows warning which comes as an exclamatory mark) saying "This type of file could harm your computer if it conatins malicious code" and on cliking open it shows a dialog saying "Could not open http://localhost:8080/context/myaction.do?fileName=3.xls" .Dont know why its trying to opne my action url rather than it should look for 3.xls in my folder
    Any clue on this would be helpful

    Hi,
    Try saving the file and then check if extension is xls. If you are not able to do anything (open, save), try to call the same application (file), from other machine, as sometimes browser gives the problem.
    If still problem occurs, then copy paste the code for setting the content type here.
    Best of luck,

  • Problem while parsing xml file

    HI
    I have a xml file which looks like this
              <--A>
    <ID>ABCD</ID>
                   <--B>
                   <Amount1>1</Amount1>
                   <Amount2>2</Amount2>
                   <--/B>
                   <--B>
              <Amount1>3</Amount1>
                   <Amount2>4</Amount2>
                   <--/B>
              <--/A>
              <--A>
    <ID>EFGH</ID>
                   <--B>
                   <Amount1>5</Amount1>
                   <Amount2>6</Amount2>
                   <--/B>
                   <--B>
              <Amount1>7</Amount1>
                   <Amount2>8</Amount2>
                   <--/B>
              <--/A>
    (Appended -- before tags so that its displayed properly here)
    I have to parse through this xml file and for each ID,i have to display corresponding amounts.As we can see //A represents each row.
    I have written code like this.
    l_clob := '<<<XML Content as shown above >>>;
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are no longer needed.
    dbms_xmlparser.freeParser(l_parser);
    l_nl1 := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'//A');
    FOR cur_rec IN 0 .. dbms_xmldom.getLength(l_nl1) - 1 LOOP
    l_n1 := dbms_xmldom.item(l_nl1, cur_rec);
    lv_id := dbms_xslprocessor.valueOf(l_n1,'ID/text()');
    l_nl2 := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'//B');
    FOR cur_rec2 IN 0 .. dbms_xmldom.getLength(l_nl2) - 1 LOOP
    l_n2 := dbms_xmldom.item(l_nl2, cur_rec2);
    lv_Amount1 := dbms_xslprocessor.valueOf(l_n2,'Amount1/text()');
    lv_Amount2 := dbms_xslprocessor.valueOf(l_n2,'Amount2/text()');
    dbms_Output.put_line (lv_id ||lv_Amount1|| lv_Amount2 );
    end loop;
    end loop;
    The problem i am facing is , in the second loop i want to disdplay only values corresponding to ID which is coming in first loop.But when i give //B,its going through all the values in xml file under //B but not going through //B part of each record fethed in loop1.
    How can we display Each ID and corresponding amounts only(Not all the Amounts in XML File).
    Thanks
    Pramod
    Edited by: 842802 on Mar 21, 2011 9:27 AM

    No need for Pl/SQL:
    with t as (
    select '<A>
    <ID>ABCD</ID>
    <B>
    <Amount1>1</Amount1>
    <Amount2>2</Amount2>
    </B>
    <B>
    <Amount1>3</Amount1>
    <Amount2>4</Amount2>
    </B>
    </A>
    <A>
    <ID>EFGH</ID>
    <B>
    <Amount1>5</Amount1>
    <Amount2>6</Amount2>
    </B>
    <B>
    <Amount1>7</Amount1>
    <Amount2>8</Amount2>
    </B>
    </A>' x from dual
    select  id,
            amount1,
            amount2
      from  t,
            xmltable(
                     '$d/D/A'
                     passing xmltype('<D>' || x || '</D>') as "d"
                     columns id varchar2(10) path 'ID',
                             B xmltype path '/'
                    ) y,
            xmltable(
                     '$d/A/B'
                     passing y.b as "d"
                     columns amount1 number path '/B/Amount1',
                             amount2 number path '/B/Amount2'
                    ) z
    ID            AMOUNT1    AMOUNT2
    ABCD                1          2
    ABCD                3          4
    EFGH                5          6
    EFGH                7          8
    SQL> SY.

  • Problem while exporting to excel

    Hi,
    I have run a query from query designer and when I try to export it to excel,It is not giving me any data in Excel.It is neither showing an error no running for a longer time.It opens an excel and gives  "ExternalData_1" in the excel and stops.
    Can you please give some pointers to solve this.
    We are using 3.5
    Thanks in advance!!!
    Bhagyarekha.

    Post Author: satyanat
    CA Forum: Exporting
    Gayatry,
    Did you try the following Export options?
    1. Export Page Headers and Footers: On Each Page
    2. Create Page Breaks for Each Page
    When exported with these options the page Header and Footer section was exported as it was in the report.
    Hope this helps you.
    Regards,
    Natarajan

  • Problem while parsing xmlString in jsp using JSTL

    HI, I am not able to display data in jsp page that I have stored in string variable in XML form.
    I want to print xmlString data in jsp using jstl.
    probably i might have to parse it but i don't have idea . Can any one help me PLZ??

    I managed the code but getting following error
    org.apache.jasper.JasperException: javax.servlet.jsp.JspException: Content is not allowed in prolog.
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Content is not allowed in prolog.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:854)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
         org.apache.jsp.xml.test_jsp._jspService(test_jsp.java:106)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
         com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
         com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSource(ParseSupport.java:227)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSourceWithFilter(ParseSupport.java:193)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseReaderWithFilter(ParseSupport.java:199)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseStringWithFilter(ParseSupport.java:206)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.doEndTag(ParseSupport.java:138)
         org.apache.jsp.xml.test_jsp._jspx_meth_x_parse_0(test_jsp.java:168)
         org.apache.jsp.xml.test_jsp._jspService(test_jsp.java:82)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Problem while parsing xml file using DOM

    I have a xml file NewXML.xml. When I parse it I'm not getting the expected output: I'm trying to get only the value of the "name" tag. When I tried getElementByTagName("name"), I'm not getting the expected result.
    Here is my xml file based on a schema
    <?xml version="1.0" encoding="UTF-8"?>
    <student xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NewXMLSchema.xsd">
    <name>john</name>
    <id>1000</id>
    </student>
    Coding:
    public static void main(String argv[])
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    Document document ;
    try {
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( "NewXML.xml" );
    NodeList nodeList = (document.getElementsByTagName("name") );
    System.out.println(nodeList.getLength()+" node list "+nodeList.item(0));
    System.out.println(nodeList.item(0).getNodeValue());
    NodeList nodeList1 = nodeList.item(0).getChildNodes();
    System.out.println(nodeList1.getLength()+" node list "+nodeList1.item(0));
    System.out.println(nodeList1.item(0).getNodeValue());
    When I ran the above coding I got:
    1 node list [name: null]
    null
    1 node list [#text: name]
    name
    What should I do to get the result "john" inorder to change it
    Thanks
    rathi

    System.out.println(nodeList.item(0).getFirstChild().getNodeValue());

  • Problem while opening Excel through OLE

    Hi Friends
    I am facing a problem while opening an excel file through OLE. it is working fine in SAP ECC 5.0, but the problem is in ECC 6.0.
    I am adjusting the cells for auto fit. I have written the code like below.
    CALL METHOD OF e_appl 'CELLS' = e_cell.
      CALL METHOD OF e_cell 'EntireColumn' = ole_columns .
      CALL METHOD OF ole_columns 'AutoFit'.
      set property of e_appl 'VISIBLE' = 1.
    if I take out the adjustment part it is working fine for this program, rest other programs even if I have this code, they working fine.
    When I am executing the statement set property of e_appl 'VISIBLE' = 1. the return code is coming as 2.
    Could anybody please help me to overcome this problem.
    Thanks
    Praveen

    In ECC 6.0, if the worksheet is portedcted SAP unable to open that sheet, now we have taken out this option so it is working.

  • Cannot Edit Embedded Excel SpreadSheets

    There is a user at our company who cannot open Excel 2010 spreadsheets that have been embedded into Word 2010 documents. Sometimes the embedded Excel Spreadsheet will open with a Picture Tools menu ribbon. Other times he gets an error
    message that Excel is not installed on his computer. When other users open the same embedded objects on their computers they do not have any problems. I have replaced his computer but the problem continues with the new computer. I have also logged onto his
    computer with a different user account and I do not have a problem opening the embedded Excel spreadsheets. The user has Administrator rights on his own computer. We all have Windows 7 Enterprise and Office 2010 Professional Plus installed on our computers.
    Thanks in advance for any assistance with this issue.

    Hi,
    Try this:
    ============
    1.      
    Go to Excel.
    2.      
    Click File > Options >
    Advanced, then in the “General” section, remove the tick from “Ignore other applications that use Dynamic Data Exchange (DDE)“.
    For the general troubleshooting, you may refer to:
    Troubleshoot linked objects and embedded objects
    http://office.microsoft.com/en-us/word-help/troubleshoot-linked-objects-and-embedded-objects-HP005189818.aspx
    Best Regards,
    Sally Tang
    TechNet Subscriber Support in forum
    If you have any feedback on our support, please contact
    [email protected]   

  • Moving Excel Spreadsheets from Work to Home

    I have had this problem for the past month. The problem is when moving Excel
    spreadsheets from home to work only (1) out of (6) will not open. It says there is not enough memory. The other spreadsheets are larger so I know the allocation is ok. The work computer is an IMac running system 9.2, the home
    computers are a G4 IMac and a G3 IBook. Both of these are running Tiger 10.4.4. These spreadsheets open on both of these Tiger computers.
    I use a 128MB USBDrive for moving files back and forth. One thing I have noticed recently is that when opening at work the Icons say PC. I have a newer version of Excel at home, cannot load that version at work because it is not compatible with system 9.2.
    Help????????

    Hi, klugej -
    I don't use OSX, so can't suggest a method there. However, in OS 9, try highlighting the icon of the drive (click on it once), then select Erase from the Special menu. With luck, that will offer one of the Mac formats (probably Mac OS Standard) as well as MS-DOS.

  • Troubleshooting issues opening Excel spreadsheets

    Platform: SP 2010 service pack 2. Office 2010, windows 7 on user laptop , IE 9 32 bit browser.
    several users started calling recently about problems opening Excel spreadsheets. They are on different SharePoint sites on the same site collection.
    No changes/patches have been made to SharePoint.
    No changes to the site collection features of configuration of which I am aware.
    The site collection is configured that users clicking on a doc library item opens in the application associated with the file type.
    When I, as a farm admin (which I need to do due to permissions), and I click on the Excel documents on person 1's troubled site, they open in Excel as expected.
    When the person reporting the problem clicks on the Excel spreadsheets, he gets one of two behaviors.
    On the first paginated page (documents 1-31) , if he clicks on an Excel document, two instances of the Excel application opens.
    On page 3 (documents 61-90) when he clicks on an Excel document, the excel data appears within the web page itself with a button at the top that says "Open in Excel". When he clicks that, he gets an error box that states
    To open this workbook, your computer must have a version of Microsoft Excel installed and your web browser must support opening files directly from Excel in the browser.
    This of course is interesting since on the first page, clicking on one of the documents uses the version of Excel installed and opens the file directly.
    None of these behavior, of course, can I duplicate.
    And, just to add another confusing item to the list, if this person goes to a different doc library and everything works fine.
    So this does not seem to be related to add-ons (why would add-ons act differently between sites?).
    The sites that I have examined all have the same advanced setting regarding opening the document in the client app rather than the browser.
    I have not yet started the process of having a repair on Office 2010 be broken in a way that on different pages different behaviors occur?

    Well, after the admins performed the repair on Office 2010, the user was able to click on Excel workbooks and have them open as expected.

  • Problem while exporting the data from a report to an excel file.

    Hi SAP guru's,
    I have a problem while exporting the data from a report to an excel file.
    The problem is that after exporting, the excel file seems to have some irrelevant characters....I am checking this using SOST transaction..
    Required text (Russian):
    Операции по счету                                    
    № документа     Тип документа     № учетной записи     Дата документа     Валюта     Сумма, вкл. НДС     Срок оплаты     Описание документа
    Current Text :
       ? 5 @ 0 F 8 8  ? >  A G 5 B C                                   
    !   4 > : C       "" 8 ?  4 > : C      !   C G 5 B = > 9  7 0 ? 8 A 8        0 B 0  4 > : C         0 ; N B 0      ! C <       ! @ > :  > ? ; 0 B K        ? 8 A 0 = 8 5  4 > : C
    Can you help me making configuration settings if any?
    Regards,
    Avinash Raju

    Hi Avinash
    To download  such characteres you need to adjust code page to be used during export. You can review SAP note 73606 to identify which code page is required for this language
    Best regards

Maybe you are looking for

  • I want to take my iPhone abroad for a few months, how do I use a different SIM card in my phone?

    I'm travelling around America for two months with a tour company (Trek America) that offer a SIM card that enables cheap calls back home and within the US. What do I need to do in order to unlock my phone to use a different SIM card?

  • Ext. System communicating IDoc's with XI

    Hello, we are trying to connect an EDI-system to XI via the IDoc adapter. We have set up in IDX1 a port (EXTEDI, client 999). We have mapped the client 999 to field MANDT in EDIDC. And set up a Business system that mapps the logical name of the SNDPR

  • Setting up Colour and Black and White in one document

    I hope this is a stupid question. I am creating the school year book for the first time. It is 80 pages with a mixture of black and white pages and colour pages. Do I have to set Indesign up any special way so that when it goes to the printers it wil

  • How can I get iTunes to recognize information imported from media as audiobook vs album?

    I imported a series of audio cd's that contained lecture material into iTunes.  It sees these disks as albums not as a single set of audiobook portions.  Therefore, everytime I listen to a portion of the lecture material, I have to remember exactly w

  • Server Package extractions

    We're just finishing a server and workstation roll out, and I've come back to this thorny issue once again. I'm starting a new thread as I suspect that the original from Feb 06 has fallen off most peoples news readers (then again perhaps not). A brie