Excel fails to create XML file

Federico Coppola 1,181 Reputation points
2020-12-11T11:33:28.24+00:00

Hi all,
I have an excel file and I would create XML file.
I have a trouble with a date column.

If I add this colum with date (just date dd-mm-yyyy), Excel fails export to XML.

I have found this way as workaround:

  1. export in CSV format
  2. convert from CVS format to XML using an external tool

I would avoid this workaround if possible.

How can I solve it?
Thanks

Federico

Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,638 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Erin Ding-MSFT 4,456 Reputation points
    2020-12-14T05:16:53.007+00:00

    @Tim Cheng

    Could you please tell me the version of your Excel?
    File>Account>About Excel
    47854-1.png

    Could you successfully export to XML without adding the date column?

    How did you export to XML?
    Did you follow the steps in “Export XML data”?

    Do you have a XML Map?
    Please refer to “Export Excel to XML Tutorial”, it may be helpful for you.
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    Besides, is there any error message when failing to export to XML?
    If there is, please give the screenshot.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.