Getting sequence filename and sequence name in process model error handler

We are using the sequential process model and would like to log sequence step error information to a file.  We have an Error Handler callback in SequentialModel.seq and that is where we will write to the error file.  In the Error Handler callback, I can get the error container info for the step where the error occurs and the name of the that step thru the Error Handler Step parameter.  I would also like to record the sequence file and the sequence where the error occurred, but I have not been able to find those in the sequence context.  I know they are available because the TestStand RunTime Error dialog box displays them.  How can I access the name of the sequence file and the name of the sequence where the error occurred?
Thanks,
Hans

Hey hans,
Use the API.  Since you already have the Step object reference coming in as a parameter you can just use a few ActiveX steps to get the Sequence File and Sequence from which the error was thrown.
Step.Sequence
Sequence.Name (gets the name of the sequence)
Sequence.SequenceFile
SequenceFile.Path (gets the path of the sequence file)
So basically just 4 activex steps.  I hope this helps.
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • I lost all of my artist names and album names for my iTunes library. They are all now on one album. How can I get the album and artist names back?

    I lost all of my artist names and album names for my iTunes library. They are all now on one album. How can I get the album and artist names back?

    I have a script called ExportImport for this task, but it only runs in Windows.
    In principle something similar should be possible in AppleScript, but I don't currently have access to a Mac to write it myself.
    tt2

  • Step by Step documents for Process Chain Error Handling with Screen Shots

    Hi
    Is anybody having Step By Step Documents for Process Chain Error Handling with Screen Shots ?. Please forward it to me to my e-mail [email protected] .  I will reward points to u immediately.
    bye
    Aamira Khan

    Hi,
    You can find lots of topic related to process chain issues in SDN.Please make a search in SDN.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_library&query=process+chain&adv=true&sdn_author_name=&sdn_updated_on_comparator=ge&sdn_updated_on=&sortby=cm_rnd_rankvalue
    Regards.

  • Filename and sequencing of print orders?

    I ordered a set of prints through Aperture.  Before printing, I changed the names (for version & masters) to a date/time format.  They came in and look great, but on the back they just have some nonsensical codes. 
    Also, the prints are TOTALLY out of order.  Just random, and I ordered 110 of them.  Even though the album I created before ordering they are sorted by filename (and hence date).
    So now I have to reorder them and
    Of course, there's no way to contat apple about this.  1800myapple gets you to an automated system that will give you a tracking #, but if you request an operator, it just says "sorry, we can't help you" and hangs up.
    I want to use this service again.  It was comparably priced, especially with the flat shipping fee.  The colors are way better than what I usually do which is just print them for pickup at walgreens.  But if I have to sort and label each one myself, I may have to look for alternate services.
    Thanks.

    Even though the album I created before ordering they are sorted by filename (and hence date)
    Yes, It is a pity that you cannot specify the sorting order when printing:
    As a workaround: Duplicate your original image files (you can delete the duplicate masters afterwards)
    and rename the original files with a number prefix by batch changing the version name and applying the change to the original files
    or print a caption onto the image or the border of the image using the BorderFX plug-in http://www.iborderfx.com/BorderFX
    To duplicate the original files/masters create a new, empty project named "DuplicatesToBePrinted" or similar; then drag the images from the album you want to print to this project with the options-key held down. This will duplicate the original masters image files. Any edits you do to these images will leafe the other images untouched.

  • Get filename and directory name during runtime

    Hi guys,
    I am developing a file to file interface without content conversion, just a simple file transfer from one ftp server to another. I have to read the same filename (invent.txt) from multiple folders (mstransfer/M01/IN1, mstransfer/M02/IN1, mstransfer/M03/IN1....) that represent different stores and transfer it as it is with the same name to exactly the same directory name in the target ftp location.
    My problem is found inside a dummy mapping that I have created in order to specify the target directory and the name of the file. I am doing the following:
    A) A Java UDF to specify the filename
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String filename = conf.get(key);
    trace.addWarning("filename = "+filename);
    conf.put(key, filename);
    return "";
    //return filename;
    B) A Java UDF to specify the directory name
       //write your code here
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String directory  = conf.get(key);
    trace.addWarning("directory before = "+directory);
    directory = "/usr/sap/trans"+directory;
    trace.addWarning("directory after = "+directory);
    conf.put(key, directory);
    return "";
    //return "/usr/sap/trans"+directory;
    In receiver file adapter I do not specify neither a filename nor a target directory.
    When I am testing it, I always get a mapping runtime error.
    Any ideas?
    --Evaggelos

    Guys,
    First of all, I am doing an end to end testing, i.e. I let the FTP adapter pick the file up and another FTP adapter delivers the file to target folder. I am definitely not testing the mapping in mapping editor.
    I get the error in Request message mapping (pipeline step, which I can see in SXMB_MONI transaction) which is a dummy mapping between two message types that I have created and are based on two data types with two fields each.
    The UDF's that I have created go in-between the source and target fileds of the message types/data types.
    The error that I see in the trace section of the XML message in SXMB_MONI is the following:
    "<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_G_SRS_FileTransfer_MNS_</Trace>
      <Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at"
    I have included some trace.addWarning() lines in Java code to help me debug my code, but I cannot see them anywhere inside the trace to be getting executed.
    I will try Bhavesh's idea and I will write the code in the Java Section of my message mapping ( either Intialization or Destrcution ) section.

  • How do I match a clip to sequence settings and sequence presets?

    I'm getting the warning: Attention - This clip does not match this sequence's settings or any or our sequence presets.
    I'm trying to figure out how to set things up in Compressor so that my clips do match my sequence settings and presets. The issue seems to be with the audio not matching.
    Here are the sequence settings:
    Audio-2 Outputs
    Frame Size- 1920x1080
    Vid Rate-24fps
    Compressor-Apple ProRes 422 (proxy)
    Aud Rate 48.0 KHz
    Aud Format 32-bit floating Point
    I shot all the footage with a Canon 5D Mark II. I'm using Compressor to convert all my original clips. The only thing I don't seem to be able to match is the Audio. I can't find any way in Compressor to encode clips that have "two outputs" in the Audio column.
    The dialogue box for "Sound Settings" in Compressor doesn't offer any sort of options, that I can find anyway, to generate clips with "two outputs."

    These are the Compressor settings:
    Description: Apple ProRes 422 10-bit video with audio pass-through. Settings based off the source resolution and frame-rate.
    File Extension: mov
    Estimated size: 16.36 GB/hour of source
    Audio Encoder
    Apple Lossless, Stereo (L R), 48.000 kHz
    Video Encoder
    Format: QT
    Width: (100% of source)
    Height: (100% of source)
    Selected: 1920 x 1080
    Pixel aspect ratio: Square
    Crop: None
    Padding: None
    Frame rate: (100% of source)
    Selected: 24
    Frame Controls: Automatically selected: Off
    Codec Type: Apple ProRes 422 (Proxy)
    Multi-pass: Off, frame reorder: Off
    Automatic gamma correction
    Progressive
    Pixel depth: 24
    Spatial quality: 50
    Min. Spatial quality: 0
    Temporal quality: 0
    Min. temporal quality: 0
    These are the sequence settings:
    Frame Size: 1920 x 1080
    Editing Timebase: 24fps
    Field Dominance: None
    Pixel Aspect Ration: Square
    Anamorphic 16:9: Off
    Video Processing YUV allowed (8-bit)
    Compressor: Apple ProRes 422 (Proxy)
    Millions of Colors (24 bit)
    No Data Rate Limit
    No Keyframes Set
    Quality: 100
    Audio Settings:
    16-bit 48.000 kHz Stereo
    I made screen shots, but don't see how to paste them into this post.

  • Getting Output filename and extension same as the incoming filename and extension

    I need to create a SFTP send port where I should get the output file name and extension same as that of the incoming filename
    I had set the filename in the send port as "%SourceFileName%" but this did not work.
    I have also assigned the input filename (without extension) in a variable in orchestartion. Is there any way i could get the output filename and extension same as that of the incoming message?
    Any help would be much appreciated

    Hi,
    The %SourceFileName% macro maps to the context property BTS.ReceiveFileName that travels with your message in the context. So in order for this macro to work in a send port the message that is going out needs to have this BTS.ReceiveFileName property on
    the context. You probably creating a new message in your orchestration and sending that out. The new message does not have the property on its context which makes it fail. Use a message assignment shape in your orchestration to set the context property for
    the message going out:
    MyMessage(BTS.ReceiveFileName) = OrigMessage(BTS.ReceiveFileName);
    Then %SourceFileName% macro will work at send port.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • How to get truck no and transporter name from header.text(vf03) to webi rep

    Hi
    making a stock received details bill wise with webi (bo 3.1)
    so require a truck no and transporter name along with consignor detail and bill wise detail.
    picking data from vbrk and vbrp tables.
    pls assist in this
    Thanks and Regards
    Ritu Raj
    BI/BO Consultant

    Thanks M
    Yes It is Sales and Distribution process and we are using ODBC Connectivity through database client for the connection parameter in the Universe designed to the R/3 ECC.
    So we dont have
    a) DS
    b) BW
    c) Data Connector
    So Universe is basically on the relational Data
    base where by linking VBRK,VBRP and various Master tables.
    (OLTP level universe)
    So the quesion remain as it is bcos we cant access functional module READ_TEXT in the R/3
    Pls suggest for the following Alternatives
    a)Using Crystal Reports
    b)Use BW (Currently it is not there,but soon be Implemented)
    What do you think?
    Bcos we dont want to refresh z table which could be developed from given functional module before running our report.
    Regards
    Ritu Raj

  • APT - getting declared variables and parameter names

    Hi,
    I would like start using APT, but if I am not mistaken, there are severe limitations what you can do with the tool. How is it possible to get the declared name of variables or parameters and methods from the apt tool?
    @someAnnotation
    public void someMethod(A para1, B para2) {...}I would need to get the name of the method and the name of the parameters to generate new sourcecode (AspectJ -Source), how is this possible? Without the names I cannot call the method from another place right?
    Where can I find the planned features for APT? It is a pitty that the tool is in a way very powerful and in another so limitated because you cannot extract the sourcecode or names.
    Regards,
    Klaas

    What about getSimpleName? This method is defined on
    declarations.You know, ParameterDeclaration is a Declaration ...
    All of the declarations returned by
    the mirror API are for elements that exist inside
    classes, not inside methods.Huh? Parameters are an integral part of methods and methods are elements that exist inside classes (or types in general). What's your point?
    The apt API does not expose any information about the
    interiors of methods or constructors.Oh boy. For a ParameterDeclaration getSimpleName() will return the name of the parameter, e.g. suppose you are "scanning" a standard main method:public static void main(String[] args) {...}and you already have the ParameterDeclaration instance representing the sole parameter of the method, then getSimpleName() will return "args".
    BTW - this has nothing to do with exposing interiors. Just try it.

  • Get jms queue and topic names from JNDI

    Hello all,
    How do I get all possible queue and Topic names from JNDI (in my app) so I can store them in a HashMap?
    Thanks

    I'm guessing you know where in the JNDI you put your queue and topic names. Then you can do:
    context.listBindings("myJNDIContext");
    and go through the NamingEnumeration that this returns.

  • How to get the Calendar and Holiday Name from ALBPM engine

    Hi,
    I want to fetch the Calendar Name and Holiday Name that are defined in ALBPM studio/engine.
    How to fetch these through fuego ?
    Bibhu

    Hi,
    Thanks for your help.
    I have executed the code but it did not give me the calendar name as fetchAll() gives me an array.
    I could not find any such method which will give me the Calendar Name.
    The above code give the following result:
    Total Calendar Count: 2 (OK, since I have two calendar in my workspace)
    Calendar Name : fuego.components.CalendarRule@677770 (Want the Calendar Name not this format)
    Calendar Name: fuego.components.CalendarRule@d293b7
    Bibhu

  • Anyone help me ...I am writing to get Date, Month and Year...I got errors

    Could some body help me:
    I am try to get Date, Month and Year
    I got stuck, Anyone help me this:
    public class DateMonth
    public static void main(String[] args)
    toDay = new toDay("February 21, 2002");
    dayofWeek = today.getDay();
    System.out.println("Current month is " + toDay.getMonth());
    System.out.println("Current day is " + getDate());
    System.out.println("Current year is " + toDay.getYear());
    toDay.setDate(toDay.getDate()+60)
    System.out.println("Sixty days from now is ");
    System.out.println(toDay);
    }

    Try something like this:
    import java.util.*;
    public class DateMonth {
         public static void main(String[] args) {
              // Note: 0 = January
              Calendar calendar = new GregorianCalendar();
              System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
              System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
              System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
              System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
              System.out.println("DATE: " + calendar.get(Calendar.DATE));
              System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
              System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
              System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
              // 60 days from now
              calendar.add(calendar.DATE, 60);
              System.out.println("\nSixty days from now");
              System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
              System.out.println("DATE: " + calendar.get(Calendar.DATE));
              System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
    }Remember that January is 0!
    Take a look at the GregorianCalendar class:
    http://java.sun.com/j2se/1.3/docs/api/java/util/GregorianCalendar.html
    Hope this helps!
    DesQuite

  • Owb process flow error handling

    Hi,
    I am using OWB 10gR2.
    I have 2 process flows that each call a series of mappings. Then I have one "master" process flow that calls the two aforementioned proecess flows. When a mapping errors, I want my whole master process flow to abort. I put error handling in, but it doesn't seem to work. For example, if I get an error in the first process flow, I get my email notification that something is wrong. The process ends. However, the master process flow continues to go. I want it to stop. It continues to go because there wasn't an error in the first process flow. The error was handled, and the process flow ended successfully. Does anyone have any tips or tricks on how to handle this type of situation? I'm not doing anything revolutionary. I'm just new to these process flows.
    Thanks,
    Tim

    hmm ok this sounds a bit weird to me.
    I've created similar processflows with customers and never had similar problems like you describe.
    Just to verify your design, here is how I would solve your master1 processflow.
    _______________________END_WARNING
    w w
    start----PF1----------s---------------PF2------s---- END_SUCCESS
    e e
    \___________________\____END_WARNING
    where the conditions for the transitions is indicated with w for warning, s for success and e for error.
    Some poorly made ascii art there but hopefully you get the idea...:p
    This also sounds like what you've done already and with extra email functionality.
    Are you sure that pf2 starts after pf1? Or can it actually run in parallel with pf1 but just finishes after pf1 so it seems like it its done afterwards? The reason I ask is that I experienced that in one of my processflows with around 30+ mappings, one of the mappings that was supposed to be executed almost at the end, executed before everything else and messed everything up. It was quite the annoying little bug and took a long time for me to discover. If you have noticed on the transitions, there is a little number next to the line on the canvas, indicating in which order the operators are to be executed. In my case, two transitions had the same number and that caused one of the mappings to just start as soon as the processflow was told to start. If this is the case there is a way to set these, but I don't remember right now. Delete and recreate the transitions also do the trick I think.
    Hope you figure it out!
    Ragnar
    edit: seems like my ascii art got a bit messed up... :(
    Message was edited by:
    rhaug

  • Inserting text between base filename and sequence

    It seems that this should be possible, but I'm not seeing any way to do this. When I go into CS6 from LR4, I'd like to be able to rename the file I'm working on (say 20120422-145) to 20120422-Edit-145 but at best I can rename it 20120412-145-Edit-145
    Adding the edit tag prior to the sequence id helps keep things better organized in the browser and enabled rename on export to properly extract the sequence ID.
    Pretty sure this has been an issue since I started using LR2, but just now getting really annoyed by it...
    Thanks.

    Unfortunately, it is not possible since there is no way to do any kind of substring extraction with filenames in LR rename templates. It's one of the many areas in LR that has been lacking since the beginning, and the features to do this are apparently way down on their priority list of improvements that could be made to the DAM features in LR.

  • Get specific filenames and sizes from a folder based on a list of variables

    Hi,
    I have a folder containing user's OST files, with various filenames:
    \\myserver\OST share\JBLoggs - Outlook 2010.ost
    \\myserver\OST share\CKent - Outlook2013.ost
    \\myserver\OST share\BAllan Myoutlook.ost
    There are several thousand files, and I need to get the file names & file sizes for 200 specific users only. I tried a for do in a bat file, but wildcards don't appear to be honored:
    "for /f %%a in (C:\Temp\UserNames.txt) do dir "\\myserver\OST share\%%a*" >> C:\Temp\Filenames.txt
    The * is not recognised as a wildcard, and the .bat fails (the dir command is parsed as "\\myserver\OST share\JBloggs*)
    I can do this manually via Excel, but it will be an ongoing task so I'd rather automate it. I've also tried Powershell, but am hitting policy restrictions (from my employer, not from Powershell), and no joy with Google. Any advice? (& thanks to all for
    looking!)

    Edit: Adding a PushD/PopD to the start and end of the bat file and removing the path from the dir command appears to have fixed it.
    Must have been something in the folder path that was breaking it, although since it maps fine through PushD & works when typed manually, I'm at a loss to explain what. Thanks for taking a look - appreciated!
    I'm not sure why it's working for you, but not working for me - I had assumed there was a syntax error/rule/additional switch needed in a For Do loop, so that is what I have been researching. There are definitely confirmed files that start with the usernames
    in my list. As an example:
    -My list & folder contains the variable DQuinn. When I run the bat file the following is displayed in the command prompt window I run it from:
    C:\Windows\System32>dir "\\myserver\OST share\DQuinn*"  1>>C:\Temp\Filenames.txt
    So the wildcard is treated as a literal * character, and not as a wildcard - in turn the dir command fails.
    (I'm not sure why 1 is displayed in front of the >>, but the txt file is written to correctly and removing the whole >>C:\Temp\Filenames section doesn't fix the bat file, so I'm not worried about that part).
    -From the same command prompt, if I run the command
    dir "\\myserver\OST share\DQuinn*"
    Then I get the expected output:
    Directory of \\myserver\OST share
    01/04/2015  02:47 PM       250,322,944 [email protected] - 2010.ost
                   1 File(s)    250,322,944 bytes
                   0 Dir(s)  4,288,303,345,664 bytes free
    Side note: I'm assuming the double a (%%aa) in your answer is a typo? I tried copying it just in case, but no joy :)

Maybe you are looking for