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

User login

Frontpage Sponsor


Google search

For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
Installation Wizard into new VRC
Manual into existing VRC
Manual into new VRC
Total votes: 49

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 10th May 2017, 09:59
sang1285's Avatar
sang1285 sang1285 is offline
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 i.mode)
if (i.mode = DAL_UPDATE) then
select tdipu001.*
from tdipu001 for update
where tdipu001._index1 = { :tcibd001.item }
ret= dal.change.object("tdipu001")
if"tdipu001") <> 0 then

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 '': recursion not possible; refcount=2.
Process 240 - Fatal Error : Can not continue in tdipu0101m000 in DLL: otdipu001 ([last function:exec_function]bshellunknown
Process 240 - Error : tdipu0101m000: A not terminated transaction is aborted ( in object otdipu001)

Can someone please help me out with this issue.

Thanks in advance.
Thanks & Regards,
Reply With Quote
Old 10th May 2017, 10:24
JaapJD's Avatar
JaapJD JaapJD is offline
Join Date: Sep 2002
Location: Netherlands
Posts: 788
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
Sponsored Links

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 11:19.

©2001-2018 - -