How to avoid the presence of element in the Destination file if the value is empty

Hi,
I am using a map, in which Source is an XML File, Destination is a FlatFile
For Eg:
Input File
<Name>
FirstName>aaa</FirstName>
<LastName>bbb</LastName>
</Name>
Output File
FirstName     LastName
aaa                bbb
Destination Schema is also the same, but if the Last name value is empty, the LastName element should not be present in the Destination Flat File.
Eg:
Input File
<Name>
FirstName>aaa</FirstName>
<LastName></LastName>
</Name>
OutputFile should be
FirstName
aaa
Please help in making this requirment....
Regards, Vignesh S

Set the “Min Occurs” property of the LastName header element in the flat-file schema to “0” (Zero)
Create a map which maps the Schema for the XML file to the flat-file schema.
In the map, use the Logical Existence and Value mapping as shown in the below image. Here Logical
Existence function is used to check the existence of the field LastName in the input XML. If LastName element exist, then using the Value mapping functiod, map the Contant-LastName  (this
would be the header). Below image shall help you with thisexplanation.
 As you can see, for the detail record, the value is mapped directly and for the header, as per you requirement a check has been made to for the existence of the LastName
field in the XML to populate the LastName header node. If LastName is empty in the XML, header LastName would not be populated.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

Similar Messages

  • My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?

    My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?
    thanks

    for windows you should have an exe and a 7z file.  put both in the same directory and double click the exe.
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    You can certainly use iWork, though I hesitate to recommend it to a seasoned Windows user simply because it would add another level of the unfamiliar with which you would have to gain familiarity. The iWork applications are certainly very competent and in most respects both easy to use and surprisingly powerful. They are not 100% compatible however, though that typically manifests itself in document formatting issues rather than anything more significant.
    I have never attempted to import emails from a Windows system into MacOS - other than in Outlook connected to an Exchange server, thus not really an issue at all. I doubt that the Mail app in MacOS can import directly, but of course you could always set the account(s) up on the Mac and then forward emails you want to keep from the PC. Not elegant, but it works. Virtually any Windows document or file, whichever application created it, can be opened or converted for use on a Mac, and using both systems on my desk each day I rarely see any issues switching stuff from one machine to the other. You may stumble over one or two issues, but likely not significant.
    In switching platforms there will be some inevitable issues, not so much with being able to import your stuff because there's usually a workaround or a utility that can help, but just with getting familiar with the platform and the differences between Windows and MacOS that can obscure their similarities. From time to time the support community here hears from a user who has found the migration very problematic and regrets it, but for the most part the phrase 'I should have done this years ago...' is rather more prevalent!

  • I upgraded to Maverick and now Time Machine will not connect to the external hard drive to back up files.  The external hard drive is a Western Digital "My Book Live" 2 TB.  How do I solve problem?

    I upgraded to Maverick and now Time Machine will not connect to the external hard drive to back up files.  The external hard drive is a Western Digital "My Book Live" 2 TB.  How do I solve problem?

    I also had problem accessing my WD MyBookLive after upgrading to Maverick.
    To resolve the problem, I used  Connect To Server (Cmd K) to specify the IP address.
    Then I enter a user id and password I created in the MyBookLive.
    You can also verify that you have admin access to the MyBookLive using Safari or Chrome.
    Just enter the MyBookLive IP address as the URL.

  • How do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    how do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    A bit vague as to what you intend, but the simple answer is to select all the files you want to delete then either drag to the Trash or CTRL- or RIGHT-click on the selection and choose Move to Trash from the contextual menu.

  • The cluster server element 441305751 is not added in the EP cluster context

    Hello Experts,
    We are using load balancer to distribute the load across of our four portal servers nodes. Lately, two of our nodes are behavior very strangely; it continuously stopped working momentarily and it started back up again automatically by it self. And the users usually received a message u201C500 internal server erroru201D.
    #1.5 #001372559B8800280000000200002D940004692BC78C988A#1241536659228#com.sap.engine.services.prtbridge##com.sap.engine.services.prtbridge####n/a##defe75c0398711debfb1001372559b88#SAPEngine_System_Thread[impl:5]_55##0#0#Error#1#/System/Server#Plain###
    The cluster server element 441305751 is not added in the EP cluster context,
       because prtbridge on 441305751 is stopped  or not yet started (maybe the server is starting or shuting down).
    Any helps would be appreciated,
    davidn

    HI David,
    Did you figure out why it happened? we have same exact problem and same log was written, could you please share your solution.
    Thanks

  • [svn:osmf:] 15256: Add metadata to the resource of elements created by LoadFromDocumentElement subclasses indicating the derived resource .

    Revision: 15256
    Revision: 15256
    Author:   [email protected]
    Date:     2010-04-07 09:51:55 -0700 (Wed, 07 Apr 2010)
    Log Message:
    Add metadata to the resource of elements created by LoadFromDocumentElement subclasses indicating the derived resource.  This allow recipients of MediaFactoryEvent.MEDIA_ELEMENT_CREATE to be able to determine where a created element derives from.  Updated F4M code and SMIL code, plus unit tests.  Also added MediaType to resources generated by SMILMediaGenerator, in case they lack file extensions.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/ManifestParser.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataNamespaces.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/f4mClasses/TestManifestParser.as
        osmf/trunk/plugins/SMILPlugin/org/osmf/smil/loader/SMILLoader.as
        osmf/trunk/plugins/SMILPlugin/org/osmf/smil/media/SMILMediaGenerator.as
        osmf/trunk/plugins/SMILPluginIntegrationTest/src/org/osmf/test/smil/loader/TestSMILLoader .as

    Yes, it seems to be a kernel bug. Previously, my wife used Windows for years and nothing like this happened. Now, she tells a lot about Linux systems :-)
    An example of this very-ugly-workaround for somebody who'll find this topic struggling with the same problem:
    $ cat /etc/pm/sleep.d/99_fix_time_shift
    #!/bin/bash
    # fixing https://bbs.archlinux.org/viewtopic.php?id=173487
    case "$1" in
    suspend)
    date +%s > /tmp/suspend.log
    resume)
    was=`cat /tmp/suspend.log`
    now=`date +%s`
    # time shifts for 68 hours
    if [ $now -gt `expr $was + 244800` ]; then
    date -s "`date -R --date="-68 hours ago"`"
    ## sleep 30; ntpdate ntp.ubuntu.com
    fi
    esac
    Last edited by shurup (2014-03-26 16:25:55)

  • Can't launch the organizer in Elements 13. "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."  This happed with Elements 11, too.

    Can't launch the organizer in Elements 13. "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."  This happed with Elements 11, too.

    juliana
    Do you have any version of Premiere Elements 13 or only Photoshop Elements 13 which comes with Elements Organizer 13?
    Let us look at the following for Elements Organizer 13....
    1. Deletion of disabling the Elements Organizer 13 setting file which is named psa.prf. In Windows 7, 8, o 8.1 64 bit, it is found in the
    path
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Elements Organizer
    13.0
    Organizer
    and in the Organizer Folder is the psa.prf file that you delete or disable by renaming it from psa.prf to psa.prfOLD.
    2. If the above gains you successful entry into the Elements Organizer 13, then you can
    a. create a new catalog
    and/or
    b. repair or optimize the current one
    See Elements Organizer 13/File Menu/Manage Catalogs/Catalog Manager.
    3. There are times that certain formats will bring the Elements Organizer down when you try to import those formats into
    it.  But, from what you wrote, your current problems do not sound media related.
    3. At your earliest opportunity, please update Elements Organizer 13 to 13.1 using its Help Menu/Updates.
    Please review and consider and then let us know the outcome.
    Thank you.
    ATR

  • Arlington Historical Society wants to give its visitors the ability to look at our IPhoto files on the Apple computer in our office, but NOT be able to modify them in any way.  How can we do this?

    Arlington Historical Society wants to give its visitors the ability to look at our IPhoto files on the Apple computer in our office, but NOT be able to modify them in any way.  How can we do this?

    Thanks. We want visitors to browse through our historical photos in any of the ways iPhoto will allow them, including slide shows, but also searching for photos by key word and viewing them along with the comments we have entered on that photo.
    I was beginning to think iPhoto had no capability to limit users to certain functions.
    I wonder if the use of Apple's sharing files function would help. I have read that it is possible to share files with others, and to limit their use to viewing only, but I don't know how to do this.

  • Can you let me know if any personal information is backed up to the cloud ? For example my design files in the workspaces - Thanks

    Can you let me know if any personal information is backed up to the cloud ? For example my design files in the workspaces - Thanks

    The only thing backed up from InDesign is the limited number of settings in the Sync Settings preferences, and only if you choose that option. No design files are backed up.
    If you choose to use the File Sync files feature of the Creative Cloud desktop app, you can choose to copy files for yourself or to share, but that it's turned off by default.
    https://helpx.adobe.com/creative-cloud/help/sync-files.html

  • Is it possible to check the previous backups on a certain backup file for the iPhone.

    Is it possible to check the previous backups on a certain backup file for the iPhone. I need to backup and restore the files which were used in the second week of January, but now I am only able to see the latest iteration of the backup. I am assuming that the iPhone backup rewrites on the same set of files. I may be mistaken. Is there any work around to see the old backups? Any kind of help would be seriously appreciated.

    You can use zoom: Settings>General>Accessibility.
    " A simple double-tap with three fingers instantly zooms in 200 percent, and you can adjust the magnification between 100 and 500 percent."

  • Hello. Can I still use the forms central to modify my pdf.-files after the software is not supported by adope?

    Hello. Can I still use the forms central to modify my pdf.-files after the software is not supported by adope?

    Formscentral isn't designed to allow for the modification of PDF files, forms or otherwise. If you have saved forms created in Formscentral as PDF you will continue to be able to modify them in a program like Acrobat. Hope this helps.
    Andrew

  • How do i re install premiere elements 11, i can only find the download for 12.

    I would like to install premiere elements 11 onto a different computer but can't find the download. I can only find 12

    AlaskaBreeCharlie
    Did you purchased Premiere Elements 11 from an Adobe download? If so, did you double check http://www.adobe.com Welcome AlaskaBreeCharlie/My Orders and My Products for the download? Or, did you have an installation disc instead?
    Depending on the circumstances, you could contact Adobe via its Adobe Chat to inquire about getting additional Premiere Elements 11 download
    http://helpx.adobe.com/contact.html?product=premiere-elements&topic=orders-refunds-and-exc hanges
    Click on the above link. When it opens, click on the statement "I still need help" to bring up the Adobe Chat to discuss
    "Orders, Refunds, and Exchanges".
    Also, you might consider downloading the Premiere Elements 11 tryout from the following web site and inserting your purchased Premiere Elements 11 serial number in it.
    http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l
    It is important that you read carefully the Note: Very Important Instructions message at the web site. Otherwise, you will run into Access Denied message.
    Please review and let us know the outcome.
    Thank you.
    ATR

  • How to avoid a report to execute without taking an action on the prompt

    I have created a dashboard which has a prompt. I would like to have the report run only when the user clicks on "OK". Right now when the dashboard is accessed it already runs the report with the default value on the prompt.
    Here is the error message I get
    "No Results
    The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below."
    Thanks!

    The report will always run, so create a default prompt which always gives 'No results'. Next change the text in the 'no result'view to: "Please make an appropriate selection and press GO"
    regards
    John
    http://obiee101.blogspot.com/

  • How to avoid "images" folder in programatic exporting of.rpt files to HTML

    In C#, When crystal reports is programatically exported to HTML format, the result is a folder bundled with .htm files and a folder called "images" which holds the .png files associated with these .htm.
    My requirement is to have both the .htm files and the graphic files(i.e. '.png' files) in the same folder and do not want a new folder "images" to be created.
    This creation of "images" folder does not happen when we manually export cryatal reports to html format.
    Kindly suggest, How can we avoid the creation of this "images" folder when programatically exported to html format ?
    Following is the approach used to export to HTML format.
    ReportDocument mreportDocumentObject_
    mreportDocumentObject = new ReportDocument();_
    ExportOptions exportOptions = new ExportOptions();
    exportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
    exportOptions.ExportFormatType = ExportFormatType.HTML40;
    HTMLFormatOptions htmlFormatOptions = new HTMLFormatOptions();
    htmlFormatOptions.HTMLBaseFolderName = folderName;
    htmlFormatOptions.HTMLFileName = fileName;
    htmlFormatOptions.HTMLEnableSeparatedPages = bHTMLEnableSeparatedPages;
    htmlFormatOptions.HTMLHasPageNavigator = bHTMLHasPageNavigator;
    exportOptions.FormatOptions = htmlFormatOptions;
    mreportDocumentObject.Export(exportOptions);_
    Edited by: GuruRaj01583 on Jul 23, 2009 1:23 PM

    HI David,
    I have a requirement to e-mail the exported html report. When i e-mail the attachments (i.e .htm file and .png file with in the images folder) , The reciever has to save the .htm file into a folder(say X) and with in the same folder 'X'  he has to create a 'images' folder and save the .png file into it. Only then .htm file will load the appropriate ".png".(I believe It is internally designed in .htm to load the .png files from 'images' folder). SO it becomes additional work for the user to save these attachments in folder structure as explained above.
    There is another scenario to store the reports into database which requires .htm and .png to be in the same folder.
    These are above scenarios where images folder is causing the problem.
    I have exported the reports to other formats (i.e. xls, pdf, rtf, txt) and those work fine. Supporting .html format as part of the above requirement is where i am stuck.
    I wanted to confirm whether creation of 'images' folder in CR .NET SDK IS BY DESIGN ?
    If that is confirmed and if there is NO work around to get the .htm file and .png file into same folder, then we can re - think on our requirement.
    Kindly confirm the above or Kindly suggest any work around if available .
    Thank You.

Maybe you are looking for