A mapped elements relationship with other elements cannot be preserved

Hi,
I am trying to create an XML file from an XSD using excel macros and data from excel worksheet. The mapping takes place fine. However, when I try to save the mapped items into an XML file using SaveAsXML function, it gives me the following reason why the
XML is not exportable:
A mapped elements relationship with other elements cannot be preserved
Could someone please help is resolving this issue?
Thanks

Preamble: I am not a specialist, on the contrary. I discovered xml a few days ago trying to submit returns based on two quite different compulsory xsd schemas established by local authorities. So this note has no other pretention than
to try to help others starting from same level.
The plus: I discovered I could do it (with limitations) from Excel 2010 by attaching the provided xsd and mapping the relevant fields to excel data cells. This is reasonably described on MS sites & elsewhere, although the MS tutorials
do not focus on this particular objective, which is important as authorities are using more and more XML to expect returns.
The minus: I stumbled across stupid issues (in fact pulling my hair...), which could be better highlighted in MS doc for the newbies like me, because at that stage of knowledge and on your own, all seems unsurmountable. When Excel gives
the error messages, there is little indication on why and where the error occurs. My two common errors difficult to debug:
1. Denormalized data error
2. Relationship cannot be preserved error
What I was doing wrong for the first xsd then even for the second by accident:
1. In error, I was mapping an element occurring max once in the XSD schema to an element in an "Excel Table" (the “new” table formatting available in Excel 2010). I solved this by de-mapping the culprit element, converting the "Excel Table"
to ordinary ranges using the button provided in the ribbon for this, and re-mapping. From there, (nearly) each time I was mapping a new element / attribute to a cell in the worksheet, I used the button "Verify map for Export" giving me debugging message soon
enough before mapping the whole data set and finding it was wrong a bit late and not knowing exactly where it started to go wrong. Also, for the repeating component, I had set manually the Excel table for the whole recursive element beforehand as I found out
that when using the dragging process, the results could be random (some attributes in the table, others in other tables resulting in errors type 2 relationship).
2. Relationship error is a more nagging issue as it seems to relate to a structural limitation of this Excel 2010 export mechanism. Flattening a database with several depth levels (list of lists) is not trivial, so Microsoft stipulates
a bit buried in notes while it should be in bold at the top that Excel (which version? also 2013?) "does not support recursive structures that are more than one level deep". Happily, while the xml schemas I had to follow where providing for several levels
deep (3 in my case), I needed only one for both xml files.  So, I copied the “too complex” xsd schema, updated it manually to suppress 2 levels. I remapped and tested. The error messages had gone. I exported. Then, I had to simply add the
previously deleted opening & closing tags manually using a free editor (Vim with thanks to that author).  
But unless my understanding is wrong, which is quite possible, readers should understand that this documented limitation can become a structural stumbling block if they need absolutely recursivity with more than one level depth (list of lists). So, if
I can do it in Access from a DB (I still need to find out how & forum guidance is more than welcomed), this will be my future way to explore.
To finish, I validated the exported xml against the compulsory xsd schema using the online tool provided free by CoreFiling to ensure basic formatting mistakes had not been committed before submitting the returns for online validation
by Authorities application. I have MS Visual Studio Express installed which may help as well but I don’t know how to use it for this.
NB: I found also easier to copy (dragging top of the xsd tree) all the xsd elements /attributes in bulk from the xsd schema from the box on the right to a worksheet. While results would not be useable “as is” to map (it would most probably
give errors), at least, it provides a good initial template with the right headings for all the elements / attributes facilitating restructuring (occurring once, elements part of a recursive table) then map properly and reasonably fast. Before doing this,
I was copying manually the xml headings from the Word documentation provided by Authorities, which worked but was more cumbersome and risky.
Conclusion
I had never read about xml before (just heard often about it). It took me around 6-7 hours to learn some critical basics about it and about these specific xsd schemas. With a few trials & errors, I could use Excel 2010 to produce the
xml files required for the two schemas I needed. The great advantage compared to an online submission of data to Authorities is that it a process easy to repeat quietly at work (or at home) and enabling to check peacefully and thoroughly the xml data files
before submitting them.  If wrong submissions have been made, it enables automated corrections much easier as well. It is within reach for users with reasonable but not outstanding Excel / Xml knowledge but it requires some initial time investment.  
Hope this saves time for others.
acontrario
Brussels

Similar Messages

  • Love / Hate Relationship with Photoshop Elements

    I am having a love/hate relationship with Photoshop Elements!  Love the page design capabilities and hate the lack of capability on the print end.  Kodak does not give any choice in the book they will print from Elements.  All I can get is a #$%& die cut cover!  Is there anyway that I can order other options that I know Kodak has available when creating a book using Elements and their site.  I want to be able to choose a custom cover!  I have tried Kodak to get answers.  I have tried Adobe (impossible, unless maybe you pay).  Neither are very helpful!  The only answers I get are use the Elements designed pages and place them onto pages that you create in their software.  Problem is that one needs a jpeg file to do this.  No online program seems to recognize .PSD or .PSE file types.   HELP!
    Bob, Barbara you both seem to be very knowledgable...any ideas...
    Anyone with any help can answer here or [email protected]
    Terry

    Terry:
    Yeah, the photobook print options are limited. (Although, the built in Kodak and Shutterfly books are very nice)
    One thing to try differently is to use the Print At Home selection on that first screen after the clicking on the PhotoBook option (assuming you are using PSE8 here) (use Photo Collage with PSE7)
    Down that path, you will get a few more choices in page size. It will still create a multi-page document (a .pse) while your building your book, and when done, you can print the pages of the book out as a .pdf. Many book printing services will take in a PDF.
    Another option is to do a single page at a time and save them as .jpg's. A little more work in keeping your various files together and ordered properly, but it would give you ultimate flexibility.

  • Compatibility of Photoshop Elements 5 with Premiere Elements 7

    I have Photoshop Elements 5 and have created an audio slideshow in it, but I was told that in order to get it to DVD that can play on things other than my PC, I'll need to get Premiere Elements. Is that right?
    If so, would I be able to buy just Premiere Elements 7 and use it to do this and to do other stuff with PSE 5?
    Or would I need to buy Premiere Elements 7 with Photoshop Elements 7?
    Any help is really appreciated.
    Thanks!

    I am not 100% sure but I believe that PSE5 will only create a VCD... so will not burn to a DVD but only to a CD. Some DVD players will play VCD discs, not sure if all will.
    If you buy PE7 you would need to export your slideshow in WMV format and bring this into PE7 for further work/burning.

  • How do I open projects created using Premier Elements 8 with Premier Elements 13

    how do I open projects created using Premier Elements 8 with Premier Elements 13

    ATR
    The DVD Creator.dll file was in the proper location but I could not find a Run As Administrator Option.
    I did delete Prefs file and try again to open the app then the project and received the same problem.  And the scratch disks were all directed to the Elements 13 path
    Yesterday I did try additional solutions
    Removed the Elements 13 App vis the Control Panel, copy the original downloaded .zip File to the Desktop and reload the entire application with no success solving the problem
    In addition to that I contacted a site called Rescue.com? and the guy told me that he was a representative of Adobe, which I was not sure was the truth.  He looked at my system and told me that Premier 13 was not compatible with Windows 7.  I called BS on him told him that Adobe site said it was compatible and he told me I had a Trojan on my system and he would refund my money for Elements 13 and sell me version 12, which would be compatible, along with a better security system than the Norton 360 I told him I had.  At that point I immediately terminated our communications and called Norton to have additional checks performed to ensure no additions were added to my system.  They had me download and run Power Eraser from them and it found nothing wrong. 
    I also temporarily turned off the firewall and tried to use the Elements 13 but had no success.
    I also went to Microsoft Windows site and searched for the Exception code: 0xc0000005 that was displayed in the event viewer and they indicated there was a hotfix available and they would email me that fix.  ave not received the email yet.
    I’m getting very frustrated but thank you for your help.  I will update you with and additional results or actions I get or perform.
    GDBMB

  • I have a PC with Windows 8.  I purchased Photoshop Elements 13 with Premiere Elements 13 Feb 9.  I think I downloaded both today (each took about 15 minutes to download).  Each appeared to have two components.  When I attempted to run the exc piece, I rec

    I have a PC with Windows 8.  I purchased Photoshop Elements 13 with Premiere Elements 13 Feb 9.  I think I downloaded both today (each took about 15 minutes to download).  Each appeared to have two components.  When I attempted to run the exc piece, I received an error message.  I don't know what to do next?

    if the error message was about a missing archive, you need to place both the exe and 7z files in the same directory for photoshop elements.  and then do the same for premiere elements.
    then click the exe in each directory.

  • Problem of convertion of catalog Photoshop element 4 with Photoshop element 13

    Hello I have just installed(settled) Photoshop element 13 on my pc with Windows 8.1.je would want to convert a catalog of Photoshop element 4 with Photoshop element 13 but that this does not re-know him(it). At he(it) an explanation Thank you

    Jon,
    Doesn't the catalog have to be converted using the special utlity before Catalog Manager will convert it?
    Convert Organizer catalogs for 64-bit versions | Photoshop Elements 13 or later
    Brian

  • Can ActionList in MD form be replaced with other elements(buttons?)

    Hi,
    At Re: # of tab canvases dependant on the # of groups that come back from a query in the entry of April 18,2001
    I found the following answer to my question:
    "Sorry, this is not supported yet. You cannot hide ActionList and you cannot replace it with any other elements."
    Is this still true?
    If not, how can I replace ActionLists of both blocks in Master/Detail form with buttons Update, Insert, Delete?
    Thank you very much in advance.
    Galina.

    I'm not sure why you don't think an event structure won't work but if you're not comfortable doing that, you can simply remove your Booleans from the cluster and build them into an array. You're converting the cluster to an array and doing a search of the array to see which button is true so why not skip the initial cluster part. I think you could also skip some or all the writing to the cluster with a local variable if you used a different mechanical action for the buttons.

  • Image on jsp from database along with other elements on image.

    Hi All,
    I wish to display an image which is stored in my database along with other contents on the page.
    I am able to display the image on an entirely new page but I do not wish to display it on a new page. Neither frames etc fit on my current page design.
    Kindly help

    I have a jsp page ..
    I have a byte stream in which i have stored the image from the database (the image is stored in databse as blob) in that jsp.When i use output stream object to display the image from the database (as suggested by many in this forum), the image is displayed in a new page. I wish to display the image along with my other elements like text etc in the same page.

  • Docking container in a screen with others elements.

    Hy yall,
    i'm trying to add a docking container at the bottom of a screen where i have already others elements like subscreen etc...
    The add is ok but the dockingcontainer is pushing on the right all the elements in the dynpro.
    How can i control where the docking starts ( his distance from the top) in other to keep it under the others elements?
    P.s: it's a docking_left.

    Hello Andre
    If you have already elements on the screen I would recommend to use a resizable CUSTOM_CONTROL element on the screen to which you link your docking container.
    Furthermore, if the docking container should dock from the bottom why don't you use DOCKING_BOTTOM and make the width of the docking container huge (to fill the entire screen to the right side)?
    Regards
      Uwe

  • Adobe Premiere Elements 10 with Photoshop Elements 9

    Is it possible to use both Adobe Premiere Elements 10 with Adobe Photoshop Elements 9?
    I don't want to upgrade Adobe Photoshop Elements 9 because has not enought new functions but need new Premiere with Organizer.
    Does Adobe Photoshop Elements 9 will work correctly with Organizer of Premiere 10?

    Hi,
    It is possible to use both of them, seperately though. If you wish to do use some interoperable feature, that wont be possible, since, as Steve said, they both use thier respective organizer.

  • How do I get a YouTube video to sync with other elements on my Stage?

    On my Stage, I have a YouTube video. I also have some elements that I'd like to have appear/disappear at certain points when the video is playing.
    For instance, while the video is playing, the Stage is empty (except for the video). Then, when the video gets to 5 seconds, a photograph appears below the video. Then at 12 seconds, another photo appears.
    This would need to be controlled by the time of the video, since the viewer may pause it, then restart it, and things would get out of sync otherwise.
    Any ideas?
    Thanks

    Hi BruceMCE,
    Thank you for your forum post.
    Please use this article and check if it helps Custom HTML5 Video Controls with jQuery and CSS
    Regards,
    Devendra

  • Elements working with Other Slide Show Products

    We've had some debates here about slide show products other than the function within Elements. Personally I opted for Proshow Gold, which I've been very pleased with.
    However, it lacks in one aspect and that's locating the files you want to put into a show. That's because I rely on the E3 Organiser to make sense of the thousands of folders and meaningless filenames I have. Proshow has an Explorer like interface which means you need to know where the image is actually stored on your hard drive.
    So, naturally I thought I'd see if I could get Proshow to work along side the E3 Organiser.....and it does!!!
    If you open both programs you can just select images in the Organiser Window an drag them into Proshow. So now I can create a Collection of the images I want in E3 and just drag the whole lot into Proshow.
    It also works with Photostory 3 so may there are others that will work as well.
    It did trip up once. An image got put into Proshow that wasn't one I'd selected but had the same name. It might have been part of a version set...I haven't figured that out yet.
    Colin

    Folks....
    Back playing again....:-)
    If you drop the images from the Elements Collection into the Proshow Light Box it does retain the order in which they appear in the Collection, albeit reversed, irrespective of date.
    If you drop them into the Slide Show image collection bar at the bottom of the Proshow window then the order sometimes gets a little scrambled.
    I'll disagree with Grant about ordering them in Organiser v Proshow. I find E3 Organiser easier to use. So I create a collection of images for the slideshow from the various folders I want, order them in the collection, select all and drag and drop.
    Colin

  • LayerCake elements use with PS Elements 11?

    I am trying to use the plug-in LayerCake elements, within PS Elements 11 but don't know how to use to activate the the plug in so that I can drag an image off the LayerCake sheet of images onto a photo image I have brought up in PS Elements 11.  I would be grateful for any advise... Thanks! 

    It's not a plugin, just a sheet of images, basically. You open the layercake image you want to use and also open your photo in PSE. It's going to be easier to do this if you first go to the editor preferences>general and turn on Allow Floating Documents, then window>float all in windows. Now open the two images and position them so you can see both of them. Make the layercake image the active one, then drag the layer you want from its layers panel into the main image window of your photo, or just copy/paste it. (They say in the compatibility section that the actions don't work with PSE.)

  • Display element only if other elements have been clicked or rolled over (Captivate 5)

    Hello
    I am trying to find a way to display a text caption IF the users have rolled-over all the elements in my slide. Is it possible?
    I had a look at the variables but it doesn't seem to be that.
    Cheers
    Helene

    Hello,
    The eventhandler widget is great if you do want to go with Rollover captions or Rollover images. Because those objects do not have the possibility to have an action attached to. If you use a rollover slidelet, it is possible to trigger an action on rollover and on click, that way you could increment a user variable.
    The idea shortly is this:
    Hide the text caption that will have to show up
    Either create a user variable (counter) that will be incremented on first click or rollover an element; to be able to check if the element has already been clicked or had a rollover create another user variable for each element set initially to 0, it will be changed to 1 when clicked/rollover
    For each action (will have to be an advanced action) attached to the rollover slidelet you'll have to check several things:
    has this already been visited (rollover or click) by checking the associated element variable; if not increment the user variable (counter) and set the associated element variable to 1
    check the counter (important that this check is done after the first one): if it has reached the maximum (all elements visited), show the text caption; if not just continue (or no action, depends on what is happening else on the slide).
    I have been blogging about similar use cases, not exactly this one.
    Lilybiri

  • Hide elements depending on other elements value

    how can I hide elements (for example af:commandButton) when I change the value of another element (for example af:selectOneChoice)

    <af:selectonechoice id="soc1" autoSubmit="true">
    <af:commandButton id="cm1" partialTriggers="soc1" visible="#{bean.value}">in the valuechangevent of the selectonechoice.. set the value to false. so that the visible property will become false.. and the autosubmit will trigger the commandbutton to hide

Maybe you are looking for