Logging step parameters to database

I need to port some code from our in-house testexecutive to TestStand. The old testexecutive gives the parameters as Array of doubles to the measurement module witten in C. To port that code, I will create a custom teststep with a additonal container named Parameters as step property for each measurement module. Each parameter will be a number subproperty in that container and will be loaded with the property loader with values for a single teststep.
That works fine so far.
Since the parameters may change from time to time, we want to log them also in the result database (Access).
SoI want to create a additional table named STEP_PARAMETER in the result database schema with the following members :
CREATE TABLE STEP_PARAMETER
ID
COUNTER CONSTRAINT STEP_PARAMETER_CONSTRAINT PRIMARY KEY,
STEP_RESULT INTEGER NOT NULL,
PARAMETER_NAME TEXT,
PARAMETER_VALUE DOUBLE,
CONSTRAINT STEP_PARAMETER_FK FOREIGN KEY (STEP_RESULT) REFERENCES STEP_RESULT (ID)
and add a substep to the steptype which loops over all subproperties of the Parameters Container to save name and value of that subproperty.
However I've found some problems with that design:
To write a generic substep I have to loop over all subproperties of the container without knowing number and names before. How to realize that in TestStand.
And how do I realize a database access in detail. Do I have to open the result database myself. Or are there some ready to use database handles for the result database available in TestStand. And how do I get the get the reference key ( The ID of the step result record for that test step) ?

Hi Markus,
I know exactly what you are talking about. I found myself in a similar situation. I have several devices associated with a test, the number of devices is different from time to time and I needed to store that in the database. One idea was to write my own step that would write this device list to the database but I couldn't get the id from access.
I finally figured out a way to do this. Follow this link to read the entry:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000AF560000&UCATEGORY_0=_8_&UCATEGORY_S=0
There is a difference between what I'm doing and what you will need to do. My array was per UUT, you array is per step is I understand correctly and this my complicate things.
Hopefull
y this can help you get started and give you some ideas. If I think on something else, I will let you know. Anyone out there has another idea?
Marcela.

Similar Messages

  • Unable to connect: incorrect log on parameters. Database Vendor Code: 18456

    I have imported a report into Info View (that has no parameters), I am able to run the report on Demand in InfoView, and I am also able to run the report within the CMC Preview.   I have tried scheduling using the admin account in CMC, through the publishing wizard and also with a authorized users in InfoView.  But anytime I try to schedule the report I get this error.
    Status: Failed 
    Printer: The instance is not printed. 
    External Destination: Mail the instance to " XXX@XXX .com " with a subject of " test ". 
    Data Refresh Settings:  Use the server defaults. 
    Start Time: 11/18/08 3:02:19 PM 
    End Time: 11/18/08 3:02:23 PM 
    Server Used: clr-combr.reportjobserver 
    Error Message: Error in File C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\clr-combr.reportjobserver\~tmp1304574d76168ca.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ] 
    I have made sure that the Reportjobobject is enabled and the server for SMTP email is enabled, and I am pretty sure I have the properties set up correctly within there, we created a email account specifically for crystal.  And that email account is also set up as a user.  I don't know where else to look.
    Please help.
    Thanks

    Hi Ashley
    I would like to suggest you following things with the Report:
    1) Please log in into CMC, go to Report which you want to schedule.
    2) Click on the report and go to Process
    3) Click on the tab Database.
    4) There will be two option to make the entries for database logon required for the Report.
    Please select the appropriate option. Are you able to Preview the report?
    What is the database in use? Please also check the odbc driver settings for that database.

  • Logging SQL parameters in Database Adapter??

    Hi there!!
    We'd like to be able to log all the parameters that are used in a SQL operation in Database Adapters. So far, we've been able to log the query with '?' instead of the real parameters. For example: select t.* from tsupcontact t WHERE t.idsupplier = ? AND t.idproject IS NULL AND (t.iduser = ? OR ? IS NULL)
    But we need to be able to see the actual parameters that are passed to the query (we're having some trouble with the database adapters and we need to see what's really going on the database).
    Any ideas? Thanks in advance!!

    You need to edit the the aslbdebug.xml file in ./user_projects/domains/<your domain>. Then go into the weblogic console and change the levels to debug. You will get lots of debugging. Below are the settings in my file.
    <java:sb-debug-logger xmlns:java="java:com.bea.wli.debug">
    <java:alsb-stages-transform-runtime-debug>true</java:alsb-stages-transform-runtime-debug>
    <java:alsb-alert-manager-debug>false</java:alsb-alert-manager-debug>
    <java:alsb-credential-debug>false</java:alsb-credential-debug>
    <java:alsb-jms-reporting-provider-debug>false</java:alsb-jms-reporting-provider-debug>
    <java:alsb-management-credential-debug>false</java:alsb-management-credential-debug>
    <java:alsb-management-dashboard-debug>false</java:alsb-management-dashboard-debug>
    <java:alsb-management-debug>false</java:alsb-management-debug>
    <java:alsb-management-user-mgt-debug>false</java:alsb-management-user-mgt-debug>
    <java:alsb-module-debug>true</java:alsb-module-debug>
    <java:alsb-monitoring-aggregator-debug>false</java:alsb-monitoring-aggregator-debug>
    <java:alsb-monitoring-debug>false</java:alsb-monitoring-debug>
    <java:alsb-pipeline-debug>true</java:alsb-pipeline-debug>
    <java:alsb-security-wss-debug>false</java:alsb-security-wss-debug>
    <java:alsb-service-account-manager-debug>false</java:alsb-service-account-manager-debug>
    <java:alsb-service-provider-manager-debug>false</java:alsb-service-provider-manager-debug>
    <java:alsb-service-repository-debug>false</java:alsb-service-repository-debug>
    <java:alsb-service-security-manager-debug>false</java:alsb-service-security-manager-debug>
    <java:alsb-service-validation-debug>false</java:alsb-service-validation-debug>
    <java:alsb-test-console-debug>true</java:alsb-test-console-debug>
    <java:alsb-transports-debug>true</java:alsb-transports-debug>
    <java:alsb-uddi-debug>true</java:alsb-uddi-debug>
    <java:alsb-wsdl-repository-debug>false</java:alsb-wsdl-repository-debug>
    <java:alsb-wspolicy-repository-debug>false</java:alsb-wspolicy-repository-debug>
    <java:alsb-security-encryption-debug>false</java:alsb-security-encryption-debug>
    <java:alsb-security-module-debug>false</java:alsb-security-module-debug>
    <java:alsb-sources-debug>false</java:alsb-sources-debug>
    <java:alsb-custom-resource-debug>true</java:alsb-custom-resource-debug>
    <java:alsb-mqconnection-debug>false</java:alsb-mqconnection-debug>
    <java:alsb-throttling-debug>false</java:alsb-throttling-debug>
    <java:alsb-flow-resource-debug>false</java:alsb-flow-resource-debug>
    <java:alsb-flow-transport-debug>false</java:alsb-flow-transport-debug>
    <java:alsb-flow-deployment-debug>false</java:alsb-flow-deployment-debug>
    <java:alsb-debugger-debug>true</java:alsb-debugger-debug>
    </java:sb-debug-logger>

  • Unable to connect: incorrect log on parameters [Database Vendor Code: 1005]

    We have a report that has been in production for some time and ran successfully with no trouble.  However, it now keeps failing with this error and the log on parameters are correct.  The whole error is:
    Error in
    File / usr/local/bobje/data/procSched/mrspas051.reportjobserver/~ tmp2f0ea56e4c88a08d6.rpt: Unable to connect: incorrect log on parameters, Details: [Database Vendor Code: 1005]. 
    Can you tell us why a report suddenly fails with this error?  Thank you.

    We've been having the same issue with scheduled Crystal reports (in BO 3.1).  After much testing, we found that even though reports are set to use the custom database logon credentials, if the name of the original data source changes, it causes the error (Error in File ~tmp1d06ed702daa30.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 1005 ] ).  For example, I publish a report to a production environment.  It has an original data source called "test".  I set it to use the custom database logon.  A user then creates a recurring schedule and it runs successfully.  A developer opens the report in Crystal 2008 and changes the connection to something else, for ex "dev" (in Crystal, this is on the Database menu, select "Set Datasource Location" and pick a different option under My Connections or create a new one), then saves the report to BO.  We promote the report to prod and it overwrites the existing file.  We make sure it's still set to use the custom database connection to prod but the recurring schedules that were set up when the original data source was called "test" immediately begin to fail.  I tried working with support but they didn't really help much.  They had me install the Oracle 11G client on our servers since we were connecting to our 11G repository with the 10G client but that did nothing.  They finally claimed that since our repository database was Oracle 11G R2 (not just 11G), it wasn't supported and they wouldn't go any further.  If anyone's found a solution, I would really appreciate hearing how it was fixed.

  • Change the database log on parameters in the run time with CR10 Delphi2007?

    Hi,
    I'm using crystal report 10 and Crystal VCL for Delphi. How can I change the database log on parameters in the run time?

    You have to use the ConnectBuffer. See [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note for details.
    Also, consider searching the notes database:
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    The search; VCL database crystal, returns a number of notes that may be of use.
    Ludek

  • Unable to connect: incorrect log on parameters. (CR with InfoSet Query)

    Hi ,
    I have created a crystal report with InfoSet Query in Crystal Report Designer 2011. And it works fine, data extraction also works fine. After that, I have uploaded it into BI Platform 4.0. I can display the CR via clicking View from context menu. But it was still failed once I tried to schedule it in BI launch Pad.
    The error message is : Error in File ~tmp314c6a47c20e892.rpt: Unable to connect: incorrect log on parameters.
    It's so stranger, since i can view it in Designer and viewing it direct in BI lauch Pad. Do you have met this same issue within BI Platform 4.0. Thanks.
    Best Regards,
    Simon Shen

    Not sure if this will help but I finally had success with running a report with a database connection. Here is what I learned from other posts:
    1) Make sure you are using the ODBCAD32.exe located in \windows\syswow64 folder. It's the 32 bit Administrator, the one in the Control Panel is the 64 bit versions and it won't work with a 32 bit app.
    2) Make sure you use System DSN, not User DSN.
    Other tips...
    1) Create a blank report (no parameters, no db connection). Run and get that to work first.
    2) Create a basic db report (no parameters, one table, one field). Run and get that to work second.
    3) If step two fails, try creating a report with different drivers.
    4) If step three fails, try installing the latest service packs and repeat 1-3.
    5) If step four fails, throw out the software or computer or both

  • Adding a Subreport to existing report and getting this error, "Unable to connect: incorrect log on parameters"

    I have taken on an existing vb.net project done in Visual Studio 2008 with crystal reports version Crystal Report XI.
    The reports on their own work very well. Problem is I need to add information to my report which is a 'many-to-one' situation where for each Project Id that I am displaying I need to display several attached documents and the report I am working on is for several Project Id's.
    I figured this would be a perfect situation for a SubReport. I created a separate report which calls a stored procedure to get all of the Attached Documents for a specific Project Id. I thought if I were to add this new SubReport to the Original Report and link the Project Id's, easy-peazy, I would be done.
    This is not the case. I have vb code that loads the Original Report with a stored procedure and when this code runs with the setup I described above it fails when it is creating the final report with the following error:
    Logon failed. Details: crdb_adoplus : Object reference not set to an instance of an object. Error in File C:\~\ProjectDescriptionReport {6BA19F79-2A12-4826-B1F6-456EF799963B}.rpt: Unable to connect: incorrect log on parameters.
    I have no specific connections in my vb code for the reports. If I do not add the subreport to the main report, it loads correctly, so I know the error is caused by the subreport.
    This is the code that creates the original report (sorry for dumping the code here, i just thought it would be easier to see all the code) :
    Public Function LoadReport(ByVal inProjectNum As Integer, ByVal strProjectName As String) As DataTable ', ByVal inFiscalYear As Integer, ByVal inCompany As String) As DataTable
            Dim cnn As SqlConnection = Nothing
            Dim cmd As Data.SqlClient.SqlCommand
            Dim obj As New clsDataClass
            Dim dataAdapter As SqlClient.SqlDataAdapter
            Try
                LoadReport = New DataTable("DescriptionReport")
                cmd = New SqlCommand()      
                cnn = obj.Create_Connection()
                With cmd
                    .CommandType = Data.CommandType.StoredProcedure
                    .Connection = cnn
                    .CommandTimeout = "60"
                    .CommandText = "usp_GetProjectGroupSpecsCR"              
                    .Parameters.AddWithValue("@ProjectNumber", inProjectNum)
                    .Parameters.AddWithValue("@ProjectName", strProjectName)
                End With
                dataAdapter = New System.Data.SqlClient.SqlDataAdapter
                dataAdapter.SelectCommand = cmd
                dataAdapter.Fill(LoadReport)
                Dim oRpt As New ReportDocument()
                oRpt.Load(Server.MapPath("ProjectDescriptionReport.rpt"))
                oRpt.Refresh()
                oRpt.SetDataSource(LoadReport)
                'oRpt.OpenSubreport("AttachmentsReport").SetDataSource(LAR)
                oRpt.SetParameterValue("inProjectNum", inProjectNum)
                oRpt.SetParameterValue("strProjectName", strProjectName)
                oRpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, True, "Projects_DescriptionReport") 'inCompany & "ProjectsReport_Description" & inFiscalYear) <-- Line where the error occures.
    What I need to know is what is the proper way to add a subreport to a vb.net application?
    From the ways I have tried it is clearly not working and I am out of ideas. I am fairly new to Crystal Reports and this way of coding it.
    Any help for this would be greatly appreciated, I've been stuck on this for a while and am finally reaching out to the Crystal Report Specialists.
    Thank you in advance,
    Bryan

    Hi Bryan,
    You may want to check the Connection properties also. I think the MS Data.SqlClient.SqlCommand is using the MDAC driver, or could be modified.
    If you are connecting to SQL Server 2008 or above you should be using the SQL Native 10 or 11 Client.
    As Dell suggests have a look at the samples and if you can use a DSN ( 32 bit or 64 bit ODBC Admin )
    Also search for "CRlogger", you'll find how to enable CR's database logging component and may help show you what part is failing.
    Don

  • Scheduled report failing with "Incorrect log on parameters"

    I am having trouble with a report scheduled on our Crystal Enterprise Server.  I didn't design this report but am responsible for supporting the server, so I am trying to determine if this is a server issue or not. 
    The user who designs these reports has designed many others without issue.  She uses Crystal Reports XI and publishes them to the server. There is a group of similar reports that she has setup to run on a schedule and all run fine except for one.  This one gives the error:
    Error Message: Error in File C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\REPORTS.reportjobserver\~tmpee06be03474eb18.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ]
    Within CR XI, we have double and triple checked the username, password and database connection info.  The report is using OLE DB to connect to a SQL 2005 server.  I know the credentials are correct because several other reports use the same credentials and work fine. 
    One other interesting note, if I log into the Central Management Console, I can run the same report manually without errors. It only throws this error when it runs as scheduled. 
    Hope someone can offer some suggestions.  I'm no Crystal expert so please ask if I didn't provide enough information.

    Moved to BOE Admin Forums.
    In the Properties of the report in the CMC you can set the log on info as well as any parameters when scheduled.
    Check the Admin guide on how to
    Don

  • SAPINST failed step "Install Oracle Database (post processing)"

    i will install ep6.0 with oracle database 9.2.0.4 on sun solaris.
    the SAPINST failed at the step "Install Oracle Database (post processing) with follow error.
    the oui - installer (runinstaller) finished sucessfully.
    ERROR 2004-08-31 16:05:17
    CJS-00084  SQL statement or script failed. DIAGNOSIS: Error message: ORA-01501: CREATE DATABASE failedORA-01101: database being created currently mounted by some other instance
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning optionJServer Release 9.2.0.4.0 - Production. SOLUTION: See ora_sql_results.log and the Oracle documentation for details.
    no user is logged on the Database. Database is not running (is shutdowned and unmounted). No Oracle process is running.
    pleas help.
    thanks
    armin hadersbeck

    Hi Armin,
    We're going to install EP 6 stack3 with Oracle 9.2.0.4 and Solaris 9.    We have exactly the same error as you during sapinst.
    How do you solved that ?
    Thanks a lot for your help,
    Regards from Mexico,
    Diego

  • Clearing out logs on filesystem and database

    We've got SOA Suite up and running well enough, but I was wondering how to control the various log levels and more importantly how to delete old logs for the various components.
    I assume that some logs are stored in the file system and some in the underlying SOA support database. Our test support database orabpel and users tablespaces have grown to 4.5 gig and 2 gig respectively. Clearly something is being logged in the database. Also, I can see entire soap messages looking at the SOA console app (can't remember which one) and I need to turn that logging down because our SOAP messages contain proprietary data that needs to be encrypted while at rest.
    I've looked at some of the documentation and googled too. I must be dense or something because I'm not finding much. I did find a procedure to delete some logs on the file system, but it required a shutdown of one of the services. That can't be right.
    What's the proper procedure for getting rid of old data in the database, file system logs and tuning down the content logged in the various SOA components?
    Anyone have a pointer to the docs or a a how-to?
    Thanks

    OK nothing like a little crisis get the mind working.
    First, our policy set had logging turned on at the "envelope" level. The Oracle consultants who helped set this up didn't stress the logging pieces of the policy. Anyway I just disabled the logging steps in the policy definition, and committed.
    Next I purged the logs using OWSM console Operational Management>Overall Statistics>Message Logs>Purge Message Logs.
    Finally, I went into grid control and "reorganized the 4.5 gigabyte log_objects table which for some reason still had 10 rows after repeated purges.
    My log_objects table is now 0.13 mb and NOT growing because I've turned off logging.
    In my defense this is our first SOA implementation and we didn't get a lot of operational "knowledge transfer" from our consultants. Regardless, I'm a big dufus for not figuring this out before.
    Hope this helps someone else in the future.

  • Crystal Reports Server :Unable to connect: incorrect log on parameters

    Hi there, I am getting the following error in Crystal Reports Server  when i try to preview or schedule a Crystal Report on an Access 2000 database.
    Unable to connect: incorrect log on parameters
    The Access database does not have has not username or password and I have left these blank when publishing it, and the Database properties in the Central Management Console also show the username and password as blank.
    All other reports are fine is it just reports on the Access 2000 database that give me this errror.
    Anyone any ideas.
    Thanks

    Hi,
    ok now you have to make ure that the user used to run the BOBJ services on your BO server (if you hvae windows then this is the local system account), has access to your AccessDB. Normally local users do not have access to network locations so it is advisable to create a domain user, who is allowed to access the directory with your database and is melber of the local administrators group on the BOBJ server. All you have to do then is to  configure your BOBJ services (Use the Central Configuration Management utility to do this) to run under the credentials (Log-on-as) of user you created.
    Regards,
    Stratos

  • Apply missing log on physical standby database

    How to apply the missing log on physical standby database?
    I already registered the missing log and started the recovery process.
    Still...having log on standby that has status ..not applied.
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# APP
    16018 YES
    16019 YES
    16020 NO ---------------------> Not applied.
    16021 YES
    Thanks

    Not much experience doing this, but according to the 9i doc (http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96653/log_apply.htm#1017352), all you need is properly-configured FAL_CLIENT and FAL_SERVER initialization parameters, and things should take care of themselves automatically. Let us know if that doesn't work for you, we might be able to think of something else.
    Daniel

  • Steps if Oracle Database Crashed

    Hi All,
    Can someone write me sequence of steps if Oracle database get crashed. Just steps and not the detail.
    Thanks
    Praveen

    First try 'recover database' command in sys login
    If it fails,
    1. See for the alert.log for exact error if any
    2. if a control file is corrupted, create new control file
    If there is hard-drive problem, bad sector etc then no chance ! Have to format or change hard drive and re-install oracle.

  • How to Increase database / log size of mirrored database

    Hi All,
    I have been asked to increase the default database and log size of two databases, both of which are mirrored.
    I have been trying to find out what else I need to do in this case other than the standard resizing.
    Are there extra steps I need to perform as these dbs are mirrored (SQL Mirroring)?
    Farren

    Hi Farren,
    Based on my test, if you choose to expand the mirrored database by increasing the size of an existing data or log file, you can directly execute the ALTER DATABASE statement on the Principal server as Uri’s post, but before that please make sure the mirroring
    status is synchronized. You can check the mirroring configuration and partner status with the following query.
    SELECT DB_NAME(DATABASE_ID) 'DBNAME',mirroring_state,
    mirroring_state_desc,mirroring_role,mirroring_role_desc,
    mirroring_partner_name,mirroring_partner_instance
    FROM sys.database_mirroring
    WHERE mirroring_guid IS NOT NULL
    However, if you choose to expand the mirrored database by adding a new file to the database, you need to perform extra steps as follows.
       1. Check the mirroring configuration and partner status with above query.
       2. Run the below command on the principal server to break the mirror.  
    ALTER DATABASE DatabaseName SET PARTNER OFF
       3. Create your database file on the principal server.
       4. Run a log backup on the principal server.
       5. Restore this log backup on the mirrored server using the NORECOVERY and MOVE options.
       6. Re-establish mirroring between the servers for this database.
    Reference:
    Increase the Size of a Database
    How to add a database file to a mirrored SQL Server database
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    Forced me to do a little research.
    DBCC SQLPERF(logspace)
    See also
    http://stackoverflow.com/questions/198343/how-can-i-get-the-size-of-the-transaction-log-in-sql-2005-programmatically
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

Maybe you are looking for

  • Creation of new freight line in PO

    Hi Everyone, Could you please guide me about the following query: In a PO, suppose we have done GR once and then cancelled the GR, in that case can we add a new freight line (previously there was no freight component added with the item) in the PO fo

  • SapSetup failed in the registration of

    Hello, we're facing a blocking issue in our SAP GUI 7.10 Patch 3 deployment via SMS. On some computers (not all) the sapsetup crashes with the following single log : Any tip on how to fix that ?    Logfile:            C:\Program Files\SAP\SapSetup\LO

  • How to rename a flat file concatenating date and time the file name?

    I created a package where I run a first interface that uses a flat file from a server and load into a table in Teradata. After using the API OdiFtpPut, I used an FTP file and send to an outfit. Since this procedure will operate daily, I need at the t

  • Getting "incorrect sync key" errors during iPhone setup

    First, i tried to "add a device" in the desktop Sunc window. Entered the simple key that my phone generated, and got a positive confirmation on the desktop. However, the phone showed a "incorrect sync key" error message, and no connection was made. T

  • HT201335 How can I airplay mirror my MacBook Pro to my TV set through Apple TV?

    I have a macbook pro with Mountain Lion 10.8.2. The airplay symbol appeared on my itunes, but I don.t know how to mirror my screen to my TV using ATV.