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 5th December 2016, 09:42
jclju1's Avatar
jclju1 jclju1 is offline
Guru
 
Join Date: Jan 2002
Posts: 554
jclju1 is on a distinguished road
Baan: Baan IV, Baan 5.0c, SSA ERP LN 6.1 - DB: bisam, Oracle, Informix, Sql Server - OS: Unix (all), Windows
session returns different result if it is started manually, as if running in the job
Baan: ERP LN 6.1 FP3
C/S: Both

Does anyone have any idea why one session returns different result if it is started manually, as if running in the job? Session run by the same user, so there are all settings equal. It seems that session when start in job ignores one if statement. If run in job, session returns items which should be eliminated in if statement. If we started session manualy, those items were skipped and this is correct.

Regards.
Reply With Quote
  #2  
Old 5th December 2016, 10:08
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,287
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
It could possibly a bug in the code. It sounds like one. What session is that?
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
Sponsored Links
  #3  
Old 5th December 2016, 10:10
jclju1's Avatar
jclju1 jclju1 is offline
Guru
 
Join Date: Jan 2002
Posts: 554
jclju1 is on a distinguished road
Baan: Baan IV, Baan 5.0c, SSA ERP LN 6.1 - DB: bisam, Oracle, Informix, Sql Server - OS: Unix (all), Windows
This is not standard session, so I am almost sure that it is bug but I can not find what is wrong.
Reply With Quote
  #4  
Old 5th December 2016, 12:37
sachinbaan's Avatar
sachinbaan sachinbaan is offline
Senior Member
 
Join Date: Oct 2013
Posts: 166
sachinbaan is on a distinguished road
Baan: ERP LN - DB: MS SQL - OS: Microsoft Server
If it is ignoring any condition then there may be code to ignore condition if it is executed manually, i faced this issue in one of my customization where job.process was used.

if not job.process then
/* Manual Execution
endif
__________________
Regards,
Sachin

TO DREAM THE PERSON U WOULD LIKE 2 B, IS 2 WASTE THE PERSON U R.
Reply With Quote
  #5  
Old 6th December 2016, 09:18
jclju1's Avatar
jclju1 jclju1 is offline
Guru
 
Join Date: Jan 2002
Posts: 554
jclju1 is on a distinguished road
Baan: Baan IV, Baan 5.0c, SSA ERP LN 6.1 - DB: bisam, Oracle, Informix, Sql Server - OS: Unix (all), Windows
There are not "if not job.process then" or "if job.process then" in source code.
Reply With Quote
  #6  
Old 6th December 2016, 10:44
pillai.ganesh's Avatar
pillai.ganesh pillai.ganesh is offline
Senior Member
 
Join Date: Apr 2011
Location: United Arab Emirates
Posts: 105
pillai.ganesh is on a distinguished road
Baan: ERP LN 6.1 - DB: Oracle, SQL, Informix - OS: Windows
Open session - Sessions by Job (ttaad5501m000). Select the session which your job is running and check the "Session Settings" that the Job uses while running the session. [Specific Option -> "Change Session Settings"]
This setting is independent of login and is specific to the JOB.

Hope this information helps in your investigation.
Reply With Quote
  #7  
Old 6th December 2016, 10:47
jclju1's Avatar
jclju1 jclju1 is offline
Guru
 
Join Date: Jan 2002
Posts: 554
jclju1 is on a distinguished road
Baan: Baan IV, Baan 5.0c, SSA ERP LN 6.1 - DB: bisam, Oracle, Informix, Sql Server - OS: Unix (all), Windows
I already checked Session Settings, it is the same as in case when we start session outside job.
Reply With Quote
  #8  
Old 6th December 2016, 13:34
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,905
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Can you post the section of code where you are having issues?
__________________
Mark

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
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
Convert a nominal to words Eddie Monster Tools Development 5 3rd December 2012 21:45
Handling Unit functionality baazigar Distribution, Transportation & Warehousing 4 19th February 2012 15:54
How to call AFS in sp24? PV Ramone AFS/DDC/OLE: Function servers 4 2nd September 2008 11:06
Controling a Job From a customized session Ilansu Tools Development 3 5th August 2002 15:58
Inquiry on running jobs using job daemon and rc.startjob julia0726 Tools Administration & Installation 1 12th February 2002 09:00


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


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