Bastien
12th June 2003, 13:31
Hello,
In a specific program script, I attempt to create a new record in table whinh201 by using DAL.NEW with the check property flag set to yes. Fields of whinh201 were previously filled directly with their new values.
whinh201.oorg = xxx
whinh201.orno = xxx
...
dal.new("whinh201",twhinh201,dal.error,true,db.retry)
By using this syntax, I often get an error 205. The weirdest thing is that it doesn't happen all the time ...
If now, I use the dal.set.property.with.check() function to fill the whinh201 fields and then insert the record with DAL.NEW without property check, and it always works:
dal.set.property.with.check("whinh201", twhinh201, "whinh201.oorg", xxx)
dal.set.property.with.check("whinh201", twhinh201, "whinh201.orno", xxx)
...
dal.new("whinh201",twhinh201,dal.error,false,db.retry)
I really don't understand why!!
My colleagues have had similar problem, but this time, the error 205 occurs in a standard DAL, without any customization ... I assume this problem could come from Baan Tools or our system, but I have absolutely no clue ...
Does anybody of you have already encounter this issue?
Thank you in advance for your help.
Best regards.
In a specific program script, I attempt to create a new record in table whinh201 by using DAL.NEW with the check property flag set to yes. Fields of whinh201 were previously filled directly with their new values.
whinh201.oorg = xxx
whinh201.orno = xxx
...
dal.new("whinh201",twhinh201,dal.error,true,db.retry)
By using this syntax, I often get an error 205. The weirdest thing is that it doesn't happen all the time ...
If now, I use the dal.set.property.with.check() function to fill the whinh201 fields and then insert the record with DAL.NEW without property check, and it always works:
dal.set.property.with.check("whinh201", twhinh201, "whinh201.oorg", xxx)
dal.set.property.with.check("whinh201", twhinh201, "whinh201.orno", xxx)
...
dal.new("whinh201",twhinh201,dal.error,false,db.retry)
I really don't understand why!!
My colleagues have had similar problem, but this time, the error 205 occurs in a standard DAL, without any customization ... I assume this problem could come from Baan Tools or our system, but I have absolutely no clue ...
Does anybody of you have already encounter this issue?
Thank you in advance for your help.
Best regards.