Need Help With Findstring

Apr 26, 2007

I am trying to use Findstring to find " in a text file but it wont let me use that as a search type.



This is what I am trying to use.

substring([Raw Data],findstring([Raw Data],""",1)+1,26)



What do I need to put for the Search expression to find "

View 3 Replies


ADVERTISEMENT

Findstring Problem

Nov 22, 2007

Hi,

I have a [flat file source] >> [conditional split] with the following:

FINDSTRING("AccountNumber","Account_Number",1) > 0

And it's not working. That is, the rows with Account_Number pass right through.

What's in the file is this:

"Account_Number", "col2", "col3"
"012345", "data", "data"

Is the problem the fact that my search string is not an exact match to what's in the file? That is, there's no double-quotes around it? If so, what is the escape character for "?

Thanks

View 18 Replies View Related

Findstring And Wildcards

Nov 29, 2007

Can you use wildcards with findstring? The documentation does not address this.

So far I haven't had any luck.

View 3 Replies View Related

FindString 2 SubString

Oct 13, 2007

Hi
I€™m trying to link two derived column tasks with the output from the first forming the input for the second.
In the first task I use a €śFindString€? function which outputs a four bit signed integer (SSIS selected). On the second task I try and use this in a €śSubString€? function but the following error is thrown: -
Error: 0xC0049067 at Data Flow Task, Derived Column 1 [1969]: An error occurred while evaluating the function.
Error: 0xC0209029 at Data Flow Task, Derived Column 1 [1969]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "component "Derived Column 1" (1969)" failed because error code 0xC0049067 occurred, and the error row disposition on "output column "Conversion2" (2040)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
Error: 0xC0047022 at Data Flow Task, DTS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Derived Column 1" (1969) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
Error: 0xC0047021 at Data Flow Task, DTS.Pipeline: SSIS Error Code DTS_E_THREADFAILED. Thread "WorkThread0" has exited with error code 0xC0209029. There may be error messages posted before this with more information on why the thread has exited.
I thought it might be a data conversion issue so I put an explicit conversion between the two to convert the Four Byte Signed Integer to a Single Byte Unsigned Integer, but the problem remains
Could any one advise?
Regards
Will

View 8 Replies View Related

FINDSTRING String Function

Sep 21, 2007

I'm having issues trying to build an expression using the FINDSTRING function. Even when I use an example from BOL, I get an error upon clicking the "evaluate expression" button within expression builder saying "Cannot convert system.int32 to system.string".

Here is my test expression...




Code SnippetFINDSTRING("ABC", "A", 1)

Here is the BOL expression...
Code SnippetFINDSTRING("New York, NY, NY", "NY", 1) Both give me the same error message. I even tried casting it to an integer with no luck. Any ideas?
Code Snippet(DT_I4) FINDSTRING("ABC" , "A" , 1)

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved