Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 10th May 2017, 09:59
sang1285's Avatar
sang1285 sang1285 is offline
Member
 
Join Date: Oct 2013
Location: Dubai
Posts: 34
sang1285 is on a distinguished road
Baan: BAAN 5 - DB: Oracle - OS: Unix
Error with DAL Scripts
Baan: ERP LN 6.1 FP11 (Infor ERP 10.5)
C/S: None/Unknown

I am writing to write a logic IN LN using DAL SCRipts in "After save" of Item data (tcibd001) to update data in one of the item entities (say, Item Purchase data)

function extern long after.save.object(long i.mode)
{
if (i.mode = DAL_UPDATE) then
select tdipu001.*
from tdipu001 for update
where tdipu001._index1 = { :tcibd001.item }
selectdo
ret= dal.change.object("tdipu001")
dal.set.field("tdipu001.prip",600)
if dal.save.object("tdipu001") <> 0 then
return(dalhookerror)
endif
selectempty
endselect
endif
}

During execution, if I update anything on the item header (say item description), the data on item purchase data is updated properly.

However, if I open the item Purchase data entity from tcibd0501, change something there and click on Ok , it gives the below error:


Process 240 - Fatal Error : Function 'after.save.object': recursion not possible; refcount=2.
bshellunknown
Process 240 - Fatal Error : Can not continue in tdipu0101m000 in DLL: otdipu001 (after.save.object)[last function:exec_function]bshellunknown
Process 240 - Error : tdipu0101m000: A not terminated transaction is aborted (after.save.object() in object otdipu001)


Can someone please help me out with this issue.

Thanks in advance.
__________________
Thanks & Regards,
Sangeeta
Reply With Quote
Sponsored Links
  #2  
Old 10th May 2017, 10:24
JaapJD's Avatar
JaapJD JaapJD is offline
Guru
 
Join Date: Sep 2002
Location: Netherlands
Posts: 728
JaapJD will become famous soon enoughJaapJD will become famous soon enough
Baan: BaanIV, BaanERP, ERP LN 6.1 - DB: Oracle, SQL Server - OS: Unix, Windows
The DAL of tdipu001 tries to update the last modification date in tcibd001. That causes the recursion. A workaround would be to use db.update() to update tdipu001.
Reply With Quote
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
DAL for whinh310 not executed VishalMistry Tools Development 2 4th September 2015 11:18
Inactivate a DAL (?) zardoz Tools Development 3 21st October 2014 10:13
DAL big problem - doesn't insert in tirou102 simona Tools Development 4 19th January 2012 13:50
When DAL 1 or DAL 2 in Infor LN 6.1 gget79 Tools Development 5 27th May 2009 10:23
DAL Activation program scripts pcolombo Tools Development 5 14th February 2005 15:57


All times are GMT +2. The time now is 08:24.


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