Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Open World, Portal & Decision Manager

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 11th February 2008, 13:12
BaaNovva's Avatar
BaaNovva BaaNovva is offline
Member
 
Join Date: Mar 2003
Location: Bangalore
Posts: 48
BaaNovva is on a distinguished road
Baan: BaanIV, BaanV - DB: Oracle,Sybase - OS: Win2K
Problem with multiple XML documents....
Baan: iBaanERP 5.0c

XML documents are created from BaanERP audit files and transmitted to third party database via OW. When each XML document is created, a handler id(to address the document) is stored to a local variable.

After creating the first XML document, it is transmitted and the next XML document is created by just storing the new handler id to the same variable and continuing with the transmission. When many large XML documents are created and sent, at some point of time, the whole process gets terminated, sometimes with error "connection lost with Baan server" along with a large core dump.

Is this to do with not closing, releasing or clearing the sent XML documents ? When the local variable is stored with new handler, what happens to the old XML document ? If this is the problem, how to close, clear or release it from memory ?

Hope to hear from any one asap.

I have attached rtf of the example below for better reading.
The same is pasted below without indentation.

In live run, each XML document hold more than 90,000 records.
The example of the problem is shown in much smaller scale:

Quote:
------------------------------------------------------------
syncmgr = 0
ob_data_node = 0
for xmldoc = 1 to 300
audit.data.id = get.next record(audit.data.id)
if audit.data.id = 0 then
break
else
if xmldoc = 100 then
ob_data_node = boi.AdviceData.create()

boi.AdviceData.setCompany(ob_data_node, company)
boi.AdviceData.setOrderOrigin(ob_data_node, origin)
boi.AdviceData.setOrderNumber(ob_data_node, order)

syncmgr = boi.AdviceSyncManager.create()
err = Manager.initialize(syncmgr, "1")
boi.AdviceSyncManager.sendToDB(syncmgr, ob_data_node)
endif

if xmldoc = 200 then
ob_data_node = boi.AdviceData.create()

note: in above line, xmldoc for 100 is over written by 200.
It is not known whether xmldoc for 100 should be closed,
cleared or released before creating XML document for 200.
It is also not clear whether this is causing memory problems
and abrupt termination of process.


boi.AdviceData.setCompany(ob_data_node,comp)
boi.AdviceData.setOrderOrigin(ob_data_node,oorg)
boi.AdviceData.setOrderNumber(ob_data_node,orno)

syncmgr = boi.AdviceSyncManager.create()
err = Manager.initialize(syncmgr, "1")
boi.AdviceSyncManager.sendToDB(syncmgr, ob_data_node)
endif

if xmldoc = 300 then
ob_data_node = boi.AdviceData.create()

note: in above line, xmldoc for 200 is over written by 300.
It is not known whether xmldoc for 200 should be closed,
cleared or released before creating XML document for 300.
It is also not clear whether this is causing memory problems
and abrupt termination of process.


boi.AdviceData.setCompany(ob_data_node,comp)
boi.AdviceData.setOrderOrigin(ob_data_node,oorg)
boi.AdviceData.setOrderNumber(ob_data_node,orno)

syncmgr = boi.AdviceSyncManager.create()
err = Manager.initialize(syncmgr, "1")
boi.AdviceSyncManager.sendToDB(syncmgr, ob_data_node)
endif
endif
endfor
------------------------------------------------------------
Attached Files
File Type: rtf example_multiple_xml.rtf (2.8 KB, 31 views)
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with XML Output scough Tools Development 0 3rd February 2008 03:12
UltraEdit32 and Baan4c4 - problem with multiple scripts BaanInOhio Tools Development 2 24th January 2008 21:32
Problem with multiple bshells - HELP mumbai Manufacturing & Supply Chain 2 17th February 2004 19:28
problem in inserting multiple lines in table joshua Tools Development 1 27th November 2003 15:17
XML Documents interchange Warans Miscellaneous 2 21st August 2003 20:53


All times are GMT +2. The time now is 17:06.


©2001-2017 - Baanboard.com - Baanforums.com