XML value not reading correctly

I am trying to read an XML response after passing data to a 3rd party server and receiving a reply then act appropriately upon the value of a field (response)
The problem is that when I have my CFIF statement, the logic seems to be backwards, if it equals FAIL then I cfabort, but only if I use CFIF NOT does it then cfabort, this is not right at all
As the code stands, the CFIF the value of response IS fail it should CFABORT, but it doesn't
Below is the code, and also a CFDUMP, anybody any ideas?
Thanks
Mark
xml document [short version]
XmlComment
XmlRoot
xml element
XmlName
iimobileengine
XmlNsPrefix
XmlNsURI
XmlText
XmlComment
XmlAttributes
struct [empty]
XmlChildren
xml element
XmlName
stage
XmlNsPrefix
XmlNsURI
XmlText
PRELOAD
XmlComment
XmlAttributes
struct [empty]
XmlChildren
xml element
XmlName
response
XmlNsPrefix
XmlNsURI
XmlText
FAIL
XmlComment
XmlAttributes
struct [empty]
XmlChildren
xml element
XmlName
lid
XmlNsPrefix
XmlNsURI
XmlText
XmlComment
XmlAttributes
struct [empty]
XmlChildren
xml element
XmlName
lsdid
XmlNsPrefix
XmlNsURI
XmlText
XmlComment
XmlAttributes
struct [empty]
XmlChildren
xml element
XmlName
reason
XmlNsPrefix
XmlNsURI
XmlText
Carrier Not Supported
XmlComment
XmlAttributes
struct [empty]
XmlChildren
xml element
XmlName
tc
XmlNsPrefix
XmlNsURI
XmlText
XmlComment
XmlAttributes
struct [empty]
XmlChildren
iimobileengine
XmlText
stage
XmlText
PRELOAD
response
XmlText
FAIL
lid
XmlText
lsdid
XmlText
reason
XmlText
Carrier Not Supported
tc
XmlText
<cfset myxml=XMLParse(#cfhttp.filecontent#)>
<CFDUMP VAR="#myxml#">
        <!--- CHECK FOR FAIL RESPONSE --->
<CFIF #myxml.iimobileengine.response# IS "FAIL">
<CFOUTPUT>Stage 1: #myxml.iimobileengine.reason#</CFOUTPUT>
<CFABORT>
</CFIF>

ACS LLC wrote:
I am going to try avoid this as much as possible! Too confusing!
Looks like in this case I can/should add XMLText to the end of all of my statements including output of results
The fact that it can work without XmlText is down to luck. That, I suppose, is also what Dave means. ColdFusion is forgiving you. In fact, your coming here with the problem is warning enough.
Your code should, strictly speaking, be something like:
<CFIF myxml.iimobileengine.response.XmlText IS "FAIL">
<CFOUTPUT>Stage 1: #myxml.iimobileengine.reason.XmlText#</CFOUTPUT>
<CFABORT>
</CFIF>
To see why adding XmlText is a good habit, run the following test:
isXml(myxml.iimobileengine.response): <cfoutput>#isXml(myxml.iimobileengine.response)#</cfoutput><br>
<cfdump var="#myxml.iimobileengine.response#">
It should convince you that myxml.iimobileengine.response isn't just simple text.

Similar Messages

  • Some XML customizing not displayed correctly in graphic in PDF form

    Hello,
    we have following problem: We want to create a read-only PDF with an integrated graphic with analytical data.
    The PDF form is created with SFP. Data is extracted and the graphic rendered with the class CL_IGS_CHART_ENGINE.
    We used SAP chart designer and transformed the XML into our string.
    The graphic is displayed in our PDF, but some customizing settings in our XML are neglected, especially the font type, her only courier is displayed. Also some manual positions of legends don't work.
    When I display the chart in the SAP GUI using cl_gui_chart_engine everything works fine, so  I assume that the XML and the  transformation is correct.
    So where is the problem: Mime type? codepage? printing job?
    Thanks and Regards
    Andreas

    Hello,
    I would like to know what type of scenario do you use. Is that WD form? Or offline form?
    Based on the type, you may find your solution here:
    When you need to send a picture into the offline form: another image question - using Regular ABAP not web dynpro and Display a logo dynamically in adobe form
    For the WD form: /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
    What MIME type (picture type) has your generated picture? JPG for example is ok, but for exotic types please check in your LCD (place Image on the layout and open the dialog for picture assignment, you can see the allowed picture types in there).
    Regards, Otto
    p.s.: What is the mentioned XML customizing? XML is the form of the femplate, but I have never customized anything IN THERE. Did you change the XML source manually? Or what type of changes are not managed correctly?

  • Sales Document Flow - Ref. Value not showing correct currency

    I have a question about document flow currency in ECC6.0.  We recented upgraded to ECC6.0 from 4.7 and noticed the changes to document flow.  We are a US based company with sales offices in Europe.  Our European offices are finding that that document flow in ECC6.0 shows in base currency of USD.  Even thought the sales order was entered in EUR euros.  Is this intended to be this way; since it is causing our offices in Europe some confusion?  I searched forums an SAP notes and did not find any references.  Has anyone see this in ECC6.0
    Example Document Flow: Line Level (I do not see Ref Value at header level)
    Note Sales Document was entered in EUR euros.
    Document     Quantity     Unit     Ref. Value     Currency
    Standard Order 0025082768 / 10     12 EA     5,207.54 USD
    ...Delivery 0080211725 / 10     12 EA
    .....Picking request 20100423 / 10     12 EA
    .....Handling unit 0001221687 / 1     12 EA
    .....GD goods issue:delvy 4901261948 / 1     12 EA     1,690.08 GBP
    ...Invoice 0092006736 / 10                           12 EA     5,207.55 USD
    Accounting document 0092006736     12 EA
    If I highlight top line in document flow, I see the following in lower part of screen.  This is the currency entered on the sales order.
    0025082768     10          12     EA     3,847.80     EUR

    Smile,
    Thanks for pointing those configuration points out.   I checked my system and found the following.  I do not see any change documents for the configuration points, so they have been set this way since our implemenation in 2005.
    XD02 is customer master change, the customer on my order is set to EUR in sales in distribution tabs.
    OX02 - Company Code
    1000     Middleton     USD...ok
    2000     London     GBP   ok
    2100     Munich     EUR...ok
    2210     Amsterdam     EUR...ok
    4000     Hong Kong     USD...ok
    I think OVX5 is not set correctly, should be same as OX02.  If I change them, do I need to run an update in the system for old data?  Or is it as simple as changing the value here?  I'm hesitant to change this not knowing how this will affect the system.  Do you know?
    OVX5 - Sales Org
    1000     Middleton     USD...ok
    2000     London     USD   should be GBP
    2100     Munich     USD   should be EUR
    2210     Amsterdam     USD...should be EUR
    4000     Hong Kong     USD...ok
    Thanks,
    Tony Romain

  • Not reading correctly?

    I just got a 4th Gen Nano for Christmas, etc.
    I have another video Nano registered to my computer and don't have a problem with it. However, when I plug this new iPod into the USB to register it, nothing happens except a window pops up with the folders/contents of my E: Drive. Apparently it's not reading it correctly, but how can I fix this so I can use my new iPod?
    I have the current version of iTunes installed and I'm running on Windows XP.

    The problem has something to do with "iPodService Module has encountered a problem and needs to close". I read another thread somewhere about it, but their problem seemed to be stemming from Norton. I'm using avast! antivirus.
    I've tried uninstalling/reinstalling iTunes.
    I still had no idea what's wrong. .-.

  • D20 memory not reading correctly. Bios sees only 20 gigs lenovo diagnostic sees 24 gigs

    Ok i have a d20 with one set of dimms not reading in the bios.  I have tried using all combinations and it always disables one channel of one CPU not reading in the bios but if I use the lenovo diagonstic it sees all the memory and can also run the quick memory test with no errors.  I would really like to get all of the slots to work anyone got an answer for this.  Thanks for you help in advance.
    Mike

    I'm assuming you're following the correct DIMM install order based on the service label on the inside cover?  The DIMM numbering is non-standard with regards to the location.
    If you think you've narrowed it down to a specific DIMM slot (or pair of DIMM slots), I'd try booting the system with memory ONLY installed in that slot (or slots).  Obviously it's not the recommended fill order or anything, but it could be a good test to see if you possibly have a damaged slot or something.
    Also, have you been messing with the CPUs at all?  Though unlikely, I would guess it's possible that a specific CPU pin in the socket could be damaged as well.

  • Custom Values not read back from Active area

    Hello All,
    Need help/ directions.
    We have custom fields in UI, which are saved in Custom tables in ECC for reporting purpose. On activation of CR we could save these
    values in Ztables, but when use open the Material for Mark for Deletion we are getting SMT Mapping error (Data could not read back to CR).
    Don’t see any errors while activating CR , SMT in mapping and also API code program
    Best Regards, Srihari Mandapati

    Are these custom fields specific to Material or to the Change Request? If for the Change Request, then you don't need any SMT mapping. Please refer to this document for how you can enhance the MDG header: Enhancement of the User Interface Building Block for Change Requests.

  • 970A-G45 with latest Bios not read correctly By Amd Overdrive

    System is as follows
    Motherboard: 970A-G45 Bios is now 1.61 all have been tried
    CPU: AMD FX 8120
    Memory: AMD Performance Edition 1600MHz 8 gbyte
    PSU Corsair GX600
    problem is that AMD BEMP profiles are grayed out,With this processor and memory the BEMP profile should be available both AMD and Patriot the makers of the memory say the problem is the bios not being read correctly by AMD overdrive.Now how do we get a bios release that will be correctly read by AMD Overdrive.here are pics of cpu-z and AMD overdrive BEMP.
    I used the instructions posted here  but the image in the instructions doesn't show either
    http://img593.imageshack.us/img593/6560/cpuz1x.jpg
    http://imageshack.us/content_round.php?page=done&l=img651/1912/cpuz2j.jpg
    http://imageshack.us/content_round.php?page=done&l=img41/2338/amdoverdrivebemp.jpg
    ok the links work now had to resize images

    Does AMD overdrive start and work on your system, besides the BEMP thing: yes!, so that is not the question or problem here.
    Do you have the hardware components that are needed to support BEMP: NO!
    Quote
    AMD Black Edition Memory Profile –feature is available with the following, validated memory modules:
    Vendor:   Part #:   Supported CPU Models:
    Corsair   CMD4GX3M2B1600C8   965BE (C2), 955BE, 720BE
    Corsair   CM3X2G1600C6GT   965BE (C2), 955BE, 720BE
    Corsair   CMG4GX3M2A1600C6   965BE (C2), 955BE, 720BE
    Corsair   CMG4GX3M2B1600C7   965BE (C2), 955BE, 720BE
    Mushkin   996657   965BE (C2), 955BE
    Mushkin   996601   965BE (C2), 955BE
    OCZ   OCZ3BE1600LV2G   965BE (C3), 955BE
    OCZ   OCZ3BE1600C8LV2G   965BE (C3&C2), 955BE
    Patriot   PGS34G1600LLKA   965BE (C3&C2), 955BE
    Patriot   PGS34G1600ELKA   965BE (C3&C2), 955BE
    Patriot   PGS34G1333LLKA   965BE (C3&C2), 955BE
    Patriot   PGS34G1333ELKA   965BE (C3&C2), 955BE
    In addition the system must meet the following requirements in order to enable the Black Edition Memory Profile feature:
    790FX, 790GX or 790X AM3 motherboard with BEMP compatible BIOS revision
    AMD Phenom™ II AM3 Black Edition CPU
    In any case, this is a pointless discussions.  I point to the specific parts on the AMD site that have to do with "BEMP" and you ignore that and point to AMD Overdrive stuff, which not necessarely includes BEMP support unless the hardware conditions are properly fullfilled.
    Contact:
    - AMD Support
    - MSI Technical Support
    ... and Patriot support, this time mentioning that your neither have a "790FX, 790GX or 790X AM3 motherboard" nor an "AMD Phenom™ II AM3 Black Edition CPU".

  • Value not displayed correctly when sent through a Java POJO datasource, but is perfect when used with MySQL.

    I have this strange problem - A field value is displayed correctly in the crystal report when pulled from MySQL table (field is Varchar(25)). But the same field when loaded into a Java POJO and set the POJO as new datasource the value is garbled up.
    Any ideas?
    Thanks,

    Early implementations of the POJO Factory set the default display size to 12, which caused corruption in the display starting from the 12th character when the size exceeded the display size.
    Would you try specifying the MemberColumnDisplaySize property for that column in POJOResultSetFactory to reflect the actual size?
    Sincerely,
    Ted Ueda - Developer Support

  • Scanner in else if is not reading correctly

    The scanner doesnt seem to read the second time in the else if statement.
    it just automaticly assigns y the previus value i read in.
    import java.util.*;
    public class test
      public static void main(String[] args)
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while(x != -1)
          if(x == 0)
            System.out.println(x);
          else if(x == 1)
            int y = in.nextInt();
            System.out.println("x " + x);
            System.out.println("y " + y);
          else
            System.out.println("YO!!");
          x = in.nextInt();
    Output:
    1
    3
    x 1
    y 1there is a way i sorta figured out to fix this by putting a print or println before I read in.
    any idea why this is happening?

    maybe its just the compiler then i just tried it on jcreator

  • Small size file can not read correctly on other linux

    Hi, I am running archlinux 0.8 on my laptop, and there is another linux runs kernel version 2.6.20 with root filesystem of debian v3.1.
    I wrote a shell script which reads a small, 49 bytes, only 1 line conf file on my archlinux, it works fine.
    But if I copy script & conf files to debian, the script can not read conf file with:
    while read f;do; echo $f; done < conf
    but `cat`,`more` commands can read it. I have to open conf file with vi on debian and do nothing but :wq rewrite it to make script working.
    Both arch & debian use ext3 file system. Could anyone tell me why? thanks.

    I think your command is wrong: it works with zsh and doesn`t work in bash. Maybe you should remove extra ';'?
    while read f;do echo $f; done < conf

  • ASP timeout value not updating correctly

    MS Server 2000
    MS SQL Server 2003
    Connection timeout not updating correctly.  In Enterprise Manager I updated from 600 to 900 seconds.  I had some connections issues and the solution said to modify the properties of the DB user to grant it 'write' privilege.  It solved the
    first issue but now it is timing out after 300 seconds.  After searching again I saw something about modifying the timeout for the user.  Could this be the solution and how do you do that.
    Classic ASP.  In the code I use:
    Server.CreateObject("ADODB.Command")
    Thank you in advance.

    Hello,
    You can try to using the CommandTimeout property to specify the number of seconds to wait while attempting to execute a command. For example:
    set comm=Server.CreateObject("ADODB.Command")
    comm.CommandTimeout=600
    Reference:http://www.w3schools.com/ado/prop_commandtimeout.asp
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Constrained values not generating correctly in Dashboard prompt

    Hi,
    I have a dashboard prompt which has 4 drop downs viz From Month, From Year, To Month, To year and one Mullti Select Product.The default and the drop down values for the first four prompts are controlled by SQL queries so that in drop down only those values are displayed in the drop down for which i have data in my fact tables and the multi select of product is a constratined one.
    As per the current scenario i have data for current month - 1 (say if current month is August so i have data for July). In the default values for these prompts i show the current month and year (August and 2010). So when i select July in my From Month prompt the values for other promts get set to August and 2010 for month and date prompts (both From and To). And then when i click on the multi select of product no values are shown on OBI screen even though they are in database.
    This is due to the fact the query that OBI genrates in the backend the To Month is set to August not May, even though May is shown on the dashboard.
    However, if cilck on GO then the values for contsratined promt are generated correctly and also the backend query changes the To Month is set to May.
    Could somebody help me to resolve this problem.
    Thx :)

    Reminds me of a bug I hit with constrained prompts and a time dimension, but I didnt have another dimension (your Product) in my case. I'll try and dig out the bug number for you. - Have you got a support account to login and check it out?

  • Lightroom not reading correct data for Lens and Camera Serial Number

    Hi you all.
    Recently got Lightroom, and I'm so impressed - I never imagined image organizing and adjustment could be this easy and at the same time very advanced.
    I have a problem, however. Lightroom (and Adobe Bridge, too) does not correctly read the EXIF data of Lens type and Camera Serial Number.
    The first ~50 images I took and imported turned out correctly and displayed my serial number and lens (18-55 mm Canon) inside Lightroom.
    But now, whenever I import photos into Lightroom or view them with Bridge, they all display "Unknown Lens" and "Unknown Camera Serial Number".
    At first I thought that maybe the camera didn't correctly record this data on to the photos anymore for some reason, but a comparison using EXIFToolGUI shows that the metadata is EXACTLY the same as in the photos that display this info in Lightroom correctly.
    I have not done any changes to either my camera (Canon EOS-350D / Digitial Rebel XT) or lens (the kit lens, 18-55 mm Canon).
    It seems that for some reason, Lightroom has stopped reading these two fields of metadata - all the other fields, such as aperture and shutter speed, all display correctly.
    I also tried to reimport the photos into Lightroom, but it didn't help. Neither did "Synchronize Folder" -> "Scan for metadata updates".
    What should I do? I'd like my lens information do display correctly, as I'll buy a new lens soon.
    I have attached one of the photos that Lightroom doesn't read the data correctly from. Try importing it into your Lightroom, and see if how the info displays.
    Thanks in advance.

    Are these jpgs or RAW?  I have only edited metadata on jpgs.
    It looks like Vista's import stripped out all the makernotes.  I didn't look at your file but that seems to be what happened.  Be warned, Photoshop CS2 also strips out makernotes!
    Now how to fix the problem.  If you want to edit the metadata on files already loaded into LR, you need to write out your metadata to the files first, then edit the metadata, then read the new metadata into LR.  This is scarey for me, so I always make sure my backup is up to date on the images first.
    What to do...  You probably can't put back all of the makernotes, so what to do to get the lens information in.  I don't know if putting back in the makernote LensType would trigger LR to reconsider its lens information.  I don't know.  If it had a real lens name, my guess would be no because it would have an XMP::Lens field which would override.  But maybe unknown lens doesn't have this field and it would re-read the makernotes.
    The other solution is to forget about makernotes for these images and put the exact text you want into XMP::Lens.  I think that's the "easy" way.
    In either case, you will have to become familiar with exiftoolGUI or exiftool itself.  I use the command line exiftool but it looks like you can edit multiple files with exiftoolGUI.  Select your files, click the edit thingy (^) under XMP, choose various, and there is lens.  Put in the text you want.
    I would do this with one file first.  If the lens shows up after you read the new metadata into LR, you know you have it right.
    Note, exiftool can write backup files for each file.  This makes too much of a mess for me.  I prefer to copy the directory first (I have copies anyway, I just have to make sure the backups are up to date).
    Good luck!  I'm struggling with a similar situation where the same lens used by two different cameras is coming out with a different name.  I need to go back and "fix" the names in the images already imported, and then develop my procedure for setting a single unique name before I load new images into LR.  Not too much of a problem because I'm loading in GPS information anyway...  What's another call to exiftool...
    Judy

  • br tag in bean value not interpreted correctly

    Hi all
    i want to display a long string which includes <br> tags. This string is saved in a bean. In my JSP page i try to diplay the string as follows:
    <bean:write name="logFileText"/>
    This works but the <br> tags are not rendered/interpreted correctly. The display String look like that:
    21/09/2004 10:01:44 [INFORMATION] [init/process] 0001 Starting ... (at line 124 in file ndl_main.cxx)<br>21/09/2004 10:01:44 [INFORMATION] [init/undefined] 0010 Start Initialization (at line 109 in file ndl_dataloader.cxx)<br>21/09/2004
    If i take a look at the page source the <br> is written there as lt;br gt . But i want to go to a new line instead of displaying the <br> tag.
    Could somebody help me with that?
    Thanks Angela

    seems it doesn't work like that:
    [ServletException in:/pages/log/listLogFile.jsp] /pages/log/listLogFile.jsp(13,4) Attribute escapeXml invalid for tag write according to TLD'

  • Trimmed Quicktime Time code Media Files not reading correctly in CS5+ (works in CS4).

    I'm using Prores footage with metadata Timecode inserted into the Quicktime file.  Then I edit the Quicktime file, click "Save" and then import the trimmed file into APP CS4.  CS4 recognizes the edited clip and displays the timecode correctly (adhearing to the trims made on the file with Quicktime).
    BUT, in CS5, when I use the SAME clips, the timecode displays what the untrimmed timecode on the trimmed image.  So now, my timecode is OFF. 
    Really want to figure out how to fix this.  Does CS6 fix this issue?  Is there a preference or custom setting I need to select in order to have CS5 adhere to the metadata stored in the Quicktime file's timcode information?
    Any help would be greatly appreciated!

    There is a difference between Save and Save As in QuickTime Player. When you Save after trimming, the trimmed data remains in the file and takes up the same amount of space as before. When you Save As, the trimmed data is not included and you end up with a smaller file.
    I don't know why CS5 is behaving differently but it's more efficient to Save As and it will solve the CS5 problem too.

Maybe you are looking for