473,395 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Exporting nested xml and 31532 error

Hi Guys I solved my problem using the following and have posted this in the interest of sharing.

I use the attached to produce a 3 million line nested xml in about five minutes.

There are two key items,

1) a simple piece of VB,


Expand|Select|Wrap|Line Numbers
  1. Public Function Export_ListingData()
  2.  
  3.     Dim objOtherTbls As AdditionalData
  4.  
  5.     On Error GoTo ErrorHandle
  6.     Set objOtherTbls = Application.CreateAdditionalData
  7.     objOtherTbls.Add "ro_address"
  8.     objOtherTbls.Add "ro_buildingDetails"
  9.     objOtherTbls.Add "ro_businessDetails"
  10.     objOtherTbls.Add "ro_businessExtras"
  11.     objOtherTbls.Add "ro_businessExtrasAccounts"
  12.     objOtherTbls.Add "ro_businessExtrasAccom"
  13.     objOtherTbls.Add "ro_businessExtrasAccom2"
  14.  
  15.     Application.ExportXML ObjectType:=acExportTable, _
  16.                 DataSource:="ro_business", _
  17.                 DataTarget:="C:\Users\Steve\Documents\Conversions\ListData.xml", _
  18.                 AdditionalData:=objOtherTbls
  19. Exit_Here:
  20.         MsgBox "Export_ListingData completed"
  21.         Exit Function
  22. ErrorHandle:
  23.         MsgBox Err.Number & ": " & Err.Description
  24.         Resume Exit_Here
  25. End Function

2) Linking the tables in relationship manager using joins from primary to FOREIGN keys.

If there are no relationships the code will produce a sequential xml file, if there are
relationships between primary keys you will get a 31532 error and the data export will fail.

Kind Regards

Steve
Feb 28 '15 #1
0 1020

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: serge calderara | last post by:
Dear all, I have a function wich is able to log all error message into log file.Lets call it LogMesage in this example. In case the log file is not existing, I catch an IO exception inside...
0
by: Raed Sawalha | last post by:
I have the following code where Build the relation on DataSet Schema I got the error that Child Has Multiple Tables DataTable LoData = new DataTable("LearningOutcomesDT"); DataTable LoDocData...
0
by: Dmitry Tolpeko | last post by:
Hello, Could anybody please explain me why DB2 z/OS 8.1 fails on the simple procedure below: Error: DSNHSMS2 LINE 12 COL 6 NESTED COMPOUND STATEMENTS NOT ALLOWED It failes on DECLARE...
2
by: Kenneth | last post by:
How do I remove the limitation in Access that deny me from exporting 24000 rows and 17 columns (in a query) into Excel? Kenneth
3
by: HDI | last post by:
Hi, I've got following code: For each .... on error goto errhand errhand:
0
by: KA NMC | last post by:
I have One Datagrid with a dataset that calls two tables - the First table is the table the user will be editing - which edited on the grid or in a textbox - as the user edits the grid - that info is...
3
by: jdurancomas | last post by:
Dear all, I'm trying to declare the operator++ to a nested class. The nested class is not template but the container it is. The code used in teh sample program is included bellow: ...
2
by: accessvbanewbie | last post by:
I keep getting an error stating OBJECT VARIABLE OR WITH BLOCK VARIABLE NOT SET. This error just recently began to happen. I am exporting some records to excel into a preformatted report. The...
6
mshmyob
by: mshmyob | last post by:
I am using VS2008 and vb.net I have a nested tabcontrol. tabControl 1 and tabControl3 In tabControl3 I am trying to populate a text control with a value from a control placed on tabControl1....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.