TestStand database logging problem: only the first character is put in the table.

I am using TestStand 2.0.1 and Microsoft SQL server database. There is a weird problem when I use database logging. At first, all the database logging ran good.
Then one day after I moved the test equipment to production line, TestStand only logs the first character of each string field in the tables! There is no error message.
I setup another SQL server running locally on the same machine as the TestStand is and move the database to the local server, database logging has no problem. Schemas in TestStand Dabasebase Options are the same.
I tried to run TestStand from another computer on the network. There was no problem before, too.  But now, TestStand always shows a Run-time error message like this:
Details:
An exception occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
An error occurred executing a statement.
Schema: New.
Statement: STEP_RESULT.
Connection failureMultiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
Source: TSDBLog
Error Code:
-2147467259; User-defined error code.
Location:
Step 'Log Results to Database' of sequence 'Log To Database' in 'Database.seq'
I have checked that the connection is good and also the table UUT_RESULT has been logged correctly.
Anyone can help?
Thanks.

Thank you very much, Santiago.
Yes, I have a customized schema, but it is based on the pre-existing schema. I tried the schema:TS 1.x Access/SQL (NI), which  came with TestStand, the results were the same. 
I have tried to run different sequences. On one computer, I always get only the first character of each string entry logged in the remote database, however for the local server, everything is fine. On the other computer, there is no local SQL server, I always get similar error message as I mentioned in my post. The sequence step reports error is  "Log Results to Database".
Any more suggestion?
Thanks again.
Best regards,
Jaso

Similar Messages

  • How can a  variable display the first character that's on the page?

    I'm creating a telephone directory and want each page to display the alphabet of the first listing on the page on the top - only one character.
    Can you tell me how to do this?

    Hmmmmm, seems I was wrong about the GREP styles. I just tried it and they don't get picked up. I consider that a bug, but it's probably "as designed."
    That leaves you having to work with nested styles only, or Find/Change. I think what you'll need to do is redefine the Paragraph style so it has two nested styles that apply the correct style to whatever needs to be styled at the start of the paragraph, one for the first character and the second for the rest of the word(s) if you can figure out a trigger (can InData add an end nested style character or is thew some punctuation you can use?), then find/change to remove the applied character style. For that I'd serach for ^.+ with the find format set to the character style that InData applied and the chane format set to [None], which will only remove it from the beginning of your paragraphs. If this is done correctly there will be no change in appearance since the redefined paragraph style will do the formatting.
    If that won't work, you can use find/change to apply a new style to the first characters. Search for ^. and set the change format to the new character style that you'll use in the variable. It needs to have the same attributes as the style applied by InData or the appearance will change.
    The second method is probably easier since you don't need to redfine the paragraph style, but both methods require you to use find/change to alter the text, which means if more text is added you'll need to re-do the find/change. Not a big deal, but don't forget. I'd be tempted to wait until the last minute and just ignore the headers for the moment, if editing is ongoing. I'd also test this on a copy of the file for safety.

  • Only display the first character issue

    Hi,
    I'm using CR 2008 to generate reports.
    I use oracle database.
    I use a stored procedure to get data and everything working fine ,it return correct data.
    I have five details section but i display one details section and i suppress others
    My issue is execute the rpt file to presssig F5 key;   string type record is only able to print the first character on the preview.
    eg: record with value 'ABCDE', after printed on rpt file, only character 'A' was printed on the preview.
    if i verify database, it display correct data but a few times later problem occurs again
    Anyone know how to fix it?

    if you create a blank report as follows , you will take same error
    my reports section;
    section - formula fieds 
    a - - - - a b f g
    b - - - - a b e f g
    c - - - - a b c e f g
    d - - - - c f g
    e - - - - d e f g
    my details sections suppress formula;
    if {CR_TEST.CODE}=1 then false else true
    if {CR_TEST.CODE}=2 then false else true
    if {CR_TEST.CODE}=3then false else true
    if {CR_TEST.CODE}=4 then false else true
    if {CR_TEST.CODE}=5 then false else true
    my procedure is just like this;
    CREATE OR REPLACE PROCEDURE CR_TEST(
       P_MONTH IN VARCHAR2
    , P_YEAR IN VARCHAR2
    , CODE IN NUMBER
    , P_CURSOR OUT GP.REF_CURSOR
    IS
    BEGIN
       IF CODE = 1
       THEN
          OPEN P_CURSOR FOR
             SELECT A
                  , B
                  , 'X' C
                  , 'X' D
                  , 'X' E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 2
       THEN
          --A, B, E, F, G
          OPEN P_CURSOR FOR
             SELECT A
                  , B
                  , 'X' C
                  , 'X' D
                  , E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 3
       THEN
          OPEN P_CURSOR FOR
             SELECT A
                  , B
                  , C
                  , 'X' D
                  , E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 4
       THEN
          OPEN P_CURSOR FOR
             SELECT 'X' A
                  , 'X' B
                  , C
                  , 'X' D
                  , 'X' E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       ELSIF CODE = 5
       THEN
          OPEN P_CURSOR FOR
             SELECT 'X' A
                  , 'X' B
                  , 'X' C
                  , D
                  , E
                  , F
                  , G
                  , CODE CODE
               FROM CR_TEST_TABLE
                                 --WHERE conditions
       END IF;
    END;
    Edited by: assaulter on Oct 12, 2011 11:50 AM
    Edited by: assaulter on Oct 19, 2011 1:50 PM

  • An error occurred calling 'LogMultipleResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'

    A test rig that worked fine started thowing the floowing error for me.
    See screen capature.
    Problem doesn't appear on the development PC.
    The code that I'm using is using the default settings for logging to the access database that ships with TS. All worked fine for a few weeks now it keeps ... breaking.
    An error occurred calling 'LogMultipleResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'
    An error occurred executing a statement.
    Statement: STEP_RESULT.
    Description: The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
    Number: -2147217887
    NativeError: -105121349
    SQLState: 3022
    Reported by: Microsoft JET Database Engine
    Source: TSDBLog
    Attachments:
    NIDBerror.png ‏17 KB

    Hello,
    As far as I remember the DB size was approx ~ 1.5 GB, I don't have access to that test station till Wednesday so I'll double check but it could be as simple as exceeding the DB size, I'll verify that when I'm on-site again.
    To answer a few questions from Scott:
    1) I'm using TestStand 2012 ( as it came with the installation disks shipped in the first quarter of this year ).
    The test station is offline so no updates have been applied since the install.
    2) I'm using the default NI Schema and an Access DB. ( No modifications have been made )
    3) I'm using the On-The-Fly feature logging feature both to ATML and the DB.
    ATML works with no issues, DB used to work fine until it refused.
    4) Fails every time when I start the sequence, disabling logging to the Database sorts the issue out.
    5) I originally used the BatchUUT.seq example that ships with test stand.
    I have developed a test that has three test sockets that have a common Initialize, Run Tests in parralel and have a sequence of common test steps.
    Scott:
    The issue you've sent speaks of UUIDCreate; I'm gettin issues with the STEP_RESULT .... I think these things are not related.
    Secondly I'm suing TS 2012 so a fix should have been propagated to my version.
    So to answer your question I'm using multiple processes on one computer.
    I will emphasize that everything worked fine up to a certain point ... so I'm guessing Doug might be right on the money with the fact that I've chosen a misfortunate Database ( Access ) for the job.
    Regards,
    Maciej

  • Can not run the calc scripts by mxl, if the first character is Number

    I found that if you create the calc scrpt like 1abc.csc. You can not run it by mxl. I tried for times but do not know the reason for that. I found that you can use number in the name of the calc scripts(like abc1.csc, a1bc.csc), but not for the first character(like 1abc.csc).
    Below is my mxl scripts:
    ×××××××××××××××××××××××××××××××××××
    login admin identified by password on localhost;
    spool on to 'C:\abc.log' ;
    execute calculation sample.basic.1abc;
    spool off;
    logout;
    ×××××××××××××××××××××××××××××××××××
    I write a bat file below:
    ×××××××××××××××××××××××××××××××××××
    D:\Hyperion\AnalyticServices\bin\essmsh C:\abc.mxl
    ×××××××××××××××××××××××××××××××××××
    I can run the scripts if I change the name "1abc" to "abc1"or "a1bc".
    Of course I can run this calc in EAS, no matter the name is "1abc" or "abc1".
    Anybody find the same problem with me?

    I agree, if ever there was a "best practice" to developing scripts (especially when using variables) it is to enclose in single quotes. I actually use double quote, single quote.
    execute calculation "'$4'"."'$5'"."'$6'";

  • [Solved] DVDs and CDs only work the first time I put them in

    First lets get this straight before it is asked later on down the line. I am a 6 year Linux user and 2 year Arch user. I am currently using xfce4 and thunar as my file manager with thunar-volman installed. This has been a problem for the past year or so. I use my laptop most of the time (also Arch 64 and working like a dream) so I only try fixing it every so often to no avail.
    I can put in a CD or a DVD and play them with VLC. Here's the catch: after I eject the CD/DVD and put in another one I can't play it or find it. The first time I put one in I even get an icon on the desktop. I don't think it's reasonable to have to reboot everytime I want to play another DVD (time wasted by constant rebooting is one of the very long list of reasons I don't use Microshaft products). I'm stumped, I can't be the only one, but my forum searches yield no treasures.
    Last edited by astrozombie (2010-02-03 01:00:15)

    Thanks for trying, however, I posted what I use for a reason. I am using VLC, and I am a minimalist so I don't want a bunch of programs for doing the exact same thing. VLC is the only player for Linux that plays MTS files out of the box, so I'm not interested in switching or adding another.
    Anyways, it's irrelevant because as I said before, thunar mounts it correctly the first time I put in a DVD or CD and displays an icon on the desktop for the disk. Therefore the problem is most likely hal related, since this began about the time we switched to hotplugging, and besides this I love hotplugging so I am also not interested in disabling that (who know what problems I'll introduce for my MAC keyboard and webcam if I do that). Yes I've read the hal and dbus wikis.
    I can even get a USB CD writer to work with xfburn, however it's a relic and I think that's a sorry work around when I have internal drives that, in theory, work just fine. I wonder if it has anything to do with the drives being IDE when I used the SATA install option on the install disk (I did a fresh install last week) since my hard drives are SATA.

  • The first character in a string

    I need to return the first character of a string, convert it to an integer, and compare it with another integer to see if they're the same. Sounds simple, even for me, but it won't work!!!
    // First question >
    Object userValue1 = JOptionPane.showInputDialog("Blah Blah Blah", JOptionPane.PLAIN_MESSAGE, null, options1, options1[0]);
    Variables.placeholder = (int) userValue1.charAt(0);This is the error I get
    C:\Documents and Settings\imholt\My Documents\OOPAttempt\21_Questions\Engine.java:170: cannot resolve symbol
    symbol : method charAt (int)
    location: class java.lang.Object
              Variables.placeholder = (int) userValue1.charAt(0);
    ^
    1 error
    I have a sneaky suspicion that once I find out what the problem was, I will ask myself why I didn't see it before...

    Try this
    Object userValue1 = JOptionPane.showInputDialog("Blah Blah Blah", JOptionPane.PLAIN_MESSAGE, null, options1, options1[0]);
    String str = userValue1.toString();
    Variables.placeholder = (int) str.charAt(0);

  • Delay when typing in Safari, the first character is always missing.

    Recently when I go to type in a address or text in the search window, the first first character is always gone. Resulting in me having to back space to the beginning to re-type the first character.
    My father is a Mac user too and he experiences the same thing.
    Any suggestions?

    Hi,
    The problem you described sounds reminiscent of a problem many MacBook, MacBook Pro and even PowerBook G4 users have been experiencing. If you do a Discussions-wide search for the phrase "first key" in quotation marks, you'll get an idea of how wide-spread the problem is. Apple recently released a firmware update for the MacBook and MacBook Pros, but reports of first-key-unrecognition persists.
    While I hope your problem isn't of this variety, the point I'm trying to illustrate is that if it is, Apple has yet to pin down a proper fix for it. Until they do though, perhaps some workarounds you can try are banging on a modifier key before typing anything, or clicking twice to ensure focus has been given to a window element and not just the window.
    Yang

  • I am trying to install windows 7 to my Macbook pro with bootcamp but every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7", any solutions ?

    Hi, I am trying to install Windows on my MacBook Pro with bootcamp. Every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7". I did this before using the same computer and the same hard drive so I am not sure why this is happening now but did´t happen then. Any solutions ?

    Was your Bootcamp info.plist manipulated to change any options?

  • Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Try
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data

  • [CS2/CS3 JS] Finding the first character of each paragraph

    Hi,
    Can anybody help with my script below:
    for (h=0; myParaCount>h; h++){
    myChars = myStory.paragraphs.item(h).contents;
    if (myChars.characters.item(0) == "l" && myChars.characters.item(0).appliedCharacterStyle == CharStyleWin){
    myStory.paragraphs.item(h).appliedParagraphStyle = "L-B";
    This script is supposed to test if the first character is an "l" with my character style "Wingdings" applied to it. I could not test whether the character style is "Wingdings" or not. What could be wrong with my script. Thanks.

    // You need to have a textFrame selected
    var myFrame = app.selection[0];
    var myParaCount = myFrame.paragraphs.length;
    // There must exist a paragraphStyle name L-B
    var myApplyStyle = app.activeDocument.paragraphStyles.item("L-B")
    for (h=0; h < myParaCount; h++){
    var myChar = myFrame.paragraphs.item(h).characters.firstItem();
    // check if first char is "l" and if its applied charstyle name is CharStyleWin
    if (myChar.contents == "l" && myChar.appliedCharacterStyle.name == "CharStyleWin"){
    myFrame.paragraphs.item(h).appliedParagraphStyle = myApplyStyle;
    /* Edited at 11.21 */

  • Getting zero to display as the first character

    I know this should be simple, but I'm trying to get a zero to display as the first character in a field when necessary.  For example last 4 of SSN.  Any help would be appreciated.

    Hi,
    You can achieve this in the Patterns dialog. Select the object and go to the Object > Field palette. There you can click the Patterns button and edit the Display Pattern.
    For example, this would display a number without leading zeros: 12
    num{zzz9}
    Whereas if you use 9 it will display leading zeros: 0012
    num{9999}
    Hope that helps,
    Niall

  • Stored Procedure Only Returns First Character

    I am having an issue with ColdFusion MX7 and a MSSQL 2005 DB.
    I am able to duplicate my development issue with the following simple example
    -- SQL Code
    CREATE PROCEDURE myTestProc
        @myString varchar(36) OUT
    AS
    BEGIN
        set @myString = 'This is my test';
    END
    GO
    -- CFCode
    <cfstoredproc procedure="myTestProc" datasource="#dsName#">
            <cfprocparam cfsqltype="cf_sql_varchar"
                   type="out"
                   variable="vars.myString" />
    </cfstoredproc>
    <cfdump label="testProcReturn" var="#vars#" />
    <cfabort />
    This is what it returns
    testProcReturn - struct
    myString
    T
    I have tried many, many, many variations of CFSQLTYPE and the datatype in the procedure and not once have I got it to return more than just the first character.

    I just discovered that the following works.  I consider it a workaround and not a final solution.  It appears there is something wrong with the way I am using cfstoredproc or there is a bug in it.
    <cfquery name="testProc" datasource="#dsName#">
    DECLARE    @myString varchar(36)
    EXEC    myTestProc
              @myString = @myString OUTPUT
    SELECT    @myString as 'myString'
    </cfquery>
    <cfdump label="testProc" var="#testProc#" />
    <cfabort />
    This code returns what I expect it to.
    testProc - query - Top 1 of 1 Rows
    MYSTRING
    1
    This is my test

  • TS2446 I can not purchase on ITunes for the first time because I forgot the answer to my security questions, is there a way I can log into my account and figure out the awensers to the questions?

    I can not purchase on ITunes for the first time because I forgot the answer to my security questions, is there a way I can log into my account and figure out the awensers to the questions?

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

  • How can I stop when the first character I type into start page search matches my thunderbird password the whole password is revealed.

    Typing into the Mozilla start page my thunderbird/gmail password is revealed as a suggestion pop-up when the first character is typed.

    See:
    * http://kb.mozillazine.org/Deleting_autocomplete_entries

Maybe you are looking for