Help working with complicated data merge

Hello indesign community
I am and have been using CS3 for a while now and use the data merge feature with great success.
I have been asked to produce a report at the school I work in that will go out to parents which isnt to much of a problem all data will come from an assesment programme in a spreadsheet.
This is the problem the booklet contains reports on subjects and not all students do all subjects, I only want the subjects to appear that they will be taught in. Is there any way that anyone knows that I can use to drop a page if its not having any data merged into it.
Any thoughts on this matter would be usefull
Cheers

I don't hink Data Merge is sophisticated enough to skip a page if the entire record is null, but it will skip blank lines if there is a null field and nothing else on the line.

Similar Messages

  • Please Help! with a data merge

    Iam trying to do a data merge for my client in Indesign this is a new challenge to me and have gone through many a tutorial and uTube video but still cant get it to work properly.
    Iam hoping that someone can give me some advise.
    I have 11 different images (product Labels) that need personalisation with a data merge. I have attached the data merge file preview and the txt file (tab delimited text. txt)
    As you can see the data merge text, seems to overflow into all the other boxes. (The blank boxes hold white text) and the images dont appear at all. Any suggestions would be really appreciated.
    Thanks

    So you did press the preview button...
    First thing I see though, is the image tag is in a text frame, not an image frame, or at least that's the way it looks in the screen cap, but it does appear correct in the prvious version, so it might just be the way the frames are displayed.
    But I suspect, too, that the file is now damaged. The preview button is buggy, and once you've pressed it and then done a merge the odds that the file will ever work correctly are small. Best thing is to rebuild the template in a new file and merge without pressing preview (just trust it will work). Copy/paste from the old file seems to be OK to do this.

  • Help Working With Variable Data Sets (PS CS3)

    I have two different projects for which I believe the Variable Data Sets would / could work.
    Project 1:
    I have created a student badge for our TV Media class and I would like to be able to use a Variable Data Set to automatically read a data file with First and Last names and then place them in the locations of my choosing. I would like to be able to import the list and have it automatically create the 30 ID cards I need and/or print them too.
    Project 2:
    I have created a really nice looking school dance ticket. Currently they are about 1.5" x 6". I would like to be able to use a Variable Data Set to automatically add a couple of different pieces of information: Date, Ticket Number (sequential).
    In each case, I have been able to successfully create a data set and replace a single variable, but I have not been able to modify more than one variable in a file.
    Each text selection is on its own layer. I have tried to create a text file that looks like this:
    FName, LName
    Joe, Smith
    Barney, Jones
    Thalia, Chamoix
    I have also tried to create two different files, such as for project two:
    Date
    January 04
    February 12
    March 19
    Number
    1001
    1002
    1003
    No matter what I have tried, I still cannot seem to get more than one variable to function at a time.
    Any assistance would be greatly appreciated.
    Thank you!

    I don't hink Data Merge is sophisticated enough to skip a page if the entire record is null, but it will skip blank lines if there is a null field and nothing else on the line.

  • Help Required: Working with relational data

    Hi,
    I'm looking for some advice
    Scenario
    We have a customer who has an SE relational database with Apex for transaction processing. They require reporting functionality and are debating whether to buy BI SE One or BI EE; they will not buy the enteprise edition database though.
    Questions
    Here are my questions:
    1. In order to use answers and dashboards, does the relational data have to be in a dimensional format. Is this reccommended.
    2. We were debating on whether to create data marts for various business requirements. Is this standard procedure for relational data (Which is not too complex)
    3. If the data has to be in a dimensional format, is this best modelled using warehouse builder or the model layer of the repository using BI Administrator. (Baring in mind that the customer is an SME using a SE database)
    The main problem where having, been fairly new to warehouse building, is that we dont know what the best path is to take when working with relational data. Do we create dimensional models? What should we use? Is a relational structure suitable enough?
    Can anyone shed light on our problems
    Regards
    Kevin

    1. In order to use Answers and Dashboards you do not need to have a Data Warehouse. It can report out of both Transactional database as well as a data warehouse.
    2. It depends on what your business requirements are. BI EE/SE1 does not require you to have data marts. Data Marts would give performance gains, would help you in visualizing the transactional data from a business standpoint, is a big plus but not a mandate. If you want to go that route of creating Datamarts, you can easily do that using BI SE1 since that gives you warehouse builder which can be both used as a data modelling tool and a ETL tool.
    3. Warehouse Builder is a ETL tool. It helps in you visualizing/deploying data warehouses in databases. But BI EE Admin tool is more of a logical dimension modelling tool wherein the facts and dimensions do not exist physically but the tool uses them to do the querying/processing.
    Since you are just starting, what you can do is to use BI EE directly on top of the transactional system for the time being. But as a long term solution you can start working on your data marts and as soon as they are ready you can port the BI EE on top of them rather than the transactional system.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Xcelsiues 2008, working with live data help!!!

    Ok, so i have flynet designer for web services. All this is working correctly. i have setup a test query just to check everything is working so i just pulled out some customer info name, account number etc. I generated the webservice succesfully and i can browse to the website and enter a parameter and it returns results. So i know this part is working ok.
    So now im in xcelsius 2008, i add a new web service connection and it connects fine, at this point you have to select the cells where you want the data to go in the little excel spreadsheet panel. but nothing ever appears!!!!??? i dont know what i am doing wrong. has anyone had experience working with live data?

    In terms of timescale. I have till April to do this.
    I said 2 months cos things always come up. So, in terms of your application have you already:
    collected user requirements?
    developed and tested an appropriate database structure (tables, datatypes, triggers, views, etc...)?
    done any mock-up of some sort of the application pages and business process flows?
    gotten approval of any of the above?
    If you have all of this yet to complete - and you're new to databases, new to Oracle and new to HTML DB, and have more than a very simple application (10-15 pages) you may still be in over your head with this project.
    I'm not trying to discourage you from using HTML DB at all. It's a great tool and you can do some very cool stuff with it. And it's reputation as an Access killer is well deserved. It's just that you may not want to take on a critical time-sensitive project as your first.
    Also to consider - are you going to have anyone else helping out with it? If so, what strengths/weaknesses does that person bring to the project? Is it going to help you move faster? Or slow you down - because you're training and developing at the same time?
    Earl

  • My iPad Mini with retina display suddenly will not connect to the Internet. It shows full wifi bars, yet no web pages will load. My Internet is working with all other apple devices in my house. The iPad also no longer works with celluar data.

    My iPad Mini with retina display suddenly will not connect to the Internet. It shows full wifi bars, yet no web pages will load. My Internet is working with all other apple devices in my house. The iPad also no longer works with celluar data. I'm not sure what has happened. It was working fine a few hours ago. I have tried resetting it, ive restarted my browser etc. I tried to erase all data from my Ipad but I can't do that because it needs to sign into my Apple ID and use the Internet!

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are drooping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    iPad: Issues connecting to Wi-Fi networks
    http://support.apple.com/kb/ts3304
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h Mt
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Problem in working with Japanese data

    Hello,
    We have an application, which should work for both English and Japanese languages. Our application is working fine for English data but in case of Japanese, we are facing problems. In the application, there is a language setting, where the user can select either English or Japanese. This changes the language of the labels to English or Japanese. We are handling this thru' ResourceBundles. But the data that is entered can be independent of this. In English setting also, the data entered or diplayed could be Japanese. Now we are facing problems at vaious places -
    1. When we enter Japanese data and save it, it gets copied into the bean and if there is any error in the saving, the same data from bean comes back on the screen. This data doesn't appear properly in Japanese.
    2. When we try to retrieve the already saved data from database, it doesn't show poperly in Japanese.
    We are using our own 'toUnicode' function, which converts the data to Unicode before saving the data to database. Similarly, we have tried different encodings like SJIS / Shift_JIS / ISO-2022-JP at various places i.e. in 'Page' directive or in HTML Meta tag or various combinations of these two. Nothing is working reliably. Sometimes for some combination, data retained in the first case is correct but it can't be saved. Sometimes it works with Unicode, sometimes without Unicode. Some combination affects the Japanese labels as well. Otherwise the labels at least are displayed properly.
    The same code with just Shift_JIS setting in 'page' directive, worked well in IIS Server for both English and Japanese.
    What could be the problem in WebLogic? Does it matter if WL is installed on English or Japanese machine?
    Kindly answer ASAP, since the project is getting delayed.
    Thanking in anticipation...
    -Medha

    Hi,
    is there a difference in handling Japanese and Chinese chars? If not I
    might be able to give you some hints.
    Daniel
    -----Original Message-----
    From: JSB [mailto:[email protected]]
    Posted At: Monday, February 12, 2001 6:22 PM
    Posted To: internationalization
    Conversation: Problem in working with Japanese data
    Subject: Re: Problem in working with Japanese data
    Have u solved this yet, and how ?
    Medha <[email protected]> wrote in message
    news:[email protected]...
    >
    Hello,
    We have an application, which should work for both English andJapanese
    languages. Our application is working fine for English data but in case
    of
    Japanese, we are facing problems. In the application, there is a
    language
    setting, where the user can select either English or Japanese. This
    changes
    the language of the labels to English or Japanese. We are handling this
    thru' ResourceBundles. But the data that is entered can be independent
    of
    this. In English setting also, the data entered or diplayed could be
    Japanese. Now we are facing problems at vaious places -
    1. When we enter Japanese data and save it, it gets copied into thebean
    and if there is any error in the saving, the same data from bean comes
    back
    on the screen. This data doesn't appear properly in Japanese.
    2. When we try to retrieve the already saved data from database, itdoesn't show poperly in Japanese.
    We are using our own 'toUnicode' function, which converts the datato
    Unicode before saving the data to database. Similarly, we have tried
    different encodings like SJIS / Shift_JIS / ISO-2022-JP at various
    places
    i.e. in 'Page' directive or in HTML Meta tag or various combinations of
    these two. Nothing is working reliably. Sometimes for some combination,
    data
    retained in the first case is correct but it can't be saved. Sometimes
    it
    works with Unicode, sometimes without Unicode. Some combination affects
    the
    Japanese labels as well. Otherwise the labels at least are displayed
    properly.
    The same code with just Shift_JIS setting in 'page' directive,worked
    well in IIS Server for both English and Japanese.
    What could be the problem in WebLogic? Does it matter if WL isinstalled on English or Japanese machine?
    Kindly answer ASAP, since the project is getting delayed.
    Thanking in anticipation...
    -Medha

  • Working with Cyrillic Data

    Hi, We have a requirement where I have to work with Cyrillic data i.e. Russian data. I have to parse data based on specific fields.  I tried using match function but looks like it is having problem dealing with Cyrillic Russian data.  When I try to find an english word in a string then it works finebut when I try to find an Cyrillic character i.e. ул. or г. then I match function would not find this expression in the CYrillic string.
    i.e. match_pattern('Арбат ул.','Арбат ул\.') gives me 0
    Any idea how I can use BODS on function on Cyrillic data.
    Thanks,

    Should have not used escape character for dot. placing just dot works finein decode.

  • Tools required to install to work with Oracle Data warehouse

    Could anyone please guide me...as I am quite new to Oracle...
    till now I was working on Data warehousing using Microsoft tools i.e. (SSIS, SSRS, SSAS, SQL Server)
    So Please tell me which are the tools required to install to work with Oracle Data warehouse
    I came to know about OWB and OBIEE, but not sure what exactly these are ?

    In order to create and develop a webcenter portal application, you only need to install JDeveloper and download the WeBCenter extensions. That's true.
    But this install does not include the WebCenter services like dicussions, document services, analytics,... If you want to use these and integrate them in your portal, then you would need to install the suite as described on my blog.

  • Improving the LabVIEW Help: Working with Data Types

    Have you ever had trouble figuring out how to work with the waveform data type, the dynamic data type, or some of the other more complex data types in LabVIEW? As a tech writer on the LabVIEW team, I'd like to improve our documentation about working with data. What would you like to see? What would be helpful? Have you ever given up on a particular data type because it didn't work? Have you ever created a replacement data type because you preferred not to use a LabVIEW data type?
    Lacy Klosterman Rohre | Marketing Editor | National Instruments | 512.683.6376 | ni.com/newsletter

    I've been programming LabVIEW since around 3.1 / 4.0.  Over the years and versions, I've found it necessary to approach a lot of the new datatypes and algorithms with some healthy skepticism because I don't think we're usually given a "fair and balanced" overview.  Some of the things that are highly promoted that bring "ease of use" for beginners (and I *do* understand the importance of that when you're growing your LabVIEW user base) can carry significant performance penalties that are mentioned in more of a whisper, if at all.  I'd just like a more full disclosure of the tradeoffs -- the good, the bad, and the ugly.
    Waveforms -- very rarely use them, unless required for analysis functions.  I have a vague notion (between a belief and a memory) that they used to carry a significant performance penalty compared to arrays, but that the gap is now much smaller.  Still, I'm most comfortable with my old habit of using data arrays.  Some of this came about because a lot of my work uses counters where I may have a variable "dt" value or where my AI is clocked by a counter and the "dt" isn't internally generated.
    Dynamic signals -- have never used them.  Have no clear idea what good they're supposed to be, and they seem to be tied in primarily with Express VI's, which I have also studiously avoided.
    Variants -- Use them only slightly.  Performance issues are a question mark.  Exception: have learned that the implementation of Variant properties allows their use as an efficient way to create associates for string lookup tables. 
    Digital Waveform -- have typically avoided it except when graphing digital data during debug.  Haven't found any compelling reasons to use it.  I do like the notion of a compress/expand capability for sparse digital data, but haven't exercised it enough to trust the implementation. 
    Recap:  I don't need more simple "how-to's" in the help.  I need a LOT more "why bother's" that include both pros and cons. 
    -Kevin P.

  • Working with complex data types in web services ...

    Hi All,
    I have created a webservice and created an interface for that in ADF. Now as my web service returns a complex data type, i followed the steps given in this article "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" and it works fine, my results also get displayed. But only issue is i get a warning "JBO-25009: Cannot create an object of type:java.util.calendar with value:2008-09-23T23:51:30.000+05:30" and if i replace all the java.util.Date with oracle.jbo.domain.Date then i get a warning "JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:2008-09-23T23:51:30.000+05:30". Now i am unable to understand this although i believe it is a data type mapping issue, but not sure how to rectify it.
    Anybody knows the wayout?
    Regards
    Lokesh

    Andre,
    Thanks for youe response. I also tried makeing data type as string in place of date in data control.xml and it worked fine. So it confirms that i am facing with exactly similar issue as yours.
    I tried solution 2 mentioned in Frank's mail but its not helping[in fact i am already using web proxy as i am delaing with complex data types]. I created a web proxy and in java bean i placed break points to check the control flow[in order to check the root cause] but control never reaches the java bean!! I am not sure about the cause for it...control should pass through java bean isn't it??
    I am quite new to SOA...so can somebody just elaborate on how to rectify this using web proxy. I have been using this rl "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" to work with web proxies" to work with proxies.
    Regards
    Lokesh

  • Working with table data in Web Application Designer (WAD)

    Hello experts,
    I integrated two queries as analyse web items into a web template. To generate new facts, there is a need to compare data of both tables. Unfortunality there is no possibility to merge both quiries in one single query. It has to be done in  WAD.
    Is there a way to read the data of the tables (query output as analyse web item) into a data structure, i.e. an array structure of javascript to operate with them?
    Regards,
    TB

    Thank you. The APD could be a good approach.
    What you couldn't know, the two queries I mentioned are coming from two different BW mandators (We have the need to work with a two mandator model).
    It won't be possible to integrate queries from two different mandators in an APD, right?
    Regards

  • Working with midi data and automation data, assigning parameters

    I have a midi file with CC data in it. Controller 7 (volume) Controller 1 (mod) On page 600 the manual explains converting midi controller data to automation and vice-versa. I don't see any info on how to manage what CC data is mapped to what automation though. When I convert this midi file, I just get volume automation. Volume automation is just automatically there when you display automation, so I'm guessing that might have something to do with it. The problem is, I have CC1 data (and will be bringing in midi files that have data on many other CC#'s in the future) and I don't see how to map it to the parameters of plug-ins. I'd like to bring in midi files with information on any CC# I wanted, and then map that to any parameter of any plug-in I wanted. I couldn't figure out how to do this with the automation conversion process though.
    This issue led me to another question (sorry). Since I wasn't getting this to work I decided to try something else. I thought I'd try opening the controller assignments (command K) window and just assigning the CC data to control parameters that way. So I use my midi hardware controller to set a parameter to be controlled by CC#1. This works fine, and I can control the parameter with my midi controller. When I press play however, hoping that the CC#1 data in the midi file I imported will control this parameter, it doesn't seem to do it.
    If someone to help me I would appreciate it very much, I wouldn't be surprised if I'm just missing something in one of the manuals, but I have not worked this way with Logic very much, I've just always used it's automation system and haven't ventured into dealing with CC data. Sorry for the long post, I just wanted to explain clearly (hope I have)

    Balie Todd wrote:
    I'd like to bring in midi files with information on any CC# I wanted, and then map that to any parameter of any plug-in I wanted. I couldn't figure out how to do this with the automation conversion process though.
    First you cross too many questions, that's why I will try to answer one by one when have time cause they need some graphics etc.
    As a beginnings have a look at this forum [LINK|http://discussions.apple.com/thread.jspa?messageID=10612612&#10612612], where I show several scenarios how to manage CC7 and CC10 in the environment. It is real time processing. You can do some post processing using the Transform Window as well. Hope to have time to show you some Transform Mappers.
    In addition it is possible to Map any CC# to any Plugin parameter in the Environment using transformer Mapper object ( realtime ), or using the Transform Window as well. ( If I have time later this evening will make same examples...
    So I use my midi hardware controller to set a parameter to be controlled by CC#1. This works fine, and I can control the parameter with my midi controller. When I press play however, hoping that the CC#1 data in the midi file I imported will control this parameter, it doesn't seem to do it.
    This is possible as well but using some Environment tricks with IAC port, a dummy "Learn" fader and probably condition transformer ( I have show many times such schemes but do not have time to search right now - hope to have time to make new one according your scenario ).
    Will come back soon with more info and schemes...
    Regards
    !http://img59.imageshack.us/img59/4967/aglogo45.gif! [www.audiogrocery.com|http://www.audiogrocery.com]

  • XML Query Help row with no data

    declare @address table
    AddressID int,
    AddressType varchar(12),
    Address1 varchar(20),
    Address2 varchar(20),
    City varchar(25),
    AgentID int
    insert into @address 
    select 1, 'Home', 'abc', 'xyz road', 'RJ', 1 union all
    select 2, 'Office', 'temp', 'ppp road', 'RJ', 1 union all
    select 3, 'Home', 'xxx', 'aaa road', 'NY', 2 union all
    select 4, 'Office', 'ccc', 'oli Com', 'CL', 2 union all
    select 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 union all
    select 6, 'Home', 'ttt', 'loik road', 'NY', 3
    SELECT a.* from @address a 
    where a.AddressID = 1
    FOR XML path('Addresses')
    SELECT a.* from @address a 
    where a.AddressID = 9
    FOR XML path('Addresses')
    Issue:
    As you can see for second query where AddressID = 9 is not exists so xml is not generated but
    my expected result is for second query is
    <Addresses>
    <AddressID />
    <AddressType />
    <Address1 />
    <Address2 />
    <City />
    <AgentID />
    </Addresses>
    Thanks in advance for all your help. 

    First of all: Your expectation is wrong. Sorry to say that. But your SQL statement for A.AddressID = 9 does not return a row. So no row is converted. I hope you C it: void.
    From the XML viewpoint:
    <Addresses>
    <AddressID />
    <AddressType />
    <Address1 />
    <Address2 />
    <City />
    <AgentID />
    </Addresses>
    is equivalent to
    <Addresses />
    which is equivalent to
    void
    You C. Sorry got infeCted some how ;)
    The only meaningful result in XML would be:
    <Addresses ID="1">
    <AddressType>Home</AddressType>
    <Address1>abc</Address1>
    <Address2>xyz road</Address2>
    <City>RJ</City>
    <AgentID>1</AgentID>
    </Addresses>
    <Addresses ID="9"/>
    Cause now Addresses (Really? A plural form for a single entity?) transports the meaning, well there is no data (no row) for it. We tried to find it, but we failed. In opposite to
    <Addresses>
    <AddressID>9</AddressID>
    <AddressType />
    <Address1 />
    <Address2 />
    <City />
    <AgentID />
    </Addresses>
    <Addresses ID="9">
    <AddressType />
    <Address1 />
    <Address2 />
    <City />
    <AgentID />
    </Addresses>
    Which says: well, we have a row with the ID 9, but the rest of the columns is empty.
    The problem is mere semantics. But it's an important difference.
    Now for your problem: Why do you expect this? Where do can you work with such a kind of informationless result?
    btw, as you're using already a table variable (+1), you should also use
    table value constructors like
    INSERT INTO @address
    VALUES ( 1, 'Home', 'abc', 'xyz road', 'RJ', 1 ),
    ( 2, 'Office', 'temp', 'ppp road', 'RJ', 1 ),
    ( 3, 'Home', 'xxx', 'aaa road', 'NY', 2 ),
    ( 4, 'Office', 'ccc', 'oli Com', 'CL', 2 ),
    ( 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 ),
    ( 6, 'Home', 'ttt', 'loik road', 'NY', 3 );
    I would use a tally table, when you really need this:
    DECLARE @address TABLE
    AddressID INT ,
    AddressType VARCHAR(12) ,
    Address1 VARCHAR(20) ,
    Address2 VARCHAR(20) ,
    City VARCHAR(25) ,
    AgentID INT
    INSERT INTO @address
    VALUES ( 1, 'Home', 'abc', 'xyz road', 'RJ', 1 ),
    ( 2, 'Office', 'temp', 'ppp road', 'RJ', 1 ),
    ( 3, 'Home', 'xxx', 'aaa road', 'NY', 2 ),
    ( 4, 'Office', 'ccc', 'oli Com', 'CL', 2 ),
    ( 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 ),
    ( 6, 'Home', 'ttt', 'loik road', 'NY', 3 );
    WITH n1
    AS ( SELECT *
    FROM ( VALUES ( 1), ( 1), ( 1), ( 1) ) Q ( n )
    n2
    AS ( SELECT a.n
    FROM n1 a ,
    n1 b ,
    n1 c ,
    n1 d
    NumberTally
    AS ( SELECT ROW_NUMBER() OVER ( ORDER BY n ) AS n
    FROM n2
    SELECT NT.n AS [@ID] ,
    a.AddressType ,
    a.Address1 ,
    a.Address2 ,
    a.City ,
    a.AgentID
    FROM NumberTally NT
    LEFT JOIN @address a ON a.AddressID = NT.n
    WHERE NT.n IN ( 1, 9 )
    FOR XML PATH('Address');
    or the void version:
    DECLARE @address TABLE
    AddressID INT ,
    AddressType VARCHAR(12) ,
    Address1 VARCHAR(20) ,
    Address2 VARCHAR(20) ,
    City VARCHAR(25) ,
    AgentID INT
    INSERT INTO @address
    VALUES ( 1, 'Home', 'abc', 'xyz road', 'RJ', 1 ),
    ( 2, 'Office', 'temp', 'ppp road', 'RJ', 1 ),
    ( 3, 'Home', 'xxx', 'aaa road', 'NY', 2 ),
    ( 4, 'Office', 'ccc', 'oli Com', 'CL', 2 ),
    ( 5, 'Temp', 'eee', 'olkiu road', 'CL', 2 ),
    ( 6, 'Home', 'ttt', 'loik road', 'NY', 3 );
    WITH n1
    AS ( SELECT *
    FROM ( VALUES ( 1), ( 1), ( 1), ( 1) ) Q ( n )
    n2
    AS ( SELECT a.n
    FROM n1 a ,
    n1 b ,
    n1 c ,
    n1 d
    NumberTally
    AS ( SELECT ROW_NUMBER() OVER ( ORDER BY n ) AS n
    FROM n2
    SELECT a.AddressID AS [@ID] ,
    a.AddressType ,
    a.Address1 ,
    a.Address2 ,
    a.City ,
    a.AgentID
    FROM NumberTally NT
    LEFT JOIN @address a ON a.AddressID = NT.n
    WHERE NT.n IN ( 1, 9 )
    FOR XML PATH('Address');

  • Proper work with binary data

    I know that usually all manipulations with CF data are
    processed NOT in binary mode.
    However, how to make the following then:
    I create merger component, that would merge several files
    together and unmerge specific file from binary field. Client asked
    NOT to use zip, but make things simpler and faster and just merge
    several files together.
    So i've decided to use such format inside binary field
    [file_1_name, 256bytes][file_1_size, 4 bytes][file_1_body,
    <= 2^32 bytes]
    [file_N_name, 256bytes][file_N_size, 4 bytes][file_N_body,
    <= 2^32 bytes]
    So - i need to be able to write EXACTLY N bytes into some
    field. How do I accomplish this in CF? Indeed internally it seems
    to work with strings and makes binary conversion only in the end,
    with something like ToBinary() function...
    P.S. As 'savour' variant, I could try zip compression with
    level=0 :) Hope it's VERY fast.
    I will try to persuade client NOT to use something like this,
    but zip. However, I'd really like to hear the answer to my question
    - for understanding.

    Hi
    Not sure you can modify the server names but u can remove non used entries in p986115

Maybe you are looking for

  • Ethernet cable doesn't appear connected?

    Over the last few days I have had an intermittnet difficulty conencting to thr Internet. I discovered that although it's physically plugged in, the ethernet cable isn't - the System Network reports, 'The cable for the Built-in Ethernet is not plugged

  • IPod Touch Digital Output to Stereo Digital Input

    Is there a way to connect an iPod touch to the digital input of a stereo amplifier? All the iPod connectors I've seen, including those for the universal dock, connect to stereos using analog RCA plugs. I'm trying to find a true digital to digital con

  • Not Updating Operations when Uploading Routings

    Hi All, I am using Direct Input method to upload routings using LSMW. When i finished all steps in LSMW i am getting mesage that "Routing is updated in group XXXXXXXX" with Message type I. I have'nt seen the operations for that Routing when i tried t

  • Must have the same type and the same length

    hi experts, DELIVERY_PLANT  data type STRING    //from proxy class, can't be changed       BEGIN OF ty_citem,           article type matnr,           werks   type werks,        END OF ty_citem, LOOP AT it_items INTO lv_item.     lv_citem-article = lv

  • Transparent spry menu

    I am using a spry menu with a transparent background, but it shows up as white in IE. Also, how can I make the top level have a transparent background and the drop downs have a color background?