Payload containing "&" in many fields

hi experts,
I have got a payload, which has got the character "&" in many fields,and that needs to be replaced with any other caharcter to make the payload suitable to work with in the integration engine.
please suggest possible solutions to my problem.
Thank you,
Shreya.

Hi Shreya,
   here you can write a simple User defined function in mapping to replace all '&' with character of your choice. Below I have written a simple java code to do so .  The name of the UDF is function. For input "&g&jo" it gives output "ANDgANDjo". You can change the value of string replaceWith with any value of your choice. Then you will obtain the desired output. This UDF has to be put in every mapping to target xml message. 
public class replaceChars {
     public static String function(String s)
          try
               int i;
               char r='&';
               String replaceWith="AND";
               String d="";
               for(i=0;i<s.length();++i)
                    if(s.charAt(i)==r)
                         d+=replaceWith;
                         continue;
                    else
                         d+=s.charAt(i);
               s=d;
          catch(Exception e)
               e.printStackTrace();
          return s;
public static void main(String[] args) {
           String s="&g&jo";
           System.out.println(function(s));
regards
Anupam

Similar Messages

  • SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field

    Hi,
    I am using Access 2013 and I have the following VBA code, 
    strSQL = "INSERT INTO Master SELECT * from Master WHERE ID = 1"
     DoCmd.RunSQL (strSQL)
    when the SQL statement is run, I got this error.
    SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field
    Any suggestion on how to get around this?
    Please advice and your help would be greatly appreciated!

    Rather than modelling the many-to-many relationship type by means of a multi-valued field, do so by the conventional means of modelling the relationship type by a table which resolves it into two one-to-many relationship types.  You give no indication
    of what is being modelled here, so let's assume a generic model where there is a many-to-many relationship type between Masters and Slaves, for which you'd have the following tables:
    Masters
    ....MasterID  (PK)
    ....Master
    Slaves
    ....SlaveID  (PK)
    ....Slave
    and to model the relationship type:
    SlaveMastership
    ....SlaveID  (FK)
    ....MasterID  (FK)
    The primary key of the last is a composite one of the two foreign keys SlaveID and MasterID.
    You appear to be trying to insert duplicates of a subset of rows from the same table.  With the above structure, to do this you would firstly have to insert rows into the referenced table Masters for all columns bar the key, which, presuming this to be
    an autonumber column, would be assigned new values automatically.  To map these new rows to the same rows in Slaves as the original subset you would then need to insert rows into SlaveMastership with the same SlaveID values as those in Slaves referenced
    by those rows in Slavemastership which referenced the keys of the original subset of rows from Masters, and the MasterID values of the rows inserted in the first insert operation.  This would require joins to be made between the original and the new subsets
    of rows in two instances of Masters on other columns which constitute a candidate key of Masters, so that the rows from SlaveMastership can be identified.
    You'll find examples of these sort of insert operations in DecomposerDemo.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    In this little demo file non-normalized data from Excel is decomposed into a set of normalized tables.  Unlike your situation this does not involve duplication of rows into the same table, but the methodology for the insertion of rows into a table which
    models a many-to-many relationship type is broadly the same.
    The fact that you have this requirement to duplicate a subset of rows into the same table, however, does make me wonder about the validity of the underlying logical model.  I think it would help us if you could describe in detail just what in real world
    terms is being modelled by this table, and the purpose of the insert operation which you are attempting.
    Ken Sheridan, Stafford, England

  • MDX result contains too many cells - NUMC 6

    Hi to all.
    I'm using I bex query in order to retrieve the field to my universe.
    I know that when there is an element defined as NUMC (6), some errors may occurs into the MDX extraction (e.g.  MDX result contains too many cells (more than 1 million)).
    Can I set everythink in my BEX query or in my universe definition in order to not change the caratcteristic in my SAP BW system ?
    Indeed I will have some bureaucratic and formal problem to change the sap bw type definition of the caracteristics.
    Thank'you in advance.

    hi Ingo,
    Are you sure ? Indeed when I try to run a query where I have a NUMC6 filed and another field there is the error attached above.
    Instead when I run the same query without the NUMC6 field the query  ends correctly.
    Moreover I see in the "SAP Note 1378064" where I see in the "Reason and Prerequisites": The internal data types are incorrect due to NUMC(6). The conversion to integer is required.
    But I don't know if this conversion is allowed in the Bex Query step or in the universe filed definition.
    Any advice will be accepted !

  • BI Publisher Word Template The report does not contain any data fields.

    I have OBIEE BI Publisher report (10.3.4) working fine using BIP but using MS Word 2003 I want to create new template and want to add charts etc.
    Step 1. In MS Word I successfully login Oracle BI Publisher as Administrator
    2. Oracle BI Publisher -> Open (I open the report)
    3. Go to Insert -> Table Wizard
    I get this error:
    The report does not contain any data fields. Please make sure that the reports generates data with the default settings or provide a valid XML file.
    Please help

    Hi
    How do I load XML data? Also why XML data load is required? Do I have to export XML data from BIP View screen and load from the same file from the word?
    Please clarify
    Thanks

  • Error MDX result contains too many cells (more than 1 million). (WIS 10901)

    Hi,
    We have developed an universe on BI query and developed report on it. But while running this BO query in Web Intelligence we get the following error
    A database error occured. The database error text is: Error in MDDataSetBW.GetCellData.  MDX result contains too many cells (more than 1 million). (WIS 10901)
    This BO query is restricted for one document number.
    Now when i check in the BI cube there are not more than 300-400 records for that document number.
    If i restrict the BO query for document number, delivery number, material and acknowledged date then the query runs successfully.
    Can anyone please help with this issue.

    follow this article to get the mdx generated by the webi report.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90b02218-d909-2e10-1988-a2ca74547900
    then try to execute the same in mdxtest transaction in bw

  • Result set does not fit; it contains too many rows

    Dear All,
    We are in BI7 and running reports on Excel 2007. Even though number of rows limitation in Excel 2007 is more than  1Million, when I try to execute a report with more than 65k records of output, system is generating output only for 65k rows with message "Result set does not fit; it contains too many rows".
    Our Patch levels:
    GUI - 7.10
    Patch level is 11
    Is there any way to generate more than 65000 rows in Bex?
    Thanks in advance...
    regards,
    Raju
    Dear Gurus,
    Could you please shed some light on this issue?
    thanks and regards,
    Raju
    Edited by: VaraPrasadraju Potturi on Apr 14, 2009 3:13 AM

    Vara Prasad,
    This has been discussed on the forums - for reasons of backward compatibility I do not think BEx supports more that 65000 rows .... I am still not sure about the same since I have not tried out a query with more that 65K rows on excel 2007 but I think this is not possible...

  • While importing clip getting error "The file contains too many audio channels" in premiere pro cs5

    Hey,
    I  am using video clips from sony digital hi8 camera and trying to import  video clips (.mov) 720*480  fps 29.97 .But unable to get into premiere  pro cs5.System configuration:
    MAC 10.6.4
    2.66ghz intel core i7
    4gb ram
    nvidia geforce gt 330 mn.
    Error :
    Actually ,i have checked the inspector panel and i found same infomation in
    in this panel for both clips .please check these clips screen shoots seprately .
    Actually i have a long video clip and i have scatterred this clip into 6 diffrent portions
    where i am not able to import the last video clip.It is giving me same error "file contain too many audio channels"".
    Regards
    Manoj

    I too am getting this error in Premiere CS5.  I was digitizing a Broadcast VHS and since I did not have a breakout box, I hooked it up to a Sony DV deck so I could connect via firewire and capture inside Premiere.  I was able to capture and import 1 of the 3 clips and it did have 4 audio channels attached to it.  However, upon closer inspection only 2 channels had a waveform.  I captured the other 2 clips the same way, but this time, Premiere give the error "The file contains too many audio channels." 
    Any ideas?

  • 11g-[nQSError: 42029] Subquery contains too many values for the IN predicat

    Hi,
    I am having 2 reports one is for subquery which returns inputs to Main report. Actually the report was working fine in 10g. But in 11g we are gettting following error:
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42029] Subquery contains too many values for the IN predicate.Please have your System Administrator look at the log for more details on this error. (HY000)
    Please have your System Administrator look at the log for more details on this error.
    Getting same error after modofying the parameter value MAX_EXPANDED_SUBQUERY_PREDICATES to 12000
    Please suggest what could be the other reason it may fail or any other settings we need to check.
    Regards,
    ckeng

    ckeng,
    Normally the IN clause has restriction of 10000 values in general sql/plsql we will go with inline queries i think model your rpd to generate inner queries
    select * from emp where dept_id in (Select distinct dept_id from dept);
    or have a condition/filter on sub report and make one more inner report with sub-filter but definitely it will cause performance issues.
    thanks,
    Saichand.v

  • Set up table contains the enhanced field information?

    Hi Experts,
    I am enhancing a field in the datasource 2lis_11_vaitm,
    Things i did :
    1.Enhanced the ext.structure with the required field.
    2.Activated the ext.structure.
    3.Witten the logic in the CMOD.
    4. Deleted the Setup table and refilled.
    Now my question is :
    1.Did the setup table contains the ENHANCED FIELD with the historical data ?if so where to see that?
    I checked in RSA3 the enhanced field is displayed with the records.
    The code i have wriiten is WHEN "DATASOURCE " then -> logic from the base table.
    Now will the data come from the base table or from the setup table?
    Can any one help me in this issue.
    Best Regards
    Jelina

    Why do we need to delete the setup table after doing enchancement with standard Datasource.
    Ans :
    You neednot refill the setup table just because you enhanced the datasource.
    You need to delete and refill if the postings happened after you filled the setup table.
    Meaning you will miss the current posting.Unless you have done a init in BI/BW side.
    Hope this helps.

  • Payload as a single Field

    how we can treat full file (Full payload ) as in single field.
    While file picking from sender end and keep the  full content as a payload in single field at source side?

    Hi,
    A bit confused with your question, but here are the two things which might help
    1) sending whole source payload into single field in target structure, you can do this by mapping the headersegment to the target field and select RETURN AS XML on right click. there is one blog on this with screen shots if you want to take a look.
    2) Taking whole payload from a single source field, You can do this by writing an UDF to extract the XML payload file and placing it before the MM in OP.
    Thanks...
    Karna....

  • Sapscript: Output is continuous or contains too many pages (more than 3)

    Hi,
    I have developed Sapscript form for printing out material documents.
    When users try to print out document with 68 positions, they receive error in MB90 -
    " Output is continuous or contains too many pages (>3)".
    Message no. TD405
    If they try to print out small document, for example 3 positions, everything is ok.
    What I have to check now?
    Thanks,
    Sveta.
    Edited by: Julius Bussche on Sep 24, 2008 10:24 AM

    Hi,
        Try to check the page counters for each page format.
        How many Page formats are there in your Form?
    Check the First Page Attributes,
    Page Counter
    Mode                     START
    Numbering Type     ARABIC
        Output length     00
    which is next page to First page
    Check Next Page Attributes
    Page counter
    Mode                     INC
    Numbering Type     ARABIC
    Output length         00
    which is next page to Next page
    Regards
    Bala Krishna

  • Query Builder - How to create a link between tables with many fields?

    I have many fields in my tables. When the query builder loads the tables, the tables are expanded to accomodate all the fields. Suppose I want to link Table A's Customer ID (the first field in Table A) wiith Table B's Customer ID (the last field in Table B). How can I do that if the last field in Table B are not visible in the screen?
    Currently, I create a link in Table A's customer with a random field in Table B. Then I edit the link to create a proper condition. Is there a more efficient way to do this?
    Thanks.
    Edited by: woro2006 on Apr 19, 2011 9:40 AM

    Hi woro2006 -
    Easiest way is to grab Table A's title bar & drag Table A down the page until the columns you want to link are visible.
    FYI, there is an outstanding bug
    Bug 10215339: 30EA1: MISSING THE 2.1 RIGHT CLICK OPTIONS ON DATA FIELDS TO CREATE A LINK
    to add a context menu on the field for this. That is, Link {context field} to > {other data sources} > {fields from that source}
    It is being considered for 3.1, but I have no idea where it will end up in the priority queue.
    Brian Jeffries
    SQL Developer Team
    P.S.: Arghh, Unfortunately, I just tried it and the diagram does not auto scroll while you drag, so there is some guess work/repositioning the view involved.
    Logged Bug 12380154 - QUERY BUILDER DIAGRAM DOES NOT AUTO SCROLL WHEN DRAGGING TABLE

  • MDX result contains too many cells - But relese note applied!!!!!!

    Hi experts!
    When I create a query with my infoview, it retrive me the following error:
    <ERROR COMPONENT="WIS" ERRORCODE="10901" ERRORTYPE="USER" MESSAGE="Si è verificato un errore del database. Il testo dell&apos;errore del database è: Errore in MDDataSetBW.GetCellData.  MDX result contains too many cells (more than 1 million). (WIS 10901)" PREFIX="ERR">
    I try to understand if there are some problems about the sap.notes. In particular I ask to the technical people if the following note had installed into my system:
    Note 931479 - MDX: More than 1,000,000 instances per axis
    The technical people said me that this note had been installed because the system is to level 23.
    bold
    Then what problem may be due the fact that my mdx is not able to contains more than 1 million of cell ?
    bold
    thank'you in advance !

    Hi,
    whats the release of the SAP BW System - including patch level ?
    whats the release of the SAP BusinessObjects system including patch level ?
    Ingo

  • Which all table contains a particular field

    Hi
    Can any one give me the query for finding which all tables in the database contains a particular field.
    Like I want to find out all the tables which has fields with field name like '%LOC%'
    Thank You
    .S

    select table_name from dba_tab_columns where column_name like '%LOC%'

  • JNI - Passing an object containing an array field

    I need to pass an object to a native method. The object contains several int fields and a field that is an int array (contains 32 int).
    I have no problem with the int fields, but do not know how to access the int array field in the C code. What approach should be used to get/set values in the int array field?
    Any suggestions are appreciated.

    I have been reading up on the subject, but I guess I'm just an idiot. If all the answers were obvious from reading the specification then there wouldn't be much point to this forum.
    For int fields in the object passed to the native function I do the following to set the value:
    fid = (*env)->GetFieldID(env, cls, "intFieldName", "I");
    (*env)->SetIntField(env, myObj, fid, newValue);
    For a field that is an array of int, it seems that I can get the field ID as follows:
    fid = (*env)->GetFieldID(env, cls, "arrayFieldName", "[I");
    The "Get<Type>Field" and "Set<Type>Field" methods can be used for object, boolean, byte, char, short, int, long, float, double. Nothing specific here for array. Should I use the GetObjectField method, if so can the object field then be handled as an array? This is where I am missing something. I have experimented with using the SetIntArrayRegion method but this causes an exception - obviously missing a necessary step here. I am hoping someone here can provide guidance on what I am missing, what JNI functions I should be using, or refer me to the appropriate page of the specification or other document where it is explained (for idiots like me).

Maybe you are looking for

  • Ftp prioritised over http etc

    We are a small office network of 3 macs. We are having problems lately - when we try and ftp we are unable to use email or the internet at all. The ftp seems to hog the entire bandwidth. We have found that switching from transmit to cyberduck has bee

  • Spotlight Search Issues

    Problem Summary: Client cannot get correct search results via Spotlight. Equipment: Mac Mini Server (2.66 GHz Intel Core 2 Duo, 4GB RAM) running Lion Server 10.7.3 Troubleshooting steps taken so far: Disabled, cleared the index, and re-enabled Spotli

  • Continuously receiving this message: "Microsoft Word has encountered a problem and needs to close"

    Word keeps crashing whilst I am working from a document, and using formatting tools. Below is the accompanied error report. It also says that it will attempt to recover my work, but never does. Would anyone know why this is happening and what I can d

  • How to use the 'Username' filed's value in form level scripting?

    Hi,     I have applied the Rights Management for a form. I wanted to use the 'Username' field's value, which is present in below image for the form side scripting. How can we get this value? Any script is there to extract this value in the form? Than

  • Customer balance differents

    Dear Experts   My customer , they donu2019t have any open items,  only clear items (5 Documents ) , these clear items also different  document types Like AB -Accounting Document, BR- Bank Receipt, RV- Billing Document Transfer,   here suppose if chec