Submitting a UBE under another user profile

Hi Craig

Yes mate 'DV900'
I store the password on a file but for now I am hard coding my name and password to get it to launch the UBE

I get an error when I call that API
I'll add my code later ok?

I am using your code to launch a user in a copy of b4700270
The API code is the first line and that's where it errors in debug

Thanks

John
 
Hi Craig,

Here is my code.
Note it is a mix of standard B4700270 and your API code at the start to override the user.
Fails first line but compiles fine

Any help would be great as this also fails on the DV server

Thanks

John
 

Attachments

  • 185446-B570001.c.txt
    15.1 KB · Views: 42
John, are there any messages in your JDE.LOG? usually if one of those APIs fail, you'll get something there.
 
Hi Craig,

I've got this

*ERROR* CallObject@4b5011: COSE#1000 Request timeout: timeout after 90000ms host LOCALHOST:6115(6115) SocID:52081 PID:3780 BSFN:GTSEDIInteropLaunchSpecificUSER user:RR165972 Env:DV900
18 Nov 2013 13:36:05,978 [WARN ] RR165972 - [RUNTIME] *ERROR* CallObject@4b5011: execute of [GTSEDIInteropLaunchSpecificUSER] failed! Unable to obtain an environment on LOCALHOST:6115 user:RR165972 Env:DV900
18 Nov 2013 13:37:36,504 [SEVERE] RR165972 - [JAS] No Secondary Data Source found from OCM for user RR165972 environment DV900 object B570001 type BSFN
18 Nov 2013 13:37:36,536 [SEVERE] RR165972 - [RUNTIME] An exception has been caught by the Web client. Please contact your system administrator. See log for details. Exception id =Exception_2013-11-18 13:37:36.536_RR165972 There was a problem with the server while running the business function GTSEDIInteropLaunchSpecificUSER.\nPlease exit the app

I do pass in 'DV900' which I get by passing in SL Environment name from my test APPL form.
In debug all 3 values of Env User and Pwrd have a value

Lost....?
 
It also doesn't work on the server but do you think you need certain user security to run that API?
 
Hi Craig,

I just re run it from scratch, so this jas log is a clean run
Attached
smile.gif
 

Attachments

  • 185456-JASLOG.txt
    23.9 KB · Views: 18
Is that your JDE.LOG or jas logs? Can you try running the function by itself with Object Browser?
 
Can you post the JDE.LOG that is produced when you run the function from the object browser?
 
Wherever you have you logs files pointed to in the JDE.INI by default it would be on the root of C:\

in your jde.ini file look for
[DEBUG]
JobFile=c:\jde.log

the file name will have a process ID and date included with it like jde_9708_111813.log. Make sure you pick the one that matches the process of the Object Browser (9708 in my example)
 
I got this to work on 8.98.4.2 and 9.1.3.3 fat clients. Are you able to login to the JDE Environment as the user you are passing?
 
Hi Craig,

yes mate for now I am passing my own user ID and password in.

I have gone back to the start and will slowly add the code again.

I'll post the log in a bit then.
Thanks for your help so far
 
Hi Craig,

Been busy all day but managed to have another crack just now.

Attached are both the log and jas log
 

Attachments

  • 185472-jaslog.txt.txt
    4.6 KB · Views: 29
log

I also get this
19 Nov 2013 15:37:17,606 [WARN ] RR165972 - [RUNTIME] *ERROR* CallObject@124b4a9: execute of [GTSEDIInteropLaunchSpecificUSER] failed! Unable to obtain an environment on LOCALHOST:6115 user:RR165972 Env:DV900
 

Attachments

  • 185473-jdelog.txt.txt
    439 bytes · Views: 38
Is the parameter you used for password long enough to hold your password?
 
I tried to hard code it with _J("password") too
Same issue
frown.gif


Could the fact it can't initialise a new env on my FAT client have anything to do with my ini file settings?
 
Yes
smile.gif


19 Nov 2013 15:37:17,606 [WARN ] RR165972 - [RUNTIME] *ERROR* CallObject@124b4a9: execute of [GTSEDIInteropLaunchSpecificUSER] failed! Unable to obtain an environment on LOCALHOST:6115 user:RR165972 Env:DV900


Could this be the reason?
 
Back
Top