XML - On The Fly Report Error-

Hi,
We are using the XML On The Fly report generation option to show the measurement data to our operators while they are testing the products.
But we have experienced that this option isn’t updating the report field in the TestStand Editor or OI correctly during execution when a sub seq. is calling a sub seq (not a abnormal situation).
It looks like that the “ProcessOTFStepResult” in “reportgen_xml.seq” can’t add the “StepResultBody” to the “ResultBody” when the call stack exceed 3 levels.
Is this an Option (adjustable), Limitation or a bug? Is there a solution to this problem?
I have attached an example that show the problem. It’s made in TS 3.1 but the problem is also seen in 3.5. Run it with the sequential model. It shows a dialog in each level of sub sequences, so it’s possible to follow the OTF report generation in the report tab. In the end (when the call stack is increased again all the report items is updated correctly.)
I´m looking forward to hear from you.
Best Regards,
Morten Pedersen
CIM Industrial Systems A/S
Attachments:
OTF Log test.zip ‏86 KB

Lars  -
As it is designed today, the logger requires that the SQL statement contain an INSERT command. If it is not found, I do not believe that on-the-fly logging will work if the schema defines a foreign key to the UUT record.
Now, I have not tried this, but if the step result statements in the schema do not define their UUT_RESULT columns as foreign keys, the logger will just assume that they are data that you will provide, and it will not attempt to log a placeholder for the UUT record. So I believe you can then set the expression for the UUT_RESULT in the step results to assign the UUT key and the logger will just log it as a value. The database schema will likely have a constraint, but if you pre-create the record as you were suggesting, the constraint will be satisfied when you log the step result. Lastly when the UUT completes, the logger will just log the values using the UPDATE statement that you supplied.
Note that we already do have a internal suggestion/problem tracking issue (ID 47056), specifically to add support to log more than just the key for the UUT result and parent sequence call steps, but we have not determined how easy that would be and whether there are any backwards compatibility issues.
Scott Richardson
National Instruments

Similar Messages

  • Modifying Test Report with on-the-fly reporting

    Hello,
    I am using teststand3.0 and trying to use on-the-fly reporting. The problem I am getting is report is adding begin sequence and end sequence tags to the report. Is there any way that I can remove these tags. The sample report looks like this
    Begin Sequence: MainSequence
    (Unsaved Sequence File)
    Message Popup: Failed
    Button Index: 0
    End Sequence: MainSequence
    End UUT Report
    I want to remove the text in italics. I have removed this one by editing AddSequenceResultToReport sequence, when I didn't used the on-the-fly option. But now the tags with on-the-fly option were inrtoduced by "Process Step Result" step of "ProcessOTFStepResult" sequence. And my sequence stack is upto 5 sub sequences. So when a step fails, it report prints 5 sets of begin and end tags, which I wan to avoid. Any help???
    Thanks
    mama007

    Hi,
    You need to modify the InitializeOFT sequence found in the reportgen_html.seq or reportgen_txt.seq. You will see two steps. One the template for the Sequence Header and the other for the Sequence Footer.
    For example:
    Locals.SequenceHeaderTemplate = "<H5>" + ResStr("MODEL", "RPT_BEGIN_SEQUENCE") + "%Sequence%\n<BR>(%SequenceFile%)<BR></H5>\n"
    The SequenceHeaderTemplate is a string built up to create "Begin Sequence: MainSequence". You probably can spot the various parts.
    Hope this helps.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Error On-The-Fly with ProcessOneResult [Error Code: -2147024882]

    TestStand 4.2.0.134
    Have you seen this error before?
    I have a top sequence that starts 32 executions via a process model with On-The-Fly activated.
    It generates maybe 1 or 2 results per execution every 5-10 minutes and the execution is set to run for 48 hours.
    On 32 UUTs, 22 had the error:
    14 failed at the same time (at the 20th hour approx).
    6 failed at the same time (at the 26th hour approx.)
    2 failed at the same time (at the 46th hour approx.)
    10 passed successfuly.
    An error occurred calling 'ProcessOneResult' in 'ITSOnTheFlyReportGen' of 'zNI TestStand On-The-Fly Report Generator' Source: TSOTFRG [Error Code: -2147024882, User-defined error code.]
    Do you have any ideas what I should look for or have you seen this error code before?
    Are 32 execs for 48 hours might be too much for TestStand?
    The log file is 769 kb at the end when the 48 hours run successfully.
    Thank you.

    Hi MatLaroche,
    This error that you are receiving is most likely due to running out of memory on your machine as it is filling up with these hours and hours of report data.  How much RAM do you have on this machine and are you running a 32-bit or 64-bit operating system?  You could run a memory monitor which logs the memory usage over this period to observe if this is in fact correct.  One solution to consider will be to enable the Conserve Memory and Only Display Latest Results feature within report options.  This feature is described here:  http://zone.ni.com/reference/en-XX/help/370052J-01/tsref/infotopics/db_report_options_contents_tab/.  As described in the help documentation, you must enable the Discard Results or Disable Results When Not Required by Model option to use this as well.
    Justin D
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Custom xml report errored with :emsg:was terminated by signal 4

    Friends,
    one of the custom report errored out with the below error:
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    stat_low = 84
    stat_high = 0
    emsg:was terminated by signal 4
    Program was terminated by signal 4
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 5443587.
    when browsing metalink I came across few notes and chmged the out put of Active users report to XML which also errored out, the same report was running fine in other environments. we just freshed this from PROD and nothing was changed.
    any ideas
    Thanks.

    Hi Guru,
    Application version is 11.5.10.2 and DB 10.2.0.3 running on AIX, Yes it is working on other test environments and production.
    here is the error from OPP log
    [3/18/10 10:35:17 AM] [UNEXPECTED] [2908896:RT5443609] java.io.FileNotFoundException: /<path>/o5443609.out (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:129)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [3/18/10 10:35:17 AM] [2908896:RT5443609] Completed post-processing actions for request 5443609.
    Looks like the output file was not generated as the request errored out.
    Thanks.

  • XML authoring on the fly, best practices

    I understand the basics of XML.
    The technologies: XML itstelf, DTDs, XSL. I also understand a bit about implementations. It appears to me that the majority of the technologies is for handling XML. (Not surprising!)
    My question pertains to generating XML on the fly programatically.
    Specifically, what is the best method to do it? I'm not looking for any introspective generation methods. Just something along the lines of the startDocument, startElement type of stuff with some error detection if I try to write some bogus XML.
    I see that I can use org.apache.crimson.tree.XmlDocumentBuilder (below) to generate a document, but that has the drawback of generating an in-memory DOM, which I'm just goung to write to a stream anyways.
    import org.apache.crimson.tree.XmlDocumentBuilder;
    public class Main {
        public static void main(String[] args) throws Exception
            XmlDocumentBuilder documentBuilder = new XmlDocumentBuilder();
            documentBuilder.startDocument();
            documentBuilder.startElement(...
            documentBuilder.endElement(...
            documentBuilder.endDocument();
            // ***I don't need this intermediate document ***
            documentBuilder.getDocument().write(System.out);
    }

    This pretty much sums it up:
    I'll post it here in case anyone is interested.
    http://www.javazoom.net/services/newsletter/xmlgeneration.html
    The last case is the one I was interested in.

  • How do I display on-the-fly generated XML on a web page using DW CS4 Spry regions?

    On a main web page I'm trying to display formatted data from an ASP page that generates XML on-the-fly from a query.
    When I run the ASP page from the browser, the XML formatting of the data works. But when I run the main web page, the data doesn't display.
    I'm using  DW CS4 Spry regionsto display the data on the main page from the XML data generated by the ASP page. Here's the main page code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
    <html>
    <head>
    <script type="text/javascript" src="SpryAssets/xpath.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryData.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryUtils.js"> </script>
    <script type="text/javascript">var A1D1xml = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.asp", "tests/test");</script>
    <title>Test XML Main</title>  
    </head>
    <body>
          <div id="A1D1xml" spry:region="A1D1xml">
                                    <table id="A1D1">
                <tr>
                <th>ID</th>
                <th>Last Name</th>
                <th>Final Status</th>
                </tr>
                <tr spry:repeat="A1D1xml">
                       <td>{acr_id}</td>
                    <td>{acr_lastName}</td>
                    <td>{acr_final_status}</td>
                </tr>
                  </table>
             </div>
    </body>
    </html>
    Here's the code for the page that generates the XML: A1D1ACRs_testWxmlCode.asp
    <html>
    <%
    set objConn=server.CreateObject("ADODB.Connection")
    objConn.Open application("web_test")
    set rs = objConn.Execute( "SELECT acr_id, acr_lastName, acr_final_status from acr_records_grid_view where acr_changeOption = 'A1D1'")
    Response.ContentType = "text/xml"
    Response.AddHeader "Pragma", "public"
    Response.AddHeader "Cache-control", "private"
    Response.AddHeader "Expires", "-1"
    %>
    <?xml version="1.0" encoding="utf-8"?>
    <tests>
      <%While (NOT rs.EOF)%>
                    <test>
                                    <ID><%=(rs.Fields.Item("acr_id").Value)%></ID>
                                    <acr_lastName><![CDATA[<%=(rs.Fields.Item("acr_lastName").Value)%>]]></acr_lastName>
                                    <acr_final_status><![CDATA[<%=(rs.Fields.Item("acr_final_status").Value)%>]]></acr_final_s tatus>
                    </test>
        <%
                    rs.MoveNext()
                    Wend
      %>
    </tests>
    <%
    rs.Close()
    Set rs = Nothing
    %>
    </html>
    Thanks.

    Thanks, but no; I'm using the correct case and folder.
    With this code on the main page, The region flashes the table column header names
    and the code as written for the spry repeat; then instantly disappears from the screen.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="SpryAssets/xpath.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryData.js"></script
    <script type="text/javascript">var A1D1x = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.xml", "tests/test");</script>
    <title>Test XML Main</title>  
    </head>
    <body>
          <div id="A1D1" spry:region="A1D1x">
                   <table id="A1D1a">
                <tr>
                <th>ID</th>
                <th>Last Name</th>
                <th>Final Status</th>
                </tr>
                <tr spry:repeat="A1D1x">
                    <td>{acr_id}</td>
                    <td>{acr_lastName}</td>
                    <td>{acr_final_status}</td>
                </tr>
                  </table>
             </div>
    </body>
    </html>

  • Liquid data--how to parse the xml which is generated on the fly

    I am using liquid data for retreiving data from database which I am able to do
    but the problem is that it generates the xml on the fly and prints the response
    in xml format in html document .My need is that I want to parse this xml and use
    the data on need basis in my jsp document.
    I am usig following weblogic workshop 8.1 tags in my jsp :
    <lds:query name="bdemo_cust_info" server="t3://localhost:7001">
    <lds:param name="cust_name" value="<%=\"MCD\"%>"/>
    </lds:query>;
    Please help??
    Thaks and Regards,
    Ajay Jindal

    hi Ajay
    You can create a Liquid Data Control and display it using NetUI - or see the QueryClient
    example in weblogic\samples\liquiddata\ejbAPI and create an XML Bean from the
    result.
    - Mike
    "ajayjidal" <[email protected]> wrote:
    >
    I am using liquid data for retreiving data from database which I am able
    to do
    but the problem is that it generates the xml on the fly and prints the
    response
    in xml format in html document .My need is that I want to parse this
    xml and use
    the data on need basis in my jsp document.
    I am usig following weblogic workshop 8.1 tags in my jsp :
    <lds:query name="bdemo_cust_info" server="t3://localhost:7001">
    <lds:param name="cust_name" value="<%=\"MCD\"%>"/>
    </lds:query>;
    Please help??
    Thaks and Regards,
    Ajay Jindal

  • Incorrect indentation when using on-the-flying report generation and IF statement

    Reproduce steps:
    1. Use teststand version 4.2
    2. Turn ON on-the-fying report option.
    3. Report option -> INclude Step Results->Result Filtering Expression = Exclude Passed/Done/Skipped
    4. My simply code is
    For loop
       If something
          Do something
             If somethingmore
               Call Action and set Record Result = ON
            end if
      End IF
    End loop
    Issue:
        The test report generated for "Call Action" indents every new row. Because it is a long test, this make the test report very difficult to read. If there is a very long test, the test report is  become unreadable.
    Is there a solution for this issue?
    Thanks

    Hi Biet,
    Unfortunately this is a known issue with TestStand, which is documented in the TestStand 4.2.x Known Issues. This occurs in situations where you are using HTML reports with On-The-Fly Reporting and a Result Filtering Expression. To avoid this situation, you can do one of a few things:
    Use a different report format
    Turn off On-The-Fly Reporting
    Not filter the results
    If you must filter results, you can modify the process model slightly to improve the situation. Though this is not a complete workaround, it can help.
    First, configue your Report Options so that you are reporting All
    Results, rather than filtering. Leave On the Fly reporting ON. Next, we
    need to make a modification to your process model. In the process model,
    open the ProcessModelPostResultListEntry sequence. In this sequence,
    select the Process Step Result step, and select the Properties tab. On
    that tab, select the Preconditions category. The text for the
    precondition should be the following by default:
    !Runstate.Root.Locals.ReportOptions.DisableReportGeneration &&
    Runstate.Root.Locals.ReportOptions.UseOnTheFlyReporting
    Now, we want to modify this to be as follows:
    !Runstate.Root.Locals.ReportOptions.DisableReportGeneration &&
    Runstate.Root.Locals.ReportOptions.UseOnTheFlyReporting &&
    Parameters.Result.Status != "Passed" &&
    Parameters.Result.Status != "Done" &&
    Parameters.Result.Status != "Skipped"
    This
    new precondition essentially implements our own filtering. In the
    condition that I have supplied, we will not add entries to the report
    where the status is "Passed", "Done", or "Skipped". (You can add
    additional lines to add additional statuses to filter.) The limitation
    here is that the bug provides incorrect indentation, so the results may still be grouped slightly differently than they would be without the bug.
    I hope this helps!
    John M
    National Instruments
    Applications Engineer

  • Can We Display a Tabular Format in the Decision Report?

    Hello,
    One of my current OPA integrations is replacing an Excel-based application that calculates entity values across rows and columns. In the OPA version, the rows are separated into screens, and the columns - the results - are displayed in a decision report that shows a single value per line, and is not vertically aligned. This makes the results much more difficult to view "at a glance" compared to the legacy solution. I'm wondering if there's any way to incorporate tabular formatting (mainly vertical alignment) within the decision report - does anyone know?
    Thanks!
    - Patrick

    With version 10.3 and the BI publisher integration you can design virtually any format for the decisions you wish. When using BI publisher, a completely customized decision report is quite easy. See the OPM help topic "BI Publisher code for Oracle Policy Modeling" and/or the example that ships with 10.3 for more info. If using the web service to make determinations, you could also post process the XML for the decision report (i.e. using XSLT or code) to produce a table in XML or HTML. Customizing the "default" decision report into a tabular view would probably prove more difficult than the other options.

  • Using JSP to stream XML to a Oracle Report .jsp file

    I created some Oracle Reports for a pdf output. Using these reports can I stream a URL XML file to it from a JSP XML read from a database? I would like to use JSP's to read the datbase and then stream the XML to the JSP report (Oracle Report Server). Is this possible?
    Any help would be great.
    Thanks in advance.

    I was able to hard code a URL running XSQL which created XML and it worked great. Then I created a Oracle Report and saved it as a JSP file. With this JSP file can you feed it XML from another JSP process that reads the database? I looked at using something like inputstream coding in this JSP report file. I am new to JSP's and Java so any examples would be great.
    What I am tring to do is change the JSP file with diffent values each time I run the report and I do not want to read from the database at report generation time. I would like to input the data from a JSP streamed process that would stream the XML to the report JSP with out hard coding the URL in the report data source. Is this possible?
    Thanks for your help in advance.

  • Master Detail report   report error: ORA-20001: Error fetching column

    Hi All,
    I am a newbie in apex and try to create a master detail form, where the detail is displayed as a report.
    After inserting a new row in the master form i like to create the detail. It displays then ORA-01403: no data found
    I also insert in the database table the details. If i want to edit then it shows the following report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    Can anyone help me, because i am struggling for a week with this problem.

    Your problem seems to be related to the usage of primary keys. You have to look into that and get more details.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • On the flying report generate report faster?

    Does On the flying report or database generate report(database) faster? If I select on the flying report,it generate report when sequence run,is it means the generate report in new thread?

    Hi Biet,
    Unfortunately this is a known issue with TestStand, which is documented in the TestStand 4.2.x Known Issues. This occurs in situations where you are using HTML reports with On-The-Fly Reporting and a Result Filtering Expression. To avoid this situation, you can do one of a few things:
    Use a different report format
    Turn off On-The-Fly Reporting
    Not filter the results
    If you must filter results, you can modify the process model slightly to improve the situation. Though this is not a complete workaround, it can help.
    First, configue your Report Options so that you are reporting All
    Results, rather than filtering. Leave On the Fly reporting ON. Next, we
    need to make a modification to your process model. In the process model,
    open the ProcessModelPostResultListEntry sequence. In this sequence,
    select the Process Step Result step, and select the Properties tab. On
    that tab, select the Preconditions category. The text for the
    precondition should be the following by default:
    !Runstate.Root.Locals.ReportOptions.DisableReportGeneration &&
    Runstate.Root.Locals.ReportOptions.UseOnTheFlyReporting
    Now, we want to modify this to be as follows:
    !Runstate.Root.Locals.ReportOptions.DisableReportGeneration &&
    Runstate.Root.Locals.ReportOptions.UseOnTheFlyReporting &&
    Parameters.Result.Status != "Passed" &&
    Parameters.Result.Status != "Done" &&
    Parameters.Result.Status != "Skipped"
    This
    new precondition essentially implements our own filtering. In the
    condition that I have supplied, we will not add entries to the report
    where the status is "Passed", "Done", or "Skipped". (You can add
    additional lines to add additional statuses to filter.) The limitation
    here is that the bug provides incorrect indentation, so the results may still be grouped slightly differently than they would be without the bug.
    I hope this helps!
    John M
    National Instruments
    Applications Engineer

  • Fly reporting recording Begin and End of sub-sequences

    Hi,
    I've opted to use the Fly report option in T.S. 3.5 and have Excluded steps which Pass or are Done.
    I was expecting the test report to show only a report header and any Failed lines.
    However I find that the test report for a Passed unit includes lines recording the start and end of all
    the sub-sequences, e.g. :
    Begin example sub-sequence
    End example sub-sequence
    Any ideas how this detail can be excluded please.
    thanks,
    Gary.

    Gary,
    You would have to modify the relevant  report generation sequence file.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • XML Publisher Report Error

    Hi All,
    I am trying to create an xml report from a standard oracle report. For that, I have copied the standard report's concurrent program and created a custom concurrent program by changing the output from 'Text' to 'XML'. When I run the custom report and took a look at the output of the concurrent program, I see the below error:
    An invalid character was found in text content. Error processing resource 'http://...
    <DESCRIPTION>CD
    t:1em;text-indent:-2em">- <G_ITEM>
    <C_FLEX_ITEM>44-5555-66</C_FLEX_ITEM>
    <DESCRIPTION>ABCD W/O PRRS</DESCRIPTION>
    - <LIST_G_VENDOR>
    - <G_VENDOR>
    <VENDOR>VENDOR 123</VENDOR>
    I see that the error is because, the xml parser has encountered a charecter '/' in the tag 'DESCRIPTION', which it is getting confused with the ending tag.
    The charecter may be deleted if it as the case with the description of one item, but there are numerous item descriptions with / in them.
    If this is the limitation of XML Publisher, could anyone please help me with the approach to create these kind of reports in XML Publisher?
    Thanks in advance.

    Well, I figured out what the problem was.

  • PeopleSoft XML Publisher report error with java.io.FileNotFoundException

    Hi,
    I have created two reports using XML Publisher in Peoplesoft Financials. The two reports are not related and they were submitted for processing separately. The first report completes without any issues. The second report results in error with the following message:
    09.11.17 ..(CIS_POTRPT.XML_FILE.Step03) (PeopleCode)
    [012309_091118154][oracle.apps.xdo.template.FOProcessor][EXCEPTION] IOException is occurred in FOProcessor.setData(String) with 'files/cis_potrpt.xml'.
    [012309_091118500][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.io.FileNotFoundException: files/cis_potrpt.xml (A file or directory in the path name does not exist.)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java(Compiled Code))
         at java.io.FileInputStream.<init>(FileInputStream.java:89)
         at oracle.apps.xdo.template.FOProcessor.getInputStream(FOProcessor.java:1316)
         at oracle.apps.xdo.template.FOProcessor.getXMLInput(FOProcessor.java:1100)
         at oracle.apps.xdo.template.FOProcessor.setData(FOProcessor.java:372)
         at com.peoplesoft.pt.xmlpublisher.PTFOProcessor.generateOutput(PTFOProcessor.java:53)
    2009-01-23-09.11.18.000418 AePcdExecutePeopleCode [174] Exception logged: RC=100.
    Error generating report output: (235,2309) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:51552 Statement:1153
    Called from:CIS_POTRPT.XML_FILE.GBL.default.1900-01-01.Step03.OnExecute Statement:8
    2009-01-23-09.11.18.000617 DoStepActions [1797] Exception logged: RC=100.
    Process 598607 ABENDED at Step CIS_POTRPT.XML_FILE.Step03 (PeopleCode) -- RC = 24 (108,524)
    In the process monitor detail > view log/trace page, the xml file is accessible so the file was generated to a valid directory.
    The weird thing is I was able to run this report without any issues few weeks ago although another user also ran into same error. The PeopleCode step that has been identified is essentially same in the two reports. I checked the app server and the directory does exist as well as the xml files for the two reports. The problem does not occur in test environment, just in production. Any help would be appreciated.

    We encounter the same problem. Did you get the answer for this issue? Thanks in advance.

Maybe you are looking for