How to allocate Object to task

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
IQHGWC
Posts: 9
Joined: Thu Jun 01, 2023 10:40 pm

How to allocate Object to task

Post by IQHGWC »

I created a new reusable part (i.e. BB11) which is basically a copy of our vendor's source (AB11).
In BB11, I have modified the required changes.
When I try to check-in to Master (iSeries), I am getting an error that the object is not allocated to Task Identifier TSYS. I thought a Quick Export option will resolve the issue, but still failed.

How do I allocate my object to this task?

I tried the check-out option but encountered error below. I also tried to delete my object (and hopefully recreate it), but I'm getting error as well.
Capture_01.PNG
Capture_01.PNG (137.61 KiB) Viewed 89889 times
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

How to allocate Object to task

Post by René Houba »

Hi IQHGWC,

I think your object is already connected on IBMi to another task.

First check in Windows the existing task for this component:
Object to Task (1).PNG
Object to Task (1).PNG (19.08 KiB) Viewed 89789 times
Then go to your IBMi LANSA Housekeeping menu and select Task Option:
Object to Task (2).PNG
Object to Task (2).PNG (26.74 KiB) Viewed 89789 times
Use option 5 on the Task the component is now allocated on:
Object to Task (3).PNG
Object to Task (3).PNG (1.06 KiB) Viewed 89789 times
..... Can only add 3 pictures inline per post, to see next post .......
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

Re: How to allocate Object to task

Post by René Houba »

Search for the component in the right top of the screen and use option 9 (Change Task):
Object to Task (4).PNG
Object to Task (4).PNG (15.05 KiB) Viewed 89788 times
Finally connect the component to the new task:
Object to Task (5).PNG
Object to Task (5).PNG (14.61 KiB) Viewed 89788 times

Kind regards,
René
IQHGWC
Posts: 9
Joined: Thu Jun 01, 2023 10:40 pm

Re: How to allocate Object to task

Post by IQHGWC »

Hi Rene,
Thanks for replying.

I checked on windows. Value of Task Column for my object BB11 is blanks/empty:
Capture_02.PNG
Capture_02.PNG (162.05 KiB) Viewed 89767 times
I don't see option for Check-In too.
Capture_04.PNG
Capture_04.PNG (147.01 KiB) Viewed 89767 times
Also, when I checked in IBMi, I don't see any objects in the Task:
Capture_02.PNG
Capture_02.PNG (162.05 KiB) Viewed 89767 times
Attachments
Capture_03.PNG
Capture_03.PNG (101.1 KiB) Viewed 89767 times
IQHGWC
Posts: 9
Joined: Thu Jun 01, 2023 10:40 pm

Re: How to allocate Object to task

Post by IQHGWC »

I also get this error when I try to check-out:
Capture_05.PNG
Capture_05.PNG (51.9 KiB) Viewed 89765 times
bark
Posts: 44
Joined: Thu Jan 05, 2017 9:56 am

Re: How to allocate Object to task

Post by bark »

If I understand this correctly...you are logged into the IDE with task TSYS and you say you created a new RP BB11 in the IDE (by copying an existing RP AB11 I assume). And then you attempt to check this in for the first time and you get the error that the object is not allocated to Task Identifier TSYS.
Its funny that you would try to checkout then if you had just created it and it failed to checkin.
So, it looks as if the BB11 object already exist on the IBM but under a different task. Perhaps a task that your user profile isn't authorized to?
Have you checked the status of the object on the IBM in 'work with VL objects' and F11 to show taskID? And (lets assume its allocated to a different task) check in 'Work with tasks' to see if your user is an authorized user.

By the way, after the change task attempt as suggested by Rene, the last error is different to your initial error, and looks more serious (system Error: CHECK_OUT_END without DATA).
You should look for a joblog for that attempt and or report that to LANSA support.

Cheers
bark
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

Re: How to allocate Object to task

Post by René Houba »

Hi IQHGWC,

It is also weird that the new component that you created has an empty task.

If you start LANSA with Task Tracking and you create a new component (in your situation a copy of an existing Reusable Part), this component then should be connected to the active task.

Can you try this:
Open the RUP that has no task connected and do a dummy save. It should be connected to the active task then.
Can you then Checkin again?

Kind regards,
René
IQHGWC
Posts: 9
Joined: Thu Jun 01, 2023 10:40 pm

Re: How to allocate Object to task

Post by IQHGWC »

Here's what I did:
For object BB11:
1. Create BB11, copy code from AB11.
2. Save, Build, Compile
3. Check-in. Error encountered.
Error Message: Object BB11 type FIELD/COMPONENT could not be processed. Task ID TSYS not allocated to object BB11. Task Tracking has restricted work that can be performed on BB11.
4. I tried to Quick Export. I thought it will fix the issue. After this, it looks like everything went downhill. Error on check-out, no option for check-in.

Work-around:
1. Create BBX11, copy code from AB11.
2. Check-in
3. Save, Build, Compile, Check-in
4. Noticed TSYS is already assigned to object.

Does it matter on the sequence between steps #2 and #3?
Is this how LANSA works? Please bear me with me. Just started on LANSA.

Now, I'm getting the error running the application. I'm using my new object BBX11, with exact code from AB11. I am expecting it to work like AB11.
Is there another step I need to do after the Check-In?
06.PNG
06.PNG (142.78 KiB) Viewed 89600 times
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: How to allocate Object to task

Post by Dino »

If all else fails, try to login in the ide with partition security officer and try the check in again
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: How to allocate Object to task

Post by atostaine »

I find the hiding of component names funny.

Art
Art Tostaine
Post Reply