NOTE: I'm sorry for neglecting this message for so long. A lot has been going on...

Prayer Request: After sixteen and a half years of marriage, I was legally divorced on February 12th of 2020 against my will. I feel the State of Arkansas made an incorrect decision that day. In addition, I feel the trial was not conducted properly; however, I chose to not appeal.

Regardless of what the State of Arkansas says, I still believe in my heart that I am married to Jennifer Ann. Please pray in Jesus' name for her return.

I was training for May 2020 Ironman in Tulsa, OK but it was cancelled due to COVID. I am now training for 2020 IM Flordia in November. I've been having some weird back issues that seem to be causing side effects. I may get better though. I can do the IM swim in a local lake, but I'm not sure if I'm up to the Ocean...

I do have a bit of a problem with my temper and I have other troubles; however, I still believe that Jesus Christ is my Lord and Savior and I plea to him for his mercy regardless of what others might think of me.

Even though I presently live in Northwest Arkansas, I watch Bishop T.D. Jakes' Potter's House sermons on YouTube each Sunday Morning. That dude can seriously preach!!! Also, the musicians at Potters House are awesome. Check it out!!!

I hope to return to First Baptist Fayetteville some day but I'm not sure if that is in the near or distant future...
This site is designed to work with *modern* HTML5 browsers like Microsoft Edge
IE10 or later also works pretty good. As of April 23, 2016 Firefox and Chrome still don't:
  1. seem to have official support for GridBased Layout but it seems to be comming soon
  2. seem to support JPEG-XR even though I believe it is a formal ISO Standard under an open format: ISO/IEC 29199-2:2012
Other browsers may also have variying support, but I *personally* consider Microsoft Edge, Chrome and FireFox the major browser vendors of present time.

PeopleCode Not Authorized After Transfer

PeopleCode Not Authorized After Transfer

I was recently working on a PeopleSoft project where I had to call the Transfer Function [1] from PeopleCode. Since I had little experience with the Transfer Function, I mistakingly entered the information in a style similar to this:

Transfer(True, MenuName."MyMenuName", BarName."MyBarName", ItemName."MyComponentName", Page."MyPageName", "U"); 

If you are a veteran PeopleCode Programmer, you can probably immediately see the error in my logic. I specified the name of my component instead of the name of the item within the Menu Bar; unfortunately, PeopleCode did *not* give me a compile time warning or error when I did this.

Instead, when I ran my program and initiated the Transfer call, I got this ugly and not very helpful error message:

“You are not authorized to access this component. (40,20)

You have not been granted security authorization for the component you are attempting to access. You may have access to the designated component and page, but not in the specified action mode (such as Correction or Update/Display). Contact your system administrator.”

The error left me scratching my head for a bit of time. I was especially confused because I had *another* Transfer call of mine that *was* working. I began to wonder. Did security get setup correctly for the *component* I was trying to transfer to? Did I use the correct Action Mode (A, U, L, C, E) [1] in the transfer call?

Clueless, I began to ask my teammates for help while I continued to stew in my confusion. Per the error message, I tried changing the Action Mode to "L" - update/display all [1] even though the original "U - update" made more sense. Unfortunately, the change did not help me. I still got the cryptic error.

At some point, it became apparent to my team what I was doing wrong and they pointed out to me that I was entering the wrong parameters for my transfer call. The *most* significant error I had made was the one mentioned earlier where I had used the *component* name instead of the *Bar Item* name. After I corrected the parameters as my team had specified, the error gladly went away. 😎

An underlying lesson in this might be that if you happen to be using the PeopleCode Transfer function and get a "You are not authorized..." style error like the one above, you might want to check your BarName and ItemName parameters. An experienced PeopleCode Programmer might get that information correct the first time, but a new PeopleCode Programmer might goof up and be left with the rather unhelpful message mentioned above.


[1] - Unknown.
PeopleSoft Wiki. [Online] Unknown.
[Cited: January 1, 2015.]

©2015 - Shawn Eary
This post is copyright (where allowable) by Shawn Eary and is released under the Free Christian Media Licence (FCML). Content from authors other than Shawn Eary maintain the copyright and license rules that were imposed by the original authors.