Expression help in SSIS!!!

Hi,
I have the below expression:
ISNULL(@[User::PROCESS_DATE]) || TRIM (@[User::PROCESS_DATE]) == "" ? "1900-01-01" : (@[User::PROCESS_DATE]) == SUBSTRING(@[User::PROCESS_DATE],1,4) + "-" + SUBSTRING(@[User::PROCESS_DATE],5,2) + "-" + "1"
i get the following error:
The data types "DT_WSTR" and "DT_BOOL" are incompatible for the conditional operator
The variable Process_date is char(6) and the destination column is datetime..

SSIS JOOST,
      the above expression works fine when the value is 201105 but for null or blank values its throwing an error: for empty string
ADDITIONAL INFORMATION:
Error code 0x80020005 occurred attempting to convert from data type DT_WSTR to data type DT_DBTIMESTAMP.
Casting expression "(SUBSTRING(@[User::PROCESS_DATE],1,4) + "-" + SUBSTRING(@[User::PROCESS_DATE],5,2) + "-1")" from data type "DT_WSTR" to data type "DT_DBTIMESTAMP" failed with error code 0xC00470C2.
For NULL Values:
ADDITIONAL INFORMATION:
Error code 0x80020005 occurred attempting to convert from data type DT_WSTR to data type DT_DBTIMESTAMP.
Casting expression "(SUBSTRING(@[User::PROCESS_DATE],1,4) + "-" + SUBSTRING(@[User::PROCESS_DATE],5,2) + "-1")" from data type "DT_WSTR" to data type "DT_DBTIMESTAMP" failed with error code 0xC00470C2.
I used expression editor tool for evaluating this expression

Similar Messages

  • Will an Airport Express help with the signal I am not receiving on my Smart TV?

    Will the Express help with internet issue's I have with my new Smart TV?

    If you already have another Apple AirPort router that is providing your wireless signal, then a new AirPort Express could extend that wireless signal to provide a stronger wireless signal to the TV....assuming that the TV connects using wireless.
    Is this what you are asking?
    Or, would the Express provide other services to "help"?

  • My ipad 2 and ipod touch keeps on dropping wifi connection,  would getting an apple router or maybe airport express help?

    ipad 2 and ipod touch  keeps on dropping wifi, would upgrading to an apple router/airport express help?  all my other pc's work well with my current network.

    Have you checked for a firmware update for your current router?
    What make, model, version router do you have?

  • Regular Expression Help

    I need help writting a regular expression that will match the following strings:
    1+1,1+(1+1),((1+1)+(1+1)),1+(1+(1+1)). Basically one that will match an arithmetic expression (operands limited to 1's and operators to '+' sign) with or without correctly matched parentheses. Have'nt had much luck so far. Any input will help. thanks

    okay, you asked for it:
    [1+()]+
    it will only match those string but it will tell you nothing about syntactically correct expressions. This is because these types of expression are not "regular" and cannot be properly parsed using regular expressions.

  • EXPRESSION help,layer markers

    Hi
    I've got a comp with one camera and 100 3d layers distributed randomly in 3 space.Each layer has got a different z-Rotation value.
    The camera animates from one layer to the other via script (the script generates
    automatically layer markers and keyframes for each animation).So,there are 101 layer markers.
    Example:
    The camera moves between layer marker 2+3 from layer 2 to 3 for example.
    Layer 2 has got a z-rotation value of -14° and layer 3=>45°.
    basically,i need a camera (z orientation) expression so the camera animates
    from -14° to 45° between these two layer markers and so on.
    THX

    Yeah, what part of the equation do you not understand? The first part simply checks whether markers exist at all, then counts them down until there are none left after a given time. If you want to blend between the different values, you'd simply need to plug the marker times into the remapping. Something like this:
    markNow=marker.nearestKey(time).index;
    markNext=marker.nearestKey(time).index+1;
    timeNow=marker(markNow).time;
    timeNext=marker(markNext).time;
    rotationNow=thisLayer.transform.zRotation.valueAtTime(timeNow);
    rotationNext=thisComp.layer(index+1).transform.zRotation.valueAtTime(timeNow);
    rotationFinal=linear(time,timeNow.timeNext,rotationNow,rotationNext)
    You only need to include this in the curly braces or return n outside the function to make use of this. Haven't tested it, as I'm not in front of AE, but on an abstract level this is how it should work. Hope it helps to get yoou started.
    Mylenium

  • Expression help with time remapping

    Hi
    I have a 25fps Precomp with an animation that changes on every frame.
    In the master comp I want to apply an expression to its time remap property so that it holds on each consecutive frame for a given duration, eg on Frame 1-15 we see frame 1 of precomp, on frame 16-30 we see frame 2, and so on.  I can't figure this out. Tried posterizeTime and some other bits to no avail and can't find it elsewhere on the web.
    Thanks, Steve

    <Big sigh of relief> Thank-you Dan.
    I read your expressions everywhere on the web and when I need a little help you are there within MINUTES!
    You are such an asset to the AE community.

  • Expression help needed - control speed of a pan via a slider

    I've done this in the past but can't locate my old project, and my head is throbbing from last nite.....
    I'd like to apply an expression to my null's position. I want it to pan horizontally at a speed specified with a slider control. I'd like it to be able to start, stop, and then continue. Doesn't need to ease in, but it'd be nice.
    Speed = effect("Speed")("Slider");
    OffsetX = effect("Offset")("Point")[0];
    fps = 24;
    x = OffsetX - (Speed * time * fps);
    [x,243]
    My problem multiplying "speed" with time means that when it stops (speed=0), it returns to the start position.... I need it to stay in place, and then continue when I animate the speed value back up.
    Please help my hungover brain....

    Here's a quick and dirty method:
    >v = effect("Velocity")("Point");
    vSum = 0;
    for(t = 0; t <= time; t+=thisComp.frameDuration) vSum += v.valueAtTime(t);
    value+vSum*thisComp.frameDuration
    Unfortunately, it is pretty slow to calculate, and just gets slower the further you go down the timeline. Also, it doesn't actually produce continuous motion, so it doesn't play well with motion blur.
    I'm working on a much more efficient expression that does work with motion blur, but I can't seem to get it to behave once you get past the last keyframe. If I have a breakthrough, I'll post it.

  • Expression Help.  'Every 3 frames move right 1 pixel'?

    Hello,
    Im trying to solve an issue i am having with aliasing on sliding text.
    I would like to drop an expression on my text layer (bitpmap).
    ie, i want to slide the text 30 pixels over 90 frames.
    If i do that using simple keyframes, the text blurs a bit when not on an whole number frame( 30.3)
    Is there an expression i can use so that the text is moved one whole pixel, but not until 3 frames has passed?
    Thanks very much for any help!
    QMP

    X=Math.floor(timeToFrames(time)/3);
    Y=position[1];
    [X,Y]
    Mylenium

  • Expression help. Opacity using a null slider

    Hi,
    I'm using the expression below on a few layers in order to achieve a 'rolodex' look. The expression was applied to the x axis of the layers.
    numCards=thisComp.layer("Null 1").effect("numCards")("Slider");
    viewCard=thisComp.layer("Null 1").effect("viewCard")("Slider");
    v=((index-1) * (360/numCards) + viewCard*(360/numCards))%360;
    if (v<10) {
    ease(v,0,10,-20,120);
    } else {
    linear(v,10,360,120,340);
    I would like to make it so that I can control the opacity of the given layer so that lets say when the 'card' (layer) in question is at a certain point in its cylce the opacity will go from 0 to 100 and then fade back down to zero.
    This expression was taken from somewhere else, and I'm learning them (but slowly).
    Thanks a lot for your help!
    Luke

    Just copy&paste the expression, then substitute the values in the ease() and linear() functions to fall within sensible ranges for opacity. The code is pretty unsafe and unelegant, though. if I were to do it, I'd create completely different one...
    Mylenium

  • Column Visibility Expression help - SSRS

    I have a report in SSRS that has 12 columns. On each column, I have a corresponding column visibility expression like so:
     =IIF(InStr(JOIN(Parameters!HideColumns.Value,
    ","),"01")=0, False, True)
    Where I have the "01" I change to "02","03","04","05","06","07","08","09","10","11"
    & "12" respectfully across my column. The intent is to pass a parameter and allow the end user to "Hide" the column from visibility to allow them the flexibility on printing records. The issue I am having is I need a default that allows
    them to not hide anything, meaning print all 12 columns. Right now, its forcing me to pick one column to hide, is there something I could add to this to say, All? Hope this makes sense.

    Hi,
    For default value of this parameter(Parameters!HideColumns.Value)
    add  a value that is not in 01 to 12 .
    As an example if you  add 13 to the  default value   of the parameter, than  your expression will not hide the column 
       =IIF(InStr("13",
    ","),"01")=0, False, True) 
       =IIF(InStr("13",
    ","),"02")=0, False, True)  and so on.
    Many Thanks
    Chandra
    Please mark the post has answered if this post helps to solve your issue

  • SSRS colour series expression help

    Hi, I have created a graph in SSRS which measures the number of appointments booked against a target.
    The expression for the appointments series is:
    =Switch(Fields!DateCol.Value <= Today(),RunningValue(Count(Switch(Fields!SubCategory.Value = "Booked Appointment - System",Fields!NoteId.Value)), SUM, Nothing))
    And the target is simply:
    =RunningValue(Avg(Fields!Target.Value), Sum, Nothing)
    I have coloured the target line in black but I was wondering if it is possible for my appointment series line to be green if above target and red if below target?
    I've never tried this before so any help would be much appreciated!
    Thanks.

    Hi SRidgley,
    Could you please try to provide more details information according to the questions below to help us better understand about your requirements:
    What is the chart type you are currenttly using?
    If possible, please try to provide the snapshot of the chart in the view mode
    Could you please also provide some details information about which field you put in the "Values","Category Group" and "Series Group" and if possible, please provide sample data for me to test.
    I assumed that you have the similar requirements as in the thread below, please take reference:
    https://social.technet.microsoft.com/Forums/en-US/4310fd02-ef84-4874-b11e-993ff2943f6f/how-to-display-the-actual-reading-alone-the-dot-and-conditional-change-the-color-of-the-dotfigure?forum=sqlreportingservices
    If you still have any problem, pelase feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Printing problem with Extreme, but not with Express - HELP!!!

    Hi.
    I have a Hewlett-Packard hp LaserJet 3020.
    It works fine with my Airport Express but
    when I connect it to my Airport Extreme it
    wont work. The printer is on the list and
    the "printing" light on the printer is
    flashing when it is printing. But no paper
    is printed...
    HELP ME OUT!
    Cheers, Ed

    Yes, I did install the Bonjours for Windows software and I still get the message thet the PC does not communicate with the printer.

  • I have read all of the similar issues on this site and I still cannot connect my airport extreme (although there is no problem with my old airport express - help...

    i have read all of the numerous and similar issues on this subject.  and i still cannot connect my new airport extreme.  my old airport express works fine still.  help.  and why are there so many issues with connecting this stuff?  i thought this stuff was supposed to be getting easier, not harder... thanks.

    Sorry, but I have no idea on what you have read and tried so far so please forgive me for any redundancy.
    Is your AirPort Extreme the only router in your current network configuration? Which exact model is it? If there are other routers being used, please provide their make(s) & model(s). Also the make & model of your Internet modem.
    What is your goal with the Extreme? Is it to replace the "old" AirPort Express? Will you still be using the Express for any reason(s)?

  • Extreme and Express help... can't seem to co-exist?

    Hey guys and gals. I'm having a bit of a problem with my AirPort Extreme and Express and need your help/recommendations. Okay first some background info...
    I have a MacBook Pro (C2D), an Apple TV, and an iPhone that all connect to my AirPort Extreme (n draft spec). I had the AirPort Extreme running at n (b/g compatible). No problem.
    Then I decided to get an AirPort Express so that I could stream my music from iTunes over to my Allen & Heath Xone 92 mixer and thus my nice Mackie studio monitors (i.e. use AirTunes to stream music to speakers). In hooked up all the hardware (i.e. the monster cable and the power cord) for the Express, then installed the supplied AirPort CD. I then phoned Apple Care because I didn't want to mess anything up. I don't remember what steps I took exactly with the representative, but basically at the end of the day we got the music to stream. Great! Well not so much... I didn't realize while I was on the phone that we had actually set up (I think this is correct) 2 "networks"... one was the AirPort Extreme, the other was the AirPort Express. So if I wanted to use the internet, I had to choose Extreme. If I wanted to stream music, I had to choose Express and no choice of using both at the same time.
    So yesterday I phone Apple again... Explain the situation, and we hard reset both the Extreme and Express, this time setting up the Express as a WDS (wireless distribution system). Now I can use the internet and stream music at the same time. Great! Well not so much... now whenever I stream music it cuts out for minutes at a time, not really working properly.
    So I phone Apple for the third time... We change a whole bunch of settings, delete preference files (BIG mistake... reset all my energy settings, .Mac, etc.... thanks Apple!!!!) and at the end of like 4 different scenarios basically reset the Extreme and Express, but this time under the guise that the reason the last setup was cutting out while streaming music was that the Extreme was using WPA2 security and the Express only really likes WEP. So I change to WEP when I hard reset the Extreme, hard reset the Express, do a WDS and everything seems to be working (while on the phone with Apple). Great! Not so much... hahahaha.
    So now the issue is that I can't connect to the AirPort Extreme network all the time... it shows up under my lists of networks (along with some of my neighbor's networks) but OS X will not automatically connect to it. When I select it I get the "error while trying to connect" error. Also my iPhone will not automatically connect to the AirPort Extreme either.
    So basically what the heck is going on??? How can I have my AirPort Extreme, AirPort Express, iPhone, and Apple TV all co-exist on a network and be able to at the same time browse the internet and stream music over AirTunes???
    Sorry for the long read... Please help!
    -Keith

    Unless you have a requirement to extend your 802.11n AirPort Extreme Base Station's (AEBSn) wireless network with the AirPort Express Base Station (AX), then you only needed to set up the AX in "client mode" to stream iTunes.
    AirPort Express Base Station (AX) - iTunes Setup
    Either connect to the AX's wireless network or connect directly, using an Ethernet cable, to the Ethernet port of the AX, and then using the AirPort Utility in "Manual Setup" mode, make the following changes:
    AirPort > Base Station
    o Base Station Name: <rename or leave default>
    o Base Station Password: <enter desired password>
    o Verify Password: <re-enter desired password>
    AirPort > Wireless
    o Wireless Mode: Join a wireless network
    o Network Name: <existing AEBSn's wireless network>
    o Wireless Security: <select the encryption type of the existing wireless network>
    Music
    o Enable AirTunes (checked)
    o Enable AirTunes over Ethernet (optional)
    o iTunes Speaker Name: <enter desired speaker name>
    o iTunes Speaker Password: (optional)
    o Verify Password: (optional)

  • Regular expressions help

    I'm using a RegExp class (http://www.jurjans.lv/flash/RegExp.html) to do some regular expression in AS2. But I'm not very good at it.
    var str:String="What if there are other variables, such as possible <a class='gloss' href='asfunction:_root.handle, confounding variables'><b>confounding variables</b></a> which could explain at least some of the relationship between the two variables? Here <a href='' target='_blank'>is another link</a>.\n<a class='gloss' href='asfunction:_root.handle, confounding variables'>confounded variables</a>"
    var reg1:RegExp = new RegExp("<a.*gloss.*href=[\'\"]?([^\\\'\">]+)>+(.*</a>)", "ig");
    var obj:Object = reg1.exec(str);
    while (obj != null) {
              for(var a in obj){
                        if(!isNaN(a)){
                        trace(a+": "+obj[a]);
              trace(newline);
              obj = reg1.exec(str);
    And this traces:
    2: <b>confounding variables</b></a>
    1: asfunction:_root.handle, confounding variables'
    0: <a class='gloss' href='asfunction:_root.handle, confounding variables'><b>confounding variables</b></a>
    2: confounded variables</a>
    1: asfunction:_root.handle, confounding variables'
    0: <a class='gloss' href='asfunction:_root.handle, confounding variables'>confounded variables</a>
    I'm trying to get the href and the "friendly link" part of the anchor tag (but only for anchors that have a class of gloss).
    As you can see I'm almost there, but I'm getting the extra </a> and the extra ' on the two examples. I tried putting the ) before the </a> but that just broke it. (Of course that could be because this class doesn't work properly, but I'm guessing that isn't the case.)
    Anybody really good with regular expressions who can help me out?

    Looks like there is a "greedy" bug with the () in that AS2 implementation.
    I also have a problem the expression matching not the next occurance of the closing </a> but the final one.
    Anybody have any ideas of other ways to do this?

Maybe you are looking for

  • MRS (Multi Resource Scheduling) - Automatic splitting and calc. of AA/RU

    I'm at a bit of a loss to figure out the cause of this issue I'm having.  In our Sandbox if I assign a demand to a resource and the criteria from the Automatic Assignment Split from the Planning Board Profile is met then the demand is automatically s

  • Payment Terms (ZTERM) - Appears in FB60 but not FB70

    Hello all, Currently our system does not show the Payment Terms field in Tcode FB70 (Enter Customer Invoice).  There is a requirement to have this field appear. However, when going to Tcode FB60 (Enter Vendor Invoice), the Payment Terms field appears

  • Web Service to IDoc scenario: No receiver could be determined error

    Hi. I am working on a web service to IDoc scenario. I am receiving this error: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Receiver Identification   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://

  • After Edit Library Item-  "Premature end of JPEG file"

    Hello, I'm using Windows 7 Home Premium 64-bit.  In DW CS5 after editing a Library item and saving, DW asks if it should update pages containing the item.  I tell it to go ahead, and after some processing I get an error box titled "JPEG Library Error

  • Foreign vendor

    Our home currency in SAP is ZAR and we have to procure material in foreign currency(NAD). But I dont have any idea how this procurement process works...Actually there is no currency factors or currency type update in FI side.....but i need basic clar