Invalid Character in Email Address Check Query [SOLVED]

I have been asked to identify a list of all email addresses on our system which contain invalid characters.
Acceptable characters are: 1-9, and a-z, and also '\','.','@'.
Is this something a regular expression would be able to handle?
I have made a start via:SELECT fu.user_id
     , fu.user_name
     , fu.email_address fu_email
  FROM applsys.fnd_user fu
WHERE (
           fu.email_address LIKE '%(%'
        OR fu.email_address LIKE '%)%'
        OR fu.email_address LIKE '%,%'
        OR fu.email_address LIKE '% %'
        OR fu.email_address LIKE '%+%'
        OR fu.email_address NOT LIKE '%@%'
        OR fu.email_address NOT LIKE '%.%'
       );But that seems pretty clunky, because I will have to add a new line for every character I want to search for. I have seen regular expressions being used for similar in the past, but I cannot tailor regexpressions to suit my need, because I find them really confusing.
Thanks
Message was edited by:
jimr

Thank you very much Frank and Anthony. We're not on Oracle 10 so the Translate option worked brilliantly - here's the answer, in case it is of help to anyone else who might have the same issue:
SELECT fu.user_id
     , fu.user_name
     , wlr.notification_preference
     , wlr.email_address
     , DECODE(
          TRANSLATE(
             LOWER(wlr.email_address)
           , '+0123456789abcdefghijklmnopqrstuvwxyz.@/-'
           , '+'
        , ' ', 'SPACE'
           TRANSLATE(
              LOWER(wlr.email_address)
            , '+0123456789abcdefghijklmnopqrstuvwxyz.@/-'
            , '+'
       ) invalid_character
  FROM applsys.fnd_user fu
     , applsys.wf_local_roles wlr
WHERE wlr.NAME = fu.user_name
   AND wlr.orig_system = 'PER'
   AND TRANSLATE(
          LOWER(wlr.email_address)
        , '+0123456789abcdefghijklmnopqrstuvwxyz.@/-'
        -- + followed by all the acceptable characters
       ,  '+'
       ) IS NOT NULL;

Similar Messages

  • Avoid Email address check while creating or changes functional location PM

    Hi Experts,
       We have upgraded 4.6C system to ECC 6.0 with EHP4.
    We are tring to change the existing functional location created in 4.6c through tcode IL02 -> location tab -> Email address.
    and tring to maintain value as 'CAP 20/20/97' in email address field but it pop-ups with the error message as
    'Email address 'CAP 20/20/97' is invalid'.
    We know this is a SAP standard check but as part of the AS IS functionality, end user is able to maintain the same value in 4.6c and expecting same in ECC 6.0.
    NOte : End user is using this field SMTP_ADDR (Email address) for multiple purposes.
    When we reached SAP, following is the SAP responce.
    This validity check is in compliance with RFC 2822.
    This behaviour is standard since note 799902. If you would like to see
    this functionality changed then please proceed as outlined in the
    attached note 11.
    Can any one provide work around solution to avoid the Email address validity check ?
    Regards,
    Suresh Goud.

    Hi Pete,
    I just want to find out the reason for occuring this issue in ECC 6.0. Is because of any incomplete validation / missing configuration / implementation of any other SAP Note ? PFA the SAP note details for your easy reference.
    SAP Note No. 1546997 
    Number 1546997
    Version 1
    Processor
    Processing Status New
    Implement. Status Cannot be implemented
    Language EN
    Short Text Correction of translation of '<Email address & invalid>'
    Component XX-TRANSL-NL
    Long Text
    Symptom
    Wrong translation /
    Reason and Prerequisites
    Solution
    Translation of objects using transaction SE63 (see further below)
    Transport Object(s):
    PgID Object Name
    LIMU MESS XS138
    Package: SCON
    Software Component: SAP_BASIS
    Application Component: BC-SRV-COM
    Translation Guideline:
    English Text: Email address
    Other terms
    SE63, SE91
    Valid Releases
    SAP Basis component
    SAP Note No. 1546997 11/11/2013 Page 2
    46C
    620
    640
    700
    710
    711
    701
    702
    720
    730
    Links to Support Packages
    Software Component Release Package Name
    Thanks & Regards,
    Lakshmi S

  • Valid email address check

    Hello everyone out there (on this sad day),
    I'm looking for a uri to a code snippe/method that checks whether a given string could be an email address.
    Thanks in advance for your help!

    You mean, something like...
    public boolean checkEmailAddress(String submission)
         Char[] addy = submission.toCharArray();
         boolean hasAt  = false;
         boolean hasDot = false;
         for (int i = 0; i < addy.length; i++)
              if (addy[i] == '@')
                   hasAt = true;
              if (addy[i] == '.')
                   hasDot = true;
         if (hasAt && hasDot) {return (true);} else {return (false);}
    This is pretty simple, just checks for an @ symbol and a period. You might want to expand it to look for things like "net," "com," and "org" immediately following a dot.

  • Query Builder not locating emails based on email address, only the display name will work.

    I am trying to set up some search folders for Outlook 2010 for emails either to or from a specific domain name.  I am using the Query Builder to set up the logic for the search criteria.  
    Here's an example of what I am trying to do.
    I have three people from a specific company that I want all emails I either send them or they send me to go to.  Their email address are as follows:
    Jane Doe <[email protected]>
    John Doe <[email protected]>
    Mary Smith <[email protected]>
    Here is the issue I am having.  When I set up the criteria for the search folder, entering From --> Contains --> [email protected] (or any of the other addresses mentioned above) will return no results.  Entering From ---> Contains
    --> companyxyz.com will yield no results.  Only entering From ---> Contains --> Jane Doe will yield any results. 
    If I use the From field in the standard Messages Tab of the Search Folder Criteria window then just entering companyxyz.com will give me all the messages.  The problem that I have is that I cannot set up any OR conditionals with this standard field
    which is why I am using the Query Builder.
    My question is why doesn't the actual email address work for a search criteria in Query Builder and how can I set up a criteria for a domain name (@companyxyz.com) so that I can see all communication with a particular company?

    Hi,
    This is the expected behavior of Outlook.
    The Search Folder Criteria dialog has two From fields. One From field is under Messages tab and another From field is under the Advanced (or Query Builder) tab. The From field under Message tab uses email address while
    the From field under Advanced or Query Builder tabs uses the display name. So, when we want to use Query Builder to create a Search folder that filters by email address, the Query Builder ignores the email address and uses the display name instead.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I want to change my primary email address

    I wan to change my btinternet primary email address to another one, either my sub account address or a new one.  I don't mind which.  I've been trying for 9 days now to have this done, and BT keep saying they'll do it but they haven't.
    Has anyone else tried to do this and if so have they actually succeeded in getting a new primary email address?
    Thanks
    Solved!
    Go to Solution.

    Hi harrybeadlebaum
    Thank you for your reply it is much appreciated.
    Basically I want to change my primary email address as I've changed my surname following separation from my husband, and don't want any association with my old name which it was.  I wish it was only spam I want to get rid of.  Yes, you're right, I'm using webmail not outlook or similar.
    Unfortunately I've already begun the long and tortuous process of getting my primary email address changed and am now on day 9 of frustrating emails, telephone calls with the call centre in India (or somewhere)  Each time I talk to someone they assure me it will be done in 24 hours, 48 hours, by the end of the day..... I expect this sounds familiar to you if you've been there?  Your comment about a breakdown in communication is perhaps an understatement!  I've come to the conclusion they fully understand what I want but just aren't interested in seeing it through. All they want to know at the end of the phone call is if I'm happy with how they've dealt with my call.  Well yes I am at the time, as they understand what I want, relay back to me what I want, but don't actually deliver.  Promises, promises, promises.
    I've now lodged a formal complaint to BT and am sure I'll get the usual responses about process, systems, blah blah blah...
    Sigh.  As you may guess I'm absolutely fizzing about it all!!  I've already wasted hours of my life chasing it, just can't stop though - don't give up!!  However, am pleased to know that someone has got it done,  so I'll just keep trying and boy is it trying....
    Rant over,  I'll let everyone know how I get on!
    From a very irate and now crabby mrs blobby

  • ODS Can't Activate by invalid character

    Hi all,
    I have a problem about ODS can't activate.
    I have loaded a full request from SAP R/3 into ODS (SAP BW) is completed but my request can't activate. I have tried check error and I met error display as
    Value 'ELAMES   ' (hex. '454C414D45530D0A2020205B ') of characteristic ZREQUSTER contains invalid character
    and then I check error value at PSA that its have ##   at this value as "ELAMES    ##"
    My solution is
    1. I deleted request at ODS.
    2. go to PSA and deleted  ##  at error value and then go to RSA1 > PSA > Start update Immediatly to data target
    this solution can resolve this problem but its manual solution.
    Please help me about better solution for resolve this problem.
    Hope its help
    Sue.

    Do a search!!!
    Here is some regex code I use..
    data: w_desc_uc1 type string,
          w_rex type string,
          w_count type i.
    w_desc_uc1 = TRAN_STRUCTURE-ITM_DESCRIPT_UC.
    w_rex = '[\f\n\r\t\v]'.
    * In the above declaration
    *\f = form feed, \n = newline, \r = carrige return, \t = horizontal tab,
    *\v  = vertical tab
    replace all occurrences of regex w_rex in w_desc_uc1  with '|'
    REPLACEMENT COUNT w_count.
    if w_count > 0.
      do w_count times.
        replace '|' with space into w_desc_uc1.
      enddo.
    endif.
      RESULT = w_desc_uc1.

  • Contact Email Address

    Is there any way to blank out or clear an invalid contact's email address if you don't have a valid one? We would like to reduce the number of bounced emails back from On Demand's mass email program.

    Hi woodysenior 2011
    Welcome to the forums the best suggestion is to contact the forum mods they can get that organised for you here is the NEW link to them
    http://bt.custhelp.com/app/contact_email/c/4951
    they normally reply by email or phone within 72 hours
    the post you found is now over a year old and the contact details changed earlier this year the mods are UK based and have a great record of getting issues fixed
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • E71 - Where does it store email addresses?

    Hi,
    Having got the E71 to send / receive emails, I can't find anywhere to store addresses... Have I got to load the CD into my PC and synchronise the 2?
    My contacts folder only offers me phone no's - why no email? I can send and receive them....
    Thanks in advance.
    BTW - The manual makes no mention of email address contacts.
    Solved!
    Go to Solution.

    Figured it. It won't let me add email addresses to old contacts from old SIM card, but lets me add them for new contacts...
    Can you add email addresses to contacts transferred from an old SIM, or do you have to manually rewrite the contact in?

  • Stop displaying recent contacts (cashe) in compose email address fields

    In Blackberry 10, when I try to send an email to one contact (who I do 15-20 times a day) the top auto filled address is incorrect (missing the .com suffex). Say the contacts name is Ark and his email is [email protected] When I type Ark, "ark@bunnypop", shows up as the top address. The actual email address ([email protected]) shows up at the bottem of the list. There is no contact saved with "ark@bunnypop" as a contact field.
    Solutiong from OS5-7 were simply removing cashed email addresses.
    Thanks
    Solved!
    Go to Solution.

    back on topic....
    It is currently not possible to remove those cached email addresses, sorry.
    If you select the correct one enough times, it may become the top suggested address.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Trying to set up a group email "RAM" that will contain multiple email addresses.  Receive error messages "check SMTP settings" or "Invalid email address" when I try to send a message to the group.

    I am trying to set up the group email "RAM" that will contain multiple email addresses.  I have inputted the name "RAM" as a corporation.  In the section labeled "Email" I have inputed multiple email addreses so that when I want to send an email to the group "RAM" I just have to input the name "RAM" in the section labeled "To" , input the Subject in the Subject box & the email will be sent to the multiple addresses, yet when I do I receive either one of two error messages being "Invalid Email Address" or "Check SMTP settings" each of which allows me the option of with cancelling the email or send it anyway.

    Bump. I'd like to know, too. I even have some synched Groups from my Apple Address Book I email to using Apple Mail on the Powerbook, but I can't see how to do a group mailing on the Touch either.
    In normal Mail, I just start typing the name of the group, and it autocompletes, I hit return, and it fills in all addresses in the Group.

  • When I try to use FaceTime on my Macbook Air, I try to verify the email I want people to call me with, and it says verified, but soon an message comes up that says "Could not verify the email address. Please check your network connection and try again."

    So our school lets us use Macbook Airs for the school year, and it has facetime on it. I know facetime isn't blocked because like everyone else is using it. So I decide to give it a try. I click the icon, it says enter your apple ID. I dont have one, so I click to make one, and do so. I then enter my apple ID and click next. The screen reads "People will call you using your email address. What email address would you like to use?" I enter my email address in the box below the message, and then go to my email and click the link, and sign in, thus verifying the email. I go back to the facetime window, and click next. At the top it says Verified, but when I click next it doesn't go on to the next step, it simply blacks out the next button so that I can not click it, and after a few minutes a message comes up that says "Could not verify the email address. Please check your network connection and try again."
    So that is the issue, please help!!!!!
    *Note-I repeat that I know it is not blocked by the school because everyone else uses it just fine.*

    Hello BassoonPlayer,
    Since you are using one of the the school's Macbooks, it is quite possible that the time and date are not properly set on the computer that you are using.  FaceTime will not work if you do not have the proper time zone set up for the location that you are in.  This past week, there were a two other Macbook users I've helped by simply telling them to set the Date/Time properly.  By the way, you described your problem very well, which makes it easier for us to help you.  Hope this solves your problem -- if not, post back and I can suggest other remedies.
    Wuz

  • My Apple ID is registered in wrong email address. How can i change it or else when the server reply me to check my email that i can't check due to they sent to wrong email address...

    Please give advice of how can i change my Apple ID (email address) as it is wrong address. Like i just update my iPhone to latest version 6.0, and get the new app, iCloud which need me to key in my Apple ID and Password. I have no choice to use the wrong email address as it is already registerd since from 1st day i use my iPhone. Then i received the reply that tell me to check my email for verifing but the problem is i can't check my gmail as they sent to the email is not my actual gmail address....
    How can i solve this problem?

    You may change your Apple ID to any email address that is not already used as another Apple ID, or that is not already associated with another Apple ID.
    In other words, if I have an Apple ID [email protected], and have alternate email addresses of [email protected] and [email protected], none of them may be used by me or anyone else for an Apple ID, Rescue Email, alternate email, or anything Apple-related.
    If the Apple ID link above indicates your email is already in use then it is. Use https://iforgot.apple.com, select Forgot your Apple ID? and provide the information requested. If the email address is one you created and can still access, you may be able to retrieve it. If it is one someone else created, you will not.

  • Invalid hotmail email account, can't solve the problem please help

    Hi,
    I got an email from my network required update password. I've entered her email address and password repeatedly and received the following message: 
    Invalid email address or password. Please verify your email address and password. The information you provided is incorrect. If the error persists contact hotmail.com (your email provider). Please try again. 
    Now I tried this more than 10 times from the blackberry email wizard and from my computer and still received the same messages. Also tried to change new password and set up again However still the same. I have 3 hotmail accounts, another 2 work well except my main email. (all of them are my personal email)
    Anyone can help?? Have no idea what wrong with my bb or hotmail. I went to Optus today, one of a staff said Sorry i can't help u as i have no idea about blackberry!!!! please help me.
    tried to delete and set up, take battary out ect... still can't set up it.

    All, please try it again now.
    By the way, my guy feeling is this is/was a MSN/Hotmail/Livemail server issue, as only those accounts were affected. Others such as Yahoo, gmail, etc., were not.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • What are valid and invalid email address characters

    What are valid and invalid email address characters in Exchange 2010, for example can you have Conan.O'[email protected] is there a document that shows the valid and invalid sysmbols?

    Hi
        The format of email addresses is
    local-part@domain where the local-part may be up to 64 characters long and the
    domain name may have a
    maximum of 253 characters - but the maximum 256 characters length of a forward or reverse path restricts the entire email address to be no more than 254 characters.<sup id="cite_ref-0">[1]</sup>
    The formal definitions are in RFC 5322 (sections 3.2.3
    and 3.4.1) and RFC 5321 - with a more readable form given in
    the informational RFC 3696<sup id="cite_ref-1">[2]</sup>
    and the associated errata.
    Local part
    The local-part of the email address may use any of these
    ASCII characters
    RFC 5322 Section
    3.2.3:
    Uppercase and lowercase English letters (a–z, A–Z) (ASCII: 65-90, 97-122)
    Digits
    0 to
    9 (ASCII: 48-57)
    Characters
    !#$%&'*+-/=?^_`{|}~ (ASCII: 33, 35-39, 42, 43, 45, 47, 61, 63, 94-96, 123-126)
    Character
    . (dot, period, full stop) (ASCII: 46) provided that it is not the first or last character, and
    provided also that it does not appear two or more times consecutively (e.g. [email protected] is not allowed.).
    Special characters are allowed with restrictions. They are:
    o   
    Space and
    "(),:;<>@[\] (ASCII: 32, 34, 40, 41, 44, 58, 59, 60, 62, 64, 91-93)
    The restrictions for special characters are that they must only be used when contained between quotation marks, and that 3 of them (The
    space, backslash \ and
    quotation mark " (ASCII: 32, 92, 34)) must also be preceded by a backslash
    \ (e.g.
    A quoted string may exist as a dot separated entity within the local-part, or it may exist when the outermost quotes are the outermost characters of the local-part
    (e.g. abc."defghi"[email protected] or
    "abcdefghixyz"@example.com are allowed. Conversely,
    abc"defghi"[email protected] is not; neither is
    abc\"def\"[email protected]). Quoted strings and characters however, are not commonly used.
    RFC 5321 also
    warns that "a host that expects to receive mail SHOULD avoid defining mailboxes where the Local-part requires (or uses) the Quoted-string form".
    The local-part "postmaster" is treated specially - it is case-insensitive, and should be forwarded to the server's administrator. Technically all other local-parts
    are case sensitive, therefore [email protected] and [email protected] specify different mailboxes. However most organizations treat uppercase and lowercase letters as equivalent, and also do not allow use of the technically valid characters
    (space, ? and ^). Organizations are free to restrict the forms of their own email addresses as desired, e.g.,
    Windows Live Hotmail,
    for example, only allows creation of email addresses using alphanumerics, dot (.), underscore (_)
    and hyphen (-).<sup id="cite_ref-2">[3]</sup>
    Systems that send mail must be capable of handling outgoing mail for all valid addresses. Contrary to the relevant standards, some defective systems treat certain
    legitimate addresses as invalid and fail to handle mail to these addresses. Hotmail, for example, refuses to send mail to any address containing any of the following standards-permissible characters:
    !#$%*/?^`{|}~
    Domain part
    The domain name part of an email address has to conform to strict guidelines: it must match the requirements for a
    hostname,
    consisting of letters, digits, hyphens and dots. In addition, the domain part may be an
    IP address
    literal, surrounded by square braces, such as jsmith@[192.168.2.1], although this is rarely seen except
    in email spam.
    Examples
    Valid email addresses
    <tt>[email protected]</tt>
    <tt>[email protected]</tt>
    <tt>[email protected]</tt>
    <tt>much."more\ unusual"@example.com</tt>
    <tt>very.unusual."@"[email protected]</tt>
    <tt>very."(),:;<>[]".VERY."very@\\\ \"very"[email protected]</tt>
    Invalid email addresses
    <tt>Abc.example.com</tt> (an @ character must separate the local and domain parts)
    <tt>[email protected]</tt> (character dot(.) is last in local part)
    <tt>[email protected]</tt> (character dot(.) is double)
    <tt>A@b@[email protected]</tt> (only one @ is allowed outside quotation marks)
    <tt>a"b(c)d,e:f;g<h>i[j\k][email protected]</tt> (none of the special characters in this local part
    is allowed outside quotation marks)
    <tt>just"not"[email protected]</tt> (quoted strings must be dot separated, or the only element making
    up the local-part)
    <tt>this is"not\[email protected]</tt> (spaces, quotes, and backslashes may only exist when within
    quoted strings and preceded by a slash)
    <tt>this\ still\"not\\[email protected]</tt> (even if escaped (preceded by a backslash), spaces, quotes,
    and backslashes must still be contained by quotes)
    Terence Yu
    TechNet Community Support

  • Highlight an invalid email address in a custom workflow activity in SharePoint Designer 2010

    Hi,
    I have created a custom workflow activity to send an email with the 'From' address being taken as input from the SharePoint Designer when this activity is used in a designer workflow. My requirement is to highlight an invalid email address(from address)
    on click of 'Check for Errors' button in SharePoint Designer like it is done for mandatory inputs by default where it highlights such inputs if left blank. Is it possible?
    Thanks in advance.

    Good work, catch so far Michael, does seem to be a "feature" of iCloud syncing, not sure what you could do to disable it.

Maybe you are looking for

  • CUP Provisions user to SAP successfully but gives "Auto-Provisioning" error

    Hi All, I'm getting an "auto-provisioning" error in CUP when a "Change Account" workflow is approved. The strange thing is, CUP does successfully provision the change to the SAP backend. Yet, the "New Account" provisions successfully without the erro

  • Problem with pasting table into text file as text. 09 is different from 08?

    Okay, here's what I'm doing. I've got a table in Numbers which I want to make into a table on a web page. Here's what used to work with Numbers '08 and OS 10.5: Select cells. Copy. Open TextEdit. Paste and Match Style. Make Plain Text Save As (filena

  • File to JDBC Adapter

    Hi All I am trying to configure File to JDBC Adapter to insert data in the database .I am having problem with message mapping.I  get the error with the statement field in mapping .Please can anyone let me know what mapping changes need to be done My

  • Unable to use the Copy function while submitting the program for XML output

    Hi when i submit the concurrent program with XML output type, getting the output.. when i submit he concurrent program using the copy button not able to get the output, my observation while submitting the program the xml template is not called.... Di

  • Changing the startday of the week

    Hi Gurus, I recently do a migration from 10g to 11g. But in 10g ,the startday of the week is Monday(customised one xml file) But in Obiee 11g,how to assign the startday of the week as monday Pls help