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

User login

Frontpage Sponsor


How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
200 - 500 GB
500 - 800 GB
800 - 1200 GB
1200 - 1500 GB
1500 - 2000 GB
> 2000 GB
Total votes: 66

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 9th May 2019, 20:15
SandraDiehl's Avatar
SandraDiehl SandraDiehl is offline
Join Date: Dec 2006
Location: Camden, South Carolina
Posts: 35
SandraDiehl is on a distinguished road
Baan: IV C - DB: Oracle - OS: Linux
Exchange using global variables
Baan: Baan IVc4
C/S: Both

System Details First:
running on tools service pack 12
Linux environment: RedHat Enterprise Linux 7
Porting Set: 6.1c.19

Mystery issues arise with some exchange schemas that seems to have worked but not sure when it broke. I'm familiar with exchange but am not the one who created them. In this schema it is updating the contracts tdssc001 and tdssc065 a global variable was defined in the first condition that is used to determine if the exchange schema should stop.

All Execute conditions on the import relations has the condition EXEC which all it has:
if fatal_err2 = 1 then

Other conditions that are set in the Add have logic to set fatal_err2 in the first condition fatal_err and fatal_err2 are introduced as extern long and initialized with 0. They are set when reading the file and validating the input which should stop the schema. While in debug I watched it set it but when it came to the EXEC condition it saw fatal_err2 set to 0.

I tried to "compile" the conditions and I get error that they are not defined. I even tried to recreate the schema just to see if there was some strange character that I was not noticing and still same thing fatal_err although should be global it is not getting recognized.

Is this a flaw with linux/porting set or am I missing something completely...after all these exchange schemes were created back in 2000 and have been working with the last change happening 2018 prior to moving to Linux.

No way are we going to be able to update the porting set and service packs code is too heavily customized and not enough developers and functional group to do the changes and testing. Is there a way I can "trick" by pass to have a variable to determine if the schema encounters and error and stops?
Reply With Quote
Sponsored Links
Old 10th May 2019, 14:02
mark_h's Avatar
mark_h mark_h is offline
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,250
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
I am not sure this is related or not - but last year on 4c4 we upgraded to new licensing. Once we did that things like ${BSE} stopped working in exchange schemes - so we basically stopped using those type variables (we were converting to oracle). For example the path to exchange objects went from like ${BSE}/data/${SITE}/obj to /apps/baan/.../obj. I am thinking there is flaw in there - we should have logged a case with infor, but did not since we only had a few exchange schemes to run for the conversion.

Have you tried declaring it in each spot used?

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
Old 10th May 2019, 17:01
SandraDiehl's Avatar
SandraDiehl SandraDiehl is offline
Join Date: Dec 2006
Location: Camden, South Carolina
Posts: 35
SandraDiehl is on a distinguished road
Baan: IV C - DB: Oracle - OS: Linux
Tried declaring

Thanks Mark I had thought if I declare the variable in each script then it treats it as a "new" version of that variable...didn't realize it would retain the value. I put the scheme in debug and it seems to have kept the value.

Learn something new after programming BaaN for almost 20 years WOW.
Reply With Quote
Old 12th May 2019, 07:53
Ajesh's Avatar
Ajesh Ajesh is offline
Join Date: Feb 2009
Posts: 616
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
As i understand there are two conditions, in the first condition, the parameters fatal_err and fatal_err2 are initialized and in the second condition,this particular code is written
if fatal_err2 = 1 then
Are these two variables fatal_err and fatal_err2 defined as Parameters in the condition? There is a parameter session, right? in Maintain Condiitions Specific
Reply With Quote
Old 13th May 2019, 13:55
SandraDiehl's Avatar
SandraDiehl SandraDiehl is offline
Join Date: Dec 2006
Location: Camden, South Carolina
Posts: 35
SandraDiehl is on a distinguished road
Baan: IV C - DB: Oracle - OS: Linux
Yes there is a parameter and is used for the data coming from the csv file to pass along but exchange you should be able to declare external variables that is known in all conditions without using the parameters...My understanding is the parameters are constant and do not change where as my external variables can change.
These exchange scheme had been written back in 2000 and have NOT had any issues with use of the external variables being declared in the first condition. This is first time having issues due to a change in the server environment and having to make a change to the exchange scheme. I have other schemes that are working as is but if I were to "regenerate" it will have issues.
I have tried what Mark suggested and through debug I see it is retaining the value in each condition with it being declared as external in each condition that it is used.

I have a new issue now with my lack of understanding on how exchange processes. For example I have two lines in my csv file:

861,5507,ZZ,18,,,76250THR A120M6 NH830M,,3000521AA,39.9506,,,,4091008,WFG,R785168,30,,,E785169,5,E5304,30
861,35507,ZZ,18,TEST,,76200T3LXA700M6 NH830M,,88943618-86,123.744200,,,,004091008,OFG,EBOX,30,,,,,,

Watching in debug it's like it processes one column at a time for each line....meaning in this situation I have an existing contract 861 and I need to add a new position and packaging...I see it create the new positions two of them and then it goes to do the packaging...not sure if it's due how the exchange has been created but I would have thought it process one row at a time completely before moving onto the next row...due to this issue I have lost pointer on the new contract position to determine which position is to get specific packaging.
Reply With Quote

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
CODE: Validate Import Exchange Scheme Data gfasbender Code & Utilities 10 17th November 2009 23:19
How to use two DLL with identical global variables? Angelika_N Tools Development 8 5th November 2008 10:58
Global Baan Project Manager / Solutions Analyst s.ashenden Jobs and Resumes 0 9th May 2006 10:33
xml question steveauckly Tools Development 4 27th July 2004 10:41
CODE: Launch exchange scheme from custom session. Francesco Code & Utilities 0 13th January 2003 23:18

All times are GMT +2. The time now is 02:10.

©2001-2018 - -