Error in parseXML() when data contains "&"

Hello,
I have a Subprocess that is a Loop type. I am calling a web service within the loop. The data is pulled using a database adapter. One of the data values I am passing to the service is "Furniture & amp; Office Equipment" (title). Ignore the space between the & and amp;, I did that so it posts properly. The input data association is using this XPath Expression:
oraext:parseXML(concat("<CreateCostCodes xmlns:v1='http://xmlns.oracle.com/Primavera/CM/WS/Cost/V1'>
<v1:CostCode>
<v1:ProjectName>", bpmn:getDataObject('inputData')/ns2:projectName, "</v1:ProjectName>
<v1:CostCode>", bpmn:getDataObject('costCodes')/ns:costCodes[bpmn:getActivityInstanceAttribute('SUBPROCESS5114801681331', 'loopCounter')]/ns1:costCode, "</v1:CostCode>
<v1:Title>", bpmn:getDataObject('costCodes')/ns:costCodes[bpmn:getActivityInstanceAttribute('SUBPROCESS5114801681331', 'loopCounter')]/ns1:title, "</v1:Title>
</v1:CostCode>
</CreateCostCodes>"))
My process is failing when it hits the data containing the title that has the & amp; in it. Can someone suggest how to properly parse this?
Thank you
Rudy

Hi Daniel,
Yes, I have used the "for each" before but in this case the loop is in the subProcess and my web service call is within the subProcess so I don't want to iterate the array in the XSLT. The Loop Characteristics of the subProcess are: Loop and the loop condition is a simple expression "loopCounter <= costCodes.costCodes.length()". I would like to attach an image of the subProcess but I don't see how to do that. To describe it; for each costCode in the array I want to do a read to see if it exists, if it does, update it, else create it, end.
Thank you.
Edited by: Rudy Meyer on Nov 15, 2012 9:56 AM

Similar Messages

  • How to Avoid Errors in Max Function When Data Contains Blank Cells

    I have a column with duration values. However, it also contains some blank cells. These "blank cells" have formulas in them, but as the cells they reference too are blank the formula doesn't produce a result.>/p>
    I want to get the max value from this column. When I simply do =MAX(column-name) I get an error, presumably because some of the cells are blank. This table is going to be highly dynamic, so I don't want to limit the range of the MAX() function to only those cells with values.
    So does anyone know a solution for this, please? If I was some how able to create a formula which returned the range of cells with actual values, then I could use that in the MAX() function. Or, if I could somehow tell the MAX() function to ignore blank cells, but I'm not sure either of these are possible.
    Thanks,
    Nic

    I don't see a problem with "blank" (null string) cells mixed with duration cells.  MAX works fine with this mix of cells. But if the "blank" cells are numbers, not text, that gives an error.
    A formula always produces a result. A formula cannot result in a blank cell. The closest you can get to "blank" is a null string (the result of two quotes next to each other with nothing between them) . So the question is, what is the result that you are calling "blank"?

  • Error loading report when data source changed

    We are migrating our Crystal Reports from using XML files generated from our SAP R3 system to using a direct connection to SAP R3 (using the SAP Integration Kit).
    The code is straightforward:
          crReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
          crReport.Load(reportPath);
    ...where the reportPath is just a string with the path and filename (e.g. "C:\reports\Report1.rpt").
    This worked fine with the report when it had an XML data source. When we run the code with the new version of the report that connects to a data table on our SAP R3 we get the following error message:
    Error in File Report1 {40205567-F890-4B3C-A103-C9C8F0A1E665}.rpt: Failed to logon to the Crystal Report Object Repository.
    The report is not in an Object Repository, nor do we even have a Repository in place right now. The report can be run manually from Crystal Reports on the desktop without any kind of Repository.
    Both versions of the report were built in Crystal Reports 2008.
    Thanks,
    Byron

    I am not sure if connecting to SAP is any different than connecting to SQL, but we develop one report and then deploy to N number of client who all have their own SQL servers and server names.
    Here is the code I use to alter the database connection at runtime:
      connection.DatabaseName = _datebaseName;
                    connection.ServerName = _serverName;
                    if (_integratedSecurity)
                        connection.IntegratedSecurity = _integratedSecurity;
                    else
                        connection.UserID = _userId;
                        connection.Password = _password;
                    connection.Type = ConnectionInfoType.SQL;
                    // First we assign the connection to all tables in the main report
                    foreach (CrystalDecisions.CrystalReports.Engine.Table table in _reportDocument.Database.Tables)
                        AssignTableConnection(table, connection);
                    foreach (CrystalDecisions.CrystalReports.Engine.Section section in _reportDocument.ReportDefinition.Sections)
                        // In each section we need to loop through all the reporting objects
                        foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in section.ReportObjects)
                            if (reportObject.Kind == ReportObjectKind.SubreportObject)
                                SubreportObject subReport = (SubreportObject)reportObject;
                                ReportDocument subDocument = subReport.OpenSubreport(subReport.SubreportName);
                                foreach (CrystalDecisions.CrystalReports.Engine.Table table in subDocument.Database.Tables)
                                    AssignTableConnection(table, connection);

  • Http Request - error in URL when params contain spaces

    Hi friends , I invoke a servlet from a HTTP client using the GET method. I pass two Strings which contain spaces and non-english alphabets.
    I get malformed URL when I invoke the servlet with these parameters in the URL.
    Can someone please help and tell me how to pass spaces and special characters in the URL. Do I need to use some escape characters?
    TIA
    Harish

    You can encode the strings prior to passing them to the servlet as follows:
    String parm1="http://www.mySite.com/this includes spacees/test.htm";
    String param2=" what ever in non-english alphabets";
    parm1=URLEncoder.encode(parm1);
    parm2=URLEncoder.encode(parm2);
    ;o)
    V.V.
    PS: Sorry click the Post! button too soon before the sample code was completed!

  • How to update row when data contains single quote  ?

    Hi,
    Please see this query:
    update query_tab set  title='It's common knowledg' where
    id='1121';I have this update query coming from .NET, but abviously this is error since single quote in the text (title column) given by user gives wrong meaning to sql parser. So, how to solve this problem ?
    Edited by: bootstrap on Dec 25, 2010 9:53 AM

    Hi,
    To include a single-quote in a string literal, use two of them in a row:
    update      query_tab
    set       title     = 'It''s common knowledge'
    where      id     = '1121';The method above works in any version of Oracle.
    Starting in Oracle 10, you can also use Q-notation, like this:
    update      query_tab
    set       title     = Q'[It's common knowledge]'
    where      id     = '1121';For details, look up "Text Literals" in the SQL Language manual:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements003.htm#sthref337

  • 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

  • BBPCF02 - BBP_PD002 Interface data contains errors

    Hi all,
    I need your help.
    We have a problem when the user confirm a purchase order from transaction BBPCF02.
    During the creation of confirmation the system returns the pop-up with message "Interface data contains errors".
    I have SRM 5.0 classic scenario.
    Thanks in advance.
    Davide

    refer to note 805965. Although this note is not exactly for the problem you are stating but it should be close enough to solve your problem.

  • Interface data contains errors

    Dear all,
    We are on SRM 7.0. When trying to create a purchase order from an accepted bid the following error appears:
    "interface data contains error", no more details shown.
    It happens with both buttons: "Create Purchase Order" and "Simulate and create purchase order".
    Any ideas to solve it?
    Thanks
    Ezequiel

    Hi Eze
    purely no range issue
    create purchase order from bid invitation
    Standard process for PO creation from Bid Invitation or Bid
    double confirmed. revisit your Bid invitation , bid and Po number ranges.
    br
    muthu

  • Interface data contains error

    Hi Expert,
    We're facing error 'interface data contains error' when generate Purchase Order for bid submitted by bidder.
    anyone has experience with this error?
    Thanks,
    Yusup

    Hi
    Please refer this note 1042490 - Interface Data contains Errors in the sourcing cockpit.
    This note might be useful for you.
    Muthu

  • Error 7 occurred when generating the data transfer program

    Hello All ,
    In Master Data Load Process Chain ,  we get error like
    1. System Response
        Caller 09 contains an error message.
    Diagnosis
    Error 7 occurred when generating the data transfer program for the requested InfoSource.
    System Response
    The data transfer is terminated.
    Procedure
    Check the SAP Support Portal for the appropriate Notes and create a customer message if necessary.
    Note : We faced this issue for two days now . Just repeating the load make it success .
    If any one faced and fixed this issue . Please let me know .
    Thanks in advance .

    Hi,
    . Initially goto transaction SE38, Run the program RSDS_DATASOURCE_ACTIVATE_ALL. Give your Datasource name, and source system and check the check box for "Only Inactive objects".
    This will actiavate the given datasource.
    2. Replicate the datasource in RSA1.
    3. Try to schedule the infopackage for the datasource which you have activated now.
    4. IF infopackage runs through, Repeat the process for all datasources ie uncheck the check box, which means it will activate all datasources for the source system.
    Also make sure that there will be enough Back Ground Processor available....
    Reduce the parallel process
    Thanks
    BVR

  • 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.

  • Get "An Error occurred while retrieving data From ProjectWebApp.." when searching content on an External Content Type

    I have set-up an ECT in SPD2013 on SP2013.  It is a SQL Data source called ProjectWebApp.   I have BCS/SSS set-up.  I can create an ECT OK in SPD.  I can add the ECT to a custom list.
    The problem is when I add a new item in the list the following error message appears in red
    An error occurred while retrieving data from ProjectWebApp. Administrators, see the server log for more information
    I cannot filter or return any results.  There is data in the DB.
    Another test I do is to try and create a new App/List using the "External List" template.  When
    I select the ECT a red message appears "External Content Types are not available".  which is odd since I can add an ECT to a list as mentioned above.
    Any ideas?
    Tx
    Andrew
    Andrew Payze

    Hi Andrew,
    Please try the option Allow unlimited length in document libraries in the column settings:
    http://littletalk.wordpress.com/2011/08/18/external-content-type-an-error-occurred-while-retrieving-data-from-a-system-administrators-see-the-server-log-for-more-information/
    If it doesn't help, please refer to the link below and raise the External content type Read List operation thresholds:
    http://lightningtools.com/bcs/business-connectivity-services-end-user-implications-part-one-threshold-limit-errors/
    Please provide error message in ULS log for further troubleshooting.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • TS2634 My problem - when syncing and error messages  comes up:  iTunes could not sync calendars to the iPhone because an error occurred while margin data."  I've tried turning the phone off and back on, & tried both USB ports but get the same thing.  What

    My problem - when syncing and error messages  comes up:  iTunes could not sync calendars to the iPhone because an error occurred while margin data."  I've tried turning the phone off and back on, & tried both USB ports but get the same thing.  What can I do next since it doesn't give me even one clue as to what the error would be?

    Before I started to resync calendars one by one as suggested in the troubleshooting article, I remembered something that came up in a sync when I first attempted :  a 'which one do you want to keep' message about a repeating calendar event, which came up with three options, one from Calendar, and two from iCal on the phone.  I deleted that event, then went through the calendar resync one by one, and all seems OK now.
    In Music there is a way to find 'ghost' items that show up as grayed-out on the menus, so that you can try to reassociate or delete them.  It would be nice to have a similar way to work with Calendar!
    Thanks for pointing me to the right article.

  • 'Error 8 occurred when starting the data extraction program'

    Hello Experts,
    I am trying to pull master data (Full upload) for a attribute. I am getting an error on BW side i.e. 'The error occurred in Service API .'
    So I checked in Source system and found that the an IDOC processing failure has occurred. The failure shows 'Error 8 occurred when starting the data extraction program'.
    But when I check the extractor through RSA3, it looks fine.
    Can someone inform what might be the reason of the failure for IDOC processing and how can this be avoided in future. Because the same problem kept occurring later as well.
    Thanks
    Regards,
    KP

    Hi,
    Chk the idocs from SM58 of source system are processing fine into ur target system(BI system)...?
    Chk thru Sm58 and give all * and target destination as ur BI system and execute and chk any entries pending there?
    rgds,
    Edited by: Krishna Rao on May 6, 2009 3:22 PM

  • When syncing my iphone i get a msg, "itunes could not sync calendars to the iphone because an error occurred while merging data"   I sync my calendar to outlook.  My iphone calendar has all and the most updated information.  Outlook shows only recurringMY

    I'm at a loss as to what to do. Any help is appreciated.  When syncing my iphone I get an message, "itunes could not sync calendars to the iphone because an error ocurred while merging data" I sync my calendar to outlook.  My iphone calendar has all and the most updated information.  Outlook calendar only shows my recurring events. 

    hi there,
    i've found a great & simple solution for this problem
    just open your iCloud acc on iPhone
    turn off calendars (it wil ask you to keep info or not - KEEP IT!)
    and turn back on (MERGE!)
    now SYNC it..
    and that's it
    PS in my case it was contacts so the procedure is the same..

Maybe you are looking for

  • Initial Setup for Canon HFS100

    I am setting up Final Cut Pro 7 with my Canon Vixia HFS100 (AVCHD). Recording Settings: 24 Mbps Frame Rate: PF30 I also have some footage in 24Mbps and 60i. I have examined the drop down selection of all the formats, but I am still unclear which to c

  • How  to  copy  the  table1selected  records into table 2 in webdynpro java.

    Hi         how  to  copy  the  table1selected  records into table 2 in webdynpro java. venkat Edited by: venkatpvr on Sep 23, 2011 11:53 AM

  • How to resolve this installation issue: checking Oracle home path for space

    Hi everyone I am quite new to Oracle. I have been trying to install Oracle 11g on XP and have encountered this issue: Checking Oracle Home path for spaces... Check complete. The overall result of this check is: Failed <<<< Problem: The Oracle Home yo

  • Extract from webpage

    Good day programmers, i am having a difficulty in extracting some particular data from a website. This is how the website is:  I want to extract the innertext from some htmlelement but i have difficulty in extracting them at the same time. the websit

  • What is wrong with this script (zlogin)

    I took this script directly from the Trusted Extensions Developers Guide and it's not working. The problem is in the syntax for the if() inside the nawk program, but the correct syntax is eluding me. I verified that both $4 and $zonepath are set prop