baanware
24th October 2002, 16:43
Hi,

I am working on a session which makes use of a DDC Function Server. In this Function Server (which I generated myself using tuddc9201m000, Function Server Generator), there is a set of sub-processes activated as follows:
process.xxx = activate("session_xxx")
switch.to.process(process.xxx, SWITCH.WITHOUT.INTERACTION)

process.xxx correctly results in the process being created, but every time the process is "switched.to.process" or "send.to.process", a message results:
"object 0 in process xxx not found"

Regardless of the message the logic in the sub-process'es seems to be executed correctly ???

We're running BaanIV c4, SP9.
I suspected the Standard Program to be the reason, and have therefore patched this to the latest level - still without positive results.

I have now thrown my suspicion towards the fact that the Function Server script was generated from a 4GL session with Forms and "generated" into a 3GL session without these forms. Can this be the reason?
...as far as I have understood the "switch.to.*" commands are made to support the graphical interface, which is not activated using 3GL.

Can anybody tell me how to break this problem?

Thanks in advance!

Best regards
Soeren Lildal

Ruskin
10th November 2002, 21:39
Soeren,

We had a similar problem, with errors of 'object x in process y not found'. But this was due to creating a more advanced session to fix offline DDC errors (as Baan is very basic in this area). It appeared, that the process errors were caused, because in the script, we had not added the BMS session. We found that we had to change the 'ituddc0010.bms.sess' variable (in the function 'ituddc0010.decode.bucket') to fix the errors. Not sure if this will solve your issue (although, you might want to try setting the 'ituddc0010.bms.sess' variable before calling your switch.to.process function. Then setting it back to the original value after calling the switch.to.process function).

Can't gaurantee that this will work, as your issue sounds a little to different to the problem we had, but may be of some help.

regards,
Ruskin..

baanware
1st December 2002, 12:38
Thanks Ruskin,

Unfortunately I don't have access to the latest ituddc functions, and meanwhile I decided to switch to the AFS technology, which (in this case) works beautifully.

Anyway I am sure that your tip may help me - and others - in similar future situations (as many sessions still don't work with AFS...).

regards
Soeren