1. Amit De Picciotto
  2. PowerBuilder
  3. Monday, 27 June 2022 14:22 PM UTC

Dear all,

As the project is move to use PB 2021 and deploy with the pbautobuild210.exe, including the step of the PB ORCA import source code (merging property on the JSON)

The project work with TFS as source control

On test application, all work well, the PBL, after execute the BAT (that point to the JSON), the latest change is found and included on the EXE, while on the production application, The latest change not appear on the PB, neither on the EXE.

 

On the research it been found that on the test application deploy log, between the start and finish merging step, there is compiling... while the compiling...   not appear on the production application

The good test application:

09:35:01 [Normal] Start merging the source code.
09:35:01 [Normal] Lib List for SccTarget
09:35:01 [Normal] s:\SP Instrumentation\SP Instrumentation Tools\Projects\ScrumTeams\Hoopoes\SpikePB\\\spikeautobuild.pbl
09:35:01 [Normal] PBORCA_SccRefreshTarget. Full Rebuild
09:35:01 [Normal] Importing spikeautobuild.sra . . .
09:35:01 [Normal] Importing spikeautobuild.srj . . .
09:35:01 [Normal] Importing u_nvo_spike.sru . . .
09:35:01 [Normal] Compiling types for spikeautobuild.sra . . .
09:35:01 [Normal] Compiling types for spikeautobuild.srj . . .
09:35:01 [Normal] Compiling types for u_nvo_spike.sru . . .
09:35:01 [Normal] Calling cm_rebuild_application(CM_REBUILD_FULL).
09:35:01 [Normal] End merging the source code.

The 'bad' production application:

16:58:42 [Normal] Start merging the source code.
16:58:43 [Normal] Lib List for SccTarget
16:58:43 [Normal] xxx.pbl
16:58:43 [Normal] xxx.pbl
16:58:43 [Normal] PBORCA_SccRefreshTarget. Full Rebuild
16:58:43 [Normal] Importing all objects, including the object that been changed
16:58:47 [Normal] Calling cm_rebuild_application(CM_REBUILD_FULL).
16:58:54 [Normal] End merging the source code.

 

The Compiling types could not be found on the production side, what is trigger it?

Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 August 2022 11:25 AM UTC
  2. PowerBuilder
  3. # 1

Hi Amit,

I've modified the pbg file you previously provided and it is working fine now.

Please download the attached file and then run the bat file in it and see if it works for you. 

 

Regards,

Ken

Attachments (1)
Comment
There are no comments made yet.
Amit De Picciotto Accepted Answer Pending Moderation
  1. Tuesday, 9 August 2022 14:29 PM UTC
  2. PowerBuilder
  3. # 2

Hi Ken,

Thanks for the quick answer :)

The PBG file been updated, according to the suggestion, but, still, I'm afraid it does not work.

Basically, what I'm tiring to do is:

Check in changes (just changing the content of message box) from one machine, preform 'Get latest version' action, that works fine, than, execute the BAT that call the Json

 

My expected result is to have the content of the check in the EXE, as well, when I open the PB IDE, to see that the checked in object is updated (import process pass successfully).

 

BTW, when i use, on the merging section of the Json, when I use RefreshPbl = true -> It corrupts the project

I'm attaching again the content

 

Many thanks for the help!

Attachments (1)
Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 August 2022 05:20 AM UTC
  2. PowerBuilder
  3. # 3

Hi Amit,

The import failed due to the incorrect path in the pbg file in your case. I suggest you modify spimp.pbg referring to the following and try again:
After modification:
Save Format v3.0(19990112)
@begin Libraries
"spimp.pbl" "";
@end;
@begin Objects
"d_ext.srd" "spimp.pbl";
"spimp.sra" "spimp.pbl";
"spimp.srj" "spimp.pbl";
"u_nvo_sp.sru" "spimp.pbl";
@end;

Before modification:
Save Format v3.0(19990112)
@begin Libraries
"SPImp\\spimp.pbl" "";
@end;
@begin Objects
"SPImp\\d_ext.srd" "SPImp\\spimp.pbl";
"SPImp\\spimp.sra" "SPImp\\spimp.pbl";
"SPImp\\spimp.srj" "SPImp\\spimp.pbl";
"SPImp\\u_nvo_sp.sru" "SPImp\\spimp.pbl";
@end;

Regards,
Ken

Comment
There are no comments made yet.
Amit De Picciotto Accepted Answer Pending Moderation
  1. Monday, 8 August 2022 13:14 PM UTC
  2. PowerBuilder
  3. # 4

Hi Ken, all

It seems that at last, I found the problem:

When creating PB application on PB 12.6 and upgrade it to 2021, the Import process does not work.

Should I open Bug for Appeon?

How can i do that?

For your convenience, I uploaded the sample application that been created on PB 12.6 and upgraded to PB 2021

 

Many thanks for the help!

 

Attachments (1)
Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Friday, 22 July 2022 06:49 AM UTC
  2. PowerBuilder
  3. # 5

Hi Amit,

1. Currently, I’m not sure why you would run into this problem. I suggest you try to create a small case to reproduce the problem and then send us the small case for analysis.

2. You can try to use the ImportOnly of ORCA to import the object files to pbl.  Use ORCA script into a bat file and call this bat file in PBAutobuild.

Regards

Ken

Comment
There are no comments made yet.
Amit De Picciotto Accepted Answer Pending Moderation
  1. Thursday, 21 July 2022 12:18 PM UTC
  2. PowerBuilder
  3. # 6

Hi,

Sorry for the delay,

Well, after failing on the merge stage, with the pbautobuild210.exe and the JSON, basically, the only way to make it work was to re create all the application structure, mean to re-create the application somewhere else, create the folder structure, create application and PBLs, than, copy (manually) the objects from the original application, where it been failed to merge, to the new application.

Using the Optimize PBL option did not helped

After copy the all objects it started to work, unfortunately, I cannot share the source, at this stage.

It did not worked with just remove the PBLs

Does it mean that the problem is on the PBL, application object (sra) or the project object (srj)

Those PBLs are dragged for a long years from version to version, in addition, when try to use the refresh PBL = TRUE on the original application, it corrupts the code and there are missing code, even use refreshPBL = false not works as well (but at least not corrupts the code) .

 

It is impossible to re-create like this all the PB applications, 

1) Any idea why the merge stage is failing?

2) Can I use the Orca script to do the copy (import) process? and re-create the all applications?

I'm attaching the JSON that been failed, as well the deploy.log that is missing the 

 

It is clear that after the PBORCA_SccRefreshTarget command there is no import & compiling, as a result, the objects on the PB is not updated. (first using BAT for the get latest version from TFS).

 

Any advice will help

Thanks!

Attachments (1)
Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 June 2022 05:51 AM UTC
  2. PowerBuilder
  3. # 7

Hi Amit,

I didn’t reproduce this issue. Normally, it will execute compiling type after importing object.

I suggest you:
1. Remove all PBLs then try again and verify if the issue is gone.
2. Check the code where you put the source code object and see if the source file of the latest changed object is the latest.
3. Send your build json file and the build log file to us.
4. If the issue persists, please submit a bug to our support system (https://www.appeon.com/standardsupport/newbug) and upload an example case there.

Regards,
Ken

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.