Cleaning data containing characters &

Hi
One of the Columns in the table contained characters like &amp which is not recognised by XMLpublisher as such user is not getting an output. How can I identify the records containing such characters so that it could be fixed manually.
Thanks in advance
Regards
anna
create table publication
(Publication_id number
,Title varchar2(100)
,Year varchar2(5));
insert into publication values
(100, 'Research on Flu & Vacine', 2008)
insert into publication values
(200, 'Human < Computer &amp Interaction', 2010)

Hi, Anna,
If you're not using substitution variables elsewhere in the same statement, it's easiest to turn off that feature using SET DEFINE OFF; then SQL*Plus will treat & as a normal character.
SET DEFINE OFF
insert into publication (id, title, year) values
(100, 'Research on Flu &amp; Vacine', 2008)
insert into publication (id, title, year) values
(200, 'Human < Computer &amp Interaction', 2010)
-- If you need to use substitution variables later, turn the feature on again:
SET DEFINE ONOther options (in order of likelihood) include:
(1) Escape the special character
(2) Change the character that marks substitution variables (e.g. "SET DEFINE ~")
(3) Use CHR (38) instead of '&'

Similar Messages

  • Date   /  / contains invalid characters IN MODULE POOL

    Hi,
    I have a display field in infotype creation which will take always take current date.I have tried using the screen field as sy-datum and also tried using z-field with data type char or dats.but when ia am inserting values in  a  editable field on the screen and pressing enter ,it is giving the error: "Date   /  / contains invalid characters" .And afetr pressing cancel ,it goes back to the PBO and then pressing f8,it shows the infotype screen designed* but the other functionalities which have been coded in PAI of  screen like activating checkboxes,radiobuttons etc. are not there .Even i have tried passing sy-datum to the date field in PBO of the screen.Pls help.

    Hello Sir,
    Were you able to sort out this issue.
    Would appreciate if you can share the solution. One of our users have this issue in the ADOBE form.
    Let me know please.
    Thanks,
    Akshay...

  • Insertion Data Containing Special Characters

    Hi,
    I exported my table data to an ascii file using TOAD, which created
    the insert statements for me. I intend to insert these data to another database.
    The problem is that the data contains some characters like single quote
    and ampersand which would give problem during insertion.
    Is there a way to go around this as I don't want to waste my time
    changing the characters to ASCII manually.
    Thanks in advance.

    Hi,
    May be its because I am using the free version of TOAD,
    "single quote" is still single quote after I export the data.
    How do people normally solve this? The only way I know is
    to select the data manually and at the same time replacing
    single quote with 2 single quotes instead - (this would be spooled)
    And this is not the only issue. Some field which has
    more than 1 linefeed/carriage return might not be inserted properly also.
    Sample as below:
    insert into table test values
    ('Testing ...
    Insert Data');
    I inserted those data through application programs and intended
    to export out the raw data and import into another database.
    I am not ready to use the imp/exp utility as I don't want to
    drop any tables.
    Thanks in advance.

  • B2B 11g - B2B-51507 - A data element contains characters not listed in the

    How can we change the character set used in b2b ? We are getting the following error when some non english characters are present in the payload. We see the issue also when CRLF characters are present in the payload.
    Error : Element NTE02 (Description) contains characters not listed in the allowed character set. Segment NTE is defined in the guideline at position 030.{br}{br}This error was detected at:{br}{tab}Segment Count: 4{br}{tab}Element Count: 2{br}{tab}Characters: 5077 through 5121

    What is the version and release of B2B are you using? Have you applied any patches?
    I am asking above questions because there is a known bug in B2B with similar problem and there is a patch available for the same.
    Regards,
    Anuj

  • Is there a way to differentiate string containing characters vs. numbers?

    Hello, I am creating an application to read data from a serial port device. The problem is that the device, on startup, outputs a block of text containing characters describing the device. Shortly after, it outputs a command prompt "Command:" It is at this point that I want my VI to input the command to begin taking measurements.
    I was looking at the VISA Wait on Event and it looks like that could be used to wait for the device to output a "Serial Character" but there is no differentiation between letters and numbers that I can tell.
    If the device is outputting numbers in the read string, of course, I do not need to input the command to begin taking measurements again, that will only probably confuse the device. In that case, I would like my VI to continue taking measurements with VISA Read.
    The reason for this is that when I run the application, the device may have already been turned on. Sending that command to the device using VISA Write is unnecessary at that point.
    Any advice would be appreciated. Thanks.
    Solved!
    Go to Solution.

    That makes it alot easier.  In that case this will do the trick.  You'll notice that the bottom case does not match even though it has valid vaules inside of it.  The only thing that will match is if the entire string is of the form XX.XXXX.  By the way, since we are only matching numbers now, you can remove the "ignore case" boolean as it no longer matters.
    Message Edited by SiegeX on 11-24-2008 03:58 PM
    Attachments:
    regex.png ‏4 KB

  • B2B Validation contains characters not listed in the allowed character set

    Hi,
    Working on EDIFACT AS2 INVOIC D05A. B2B 10g with Document Editor Version: 6.6.0.2801
    payload:
    UNA:+.?*'
    UNB+UNOB:4::1+A1103206+XXTPHOME+20110413:0456+30000000000545'
    UNH+30000000000545+INVOIC:D:05A:UN'
    BGM+389+5100256812'
    DTM+137:20110413:102'
    DTM+143:201104:610'
    FTX+CUR+++Consignment stock accounting'
    RFF+AOG:0'
    NAD+BY+A1103206::234++XXXXXXXXX++81379+DE'
    RFF+VA:DE260978148'
    CTA+PD+GC SSC ARP:Yyyy Xxxx'
    COM+49(2871) 91 3481:TE'
    [email protected]:EM'
    NAD+SU+A1082156::234++XXXXX:::[email protected]+Nnnnn 7+Llll+DE-BY+90443+DE'
    RFF+VA:DE256058056'
    NAD+UC+0000000100::92++Gggg Gggg:Hhhh+Kkkkk 2+Bocholt++46395+DE'
    TAX+7+VAT:::19% VAT+DE:133:86++:::19.00'
    CUX+2:EUR:4'
    LIN+000001++UAA3595HN/C3:VP'
    PIA+1+A5B00075796235:BP'
    IMD+B++:::IC DECTUAA3595HN/C3 PA V20810C6323D:670'
    QTY+47:6000.000:PCE'
    MOA+203:660.00'
    CUX'
    I try to validate payload and get 2 errors:
    1. Segment COM type an min length 1 max length 512 payload value: [email protected]
    Error: ub-Element COM010-010 (Communication address identifier) contains characters not listed in the allowed character set. Segment COM is defined in the guideline at position 0350.
    2. Segment group 27 Sub Element CUX payload value is null, value is exists at header level (Group 7 ub-Element CUX)
    Error: Unrecognized data was found in the data file as part of Loop Group 27. The last known Segment was MOA at guideline position 1260 - Validator error - Extra data was encountered.
    Thanks for any help
    Adi

    We fix it by change Character set to UNOC

  • Data model editor cannot save samle XML data if data contains angle bracket

    BI Publisher can correctly query data containing angle brackets, and it produces well-formed XML in that case. Angle brackets are correctly coded as &lt and &gt. However, if you try to save the generated XML as sample XML for the data model, BI Publisher will issue the following error in its log:
    [2012-02-17T14:12:07.491-08:00] [AdminServer] [ERROR] [] [oracle.xdo] [tid: 30] [userId: <anonymous>] [ecid: 4d7950b0e2efed24:2a9da7a7:135894f9533:-8000-0000000000002f73,0] [APP: bipublisher#11.1.1] End tag does not match start tag '...'.
    where '...' would be any characters appearing between the open angle bracket and the close angle bracket. The sample XML data will not save, so you cannot open the report in the Desktop TemplateBuilder for Microsoft Word.
    Note that this bug is not fixed in the latest February patch for version 11.1.1.5.
    Edited by: 906888 on Feb 17, 2012 2:51 PM

    ok...tell me this, are you saying you are encoding the angle brackets or bi publisher is doing it automatically????
    With the data I worked, & (ampersands) were more predominant and I replaced the columns containing them with +& a m p ;+ (without spaces) and everything was fine....
    -bifacts
    http://www.obinotes.com

  • Vertical Elasticity on Field is not working when the data contains - in it.

    Hi,
    I have a report which has to print a large invoice number(around 30 characters) per invoice line, but I got only space for 12-14 characters, so I have set the vertical elasticity property of the field to Expand which makes the data to wrap to the next line.
    But if the data contains any '-' character in it, the data wraps to the next line even though there is enough space on the current line.
    Sample outputs:
    When the vertical elasticity is set to Expand
    <p>
    Invoice Number Invoice Description
    123456789023 First Invoice on first line
    345678957694
    347634763476
    12345678-     Second Invoice but the number gets wrapped because of the hyphen
    345734573476
    569456573456
    When the vertical elasticity is set to Fixed
    Invoice Number Invoice Description
    123456789023 First Invoice on first line
    12345678-345     Second Invoice but the number does not get wrapped after hyphen
    </p>
    Is it a bug on reports editor, how do I avoid this?
    I would like to see the output like the following,
    Invoice Number Invoice Description
    123456789023 First Invoice on first line
    345678957694
    347634763476
    12345678-345     Second Invoice number with correct format.
    734573476569
    456573456
    PS: The version of the Report Builder is 10.1.2.0.2
    Thanks in Advance,
    Senthil

    It looks as if the logic that Oracle Reports uses to determine where to break the line is interpreting the "-" character differently from other characters. This is probably because it is used (at least in English) to break words at the end of a line (see http://en.wikipedia.org/wiki/Hyphen#Justification_and_line-wrapping).
    One workaround might be to replace "-" character with another character (or more) that looks the same (or similar), but that Oracle Reports does not interpret differently from other characters. For me (on Windows), CHR(173) seems to work. However, whether or not it works for you will depend on whatever character set(s) you're using. The same goes for the Unicode characters like U+2010 (hyphen), U+2011 (non-breaking hyphen), and U+2212 (minus).
    For example, in your data model, you might try replacing your current invoice number column with an expression that looks something like this:
    REPLACE(YOUR_INVOICE_NUMBER_COLUMN, '-', CHR(173))
    Hope this helps.

  • Cleaning data before turning into WDDX

    A program I am supporting is displaying behavior that seems
    to imply that WDDX format cannot hold those windows specific
    characters for things like "smart quotes", certain types of dashes,
    etc. Right now, the application takes user input which is being
    stored in cfml structures, turns it into wddx, then puts that data
    into an oracle column/row. Later, the code retrieves the
    column/record, and before converting it to the cfml structure, uses
    the CFML MX7 IsWDDX function. This is returning false if the data
    contains the Windows special characters, but returns true if I
    manually go into the database and change the characters into
    something else.
    What I need is some code that I could use before ever
    creating the WDDX record, that would find the Windows specific
    characters and turn them into some sort of "valid" character.
    Does anyone have any pointers to such code, or at least an
    article discussing this type of thing?
    Thank you.

    Go to cflib.org and look for a function called
    safetext.

  • How to execute Script in Test Plan with two different System Data Container

    Dear members,
    I have a requirement.
    I need to execute one Test Config in a Test Plan with one System Data Container and another Test Config in a Test plan with another SDC.
    How to achieve this ?
    Kind regards,
    Pradeep
    Edited by: Pradeep Singh Rawat on Mar 23, 2011 7:10 AM

    >
    Pradeep Singh Rawat wrote:
    > I need to execute one Test Config in a Test Plan with one System Data Container and another Test Config in a Test plan with another SDC. How to achieve this ?
    Currently it is not possible, to maintain more than one SDC on a test plan.
    A workaround is, to maintain one SDC on a test plan and specify no target system direct in a test plan. If you maintain then your  two systems in one SDC, you can specifiy each target system in the test configuration, where it is needed.
    Here the example:
    test plan:
    systemdata container: SDC_ALL
    target system: <empty>
    test config 1:
    systemdata container:
    target system: CRM
    test config 2:
    systemdata container:
    target system: ERP
    systemdata container: SDC_ALL
    target system: CRM -> rfc 1
    target system: ERP -> rfc 2
    Kind regards,
    Christoph

  • The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.

    got event ID 4015 and source DNS-Server-Service. please suggest how to fix this issue
    The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.
    Raj

    Hi
     first run "ipconfig /flushdns" and then "ipconfig /registerdns" finally restart dns service and check the situation,also you can check dns logs computer management ->Event viewer->Custom Views->Server roles->DNS.

  • Error in using BAPI_CONFEC_CREATE : Interface data contains Errors

    Hi,
    I am using this BAPI BAPI_CONFEC_CREATE to create confirmations locally in SRM for a PO. I am following Documentation available for this BAPI.  But when I excuted with below data getting error " INTERFACE DATA CONTAINS ERRORS"
    I am passing these data:
    Hedaer: Ref_doc_no - PO Number
                  Description:
                 Process Type: "CONF"
    Header_cust:  parent_guid : PO GUID
    Item: Parent: PO Header GUID
            PO Number: PO number
            PO GUID: PO HEDAER GUD
            PO ITEM Number: PO item Number
           PO_ITEM_GUID: po item guid
    Account:
                   Parent_GUID : PO Item GUID
                   G/L acct : Po G/l acct
                   cost center : PO cost center
    what are the data sholud be passed to this BAPI?
    Am I missing any input data to this BAPI? Please let me know.
    Am I using correct Function Module to create a confirmation for a PO in Stand alone scenario?
    Thanks.
    Shears
    Edited by: Shears80 on Sep 10, 2010 1:39 AM

    Hi Matt
    I'm using the same FM but it's not working. Can you please share what data you are passing in the FM.
    After debugging I found that my confirmation is getting created but it's not getting saved.
    Please enlighten me.
    Thanks
    Ankit

  • Problem with call to BAPI when the data contains spaces

    Hi everyone,
    I've a table in R3 that has 2 fields which is consulted via BAPI from XI. The Bapi call run correctly while the data don't contain spaces preffixed but when for example the data is ' A31' the BAPI call doesn't return nothing.
    The table structure is:
    CODE             DESCRIPTION
    values:
    ' A31'               'Desc A'
    'A30'                'Desc B'
    When I call the bapi with A30 value the Bapi return me Desc B, but when I try it with the value ' A31' the Bapi doesn't return any value.
    Could anyone help me?
    Thanks in advance

    >>The problem isn't the trim, because the bapi call must contain the spaces.
    Are you able to get expected results while testing the BAPI with data containing spaces?
    I have seen some cases where you get correct results when you test the RFC in SE 37, but the same data when passed from XI does not get the desired results. It was coz. when testing the RFC in R/3 some user exits are called and the data fets populated in the correct way. Check this.
    Regards,
    Jaishankar

  • How to transport the data contains in the table from development to product

    How to transport the data contains in the table from development to production.
    Please let me know ASAP.

    Hello Dilip
    Create a workbench request and add the following entries to the request:
    Object key: R3TR TABU <name of z-table>
    For this object add the following value key:
    - client-independent table: '*'
    - client-dependent table (e.g. client 100): '100*'
    See also: [SAP Network Blog: Transport Table Entries|/people/community.user/blog/2007/01/07/transport-table-entries]
    Regards
      Uwe

  • System Data Container in ECATT

    I am trying to create some catt scripts in the CUA box (SECATT)
    when creating a new system data container i am selecting the RFC destination and typing in the Target system and description fields.
    However - when ever we select the RFC destination the Instance description field populates automatically, which is not happening in my case(it is greyed out)
    I gave myself SAP_ALL and tried again but in vain.
    I am not sure why this is happening - i tried searching in the SDN forums but was unable to find the appropriate answer.
    Can anyone point me to the right direction?
    Thank you
    Seshank

    Thank you both for the replies,
    I checked the T000 table and it is good.
    I also tested the RFC connections, they are working fine.
    I dont know why or i dont know how - I am able to add the target systems now without any issues.
    about 10 minutes back i was unable to do it. This could be due to some maintanance happening - i am not sure.
    But for now - its working
    Appreciate your effort.
    Edited by: seshank vemuri on Dec 22, 2010 8:18 PM

Maybe you are looking for