1. Richard Donagrandi
  2. PowerServer
  3. Wednesday, 19 April 2023 22:10 PM UTC

Hello,

We're on Powerbuilder 2021 build 1509

I'm trying to build a proof-of-concept for our legacy application as a PowerServer Native Cloud. Yesterday, I could build an deploy, then compile and run. However, I did get a build error issue for five objects e.g.:

Parsing: blwreceipts.pbl(d_receipt) Error: The DataWindow d_receipt has the same name as the one in blw110c.pbl

SO, I fixed this issue by removing one of the (duplicate) datawindows. I can build and deploy the PowerServer project just fine, and I no longer get the parse error, but when I try to compile and run, I get BUILD FAILED with (e.g.):

C:\Users\{USERNAME}\source\repos\PowerServer_blw110\AppModels\booklog\Models\blwreceipts\D_Receipt.cs(35,18): error CS0101: The namespace 'Booklog' already contains a definition for 'D_Receipt' [C:\Users\{USERNAME}\source\repos\PowerServer_blw110\AppModels\AppModels.csproj]
C:\Users\{USERNAME}\source\repos\PowerServer_blw110\AppModels\booklog\Models\blwreceipts\D_Receipt.cs(14,6): error CS0579: Duplicate 'DataWindow' attribute [C:\Users\{USERNAME}\source\repos\PowerServer_blw110\AppModels\AppModels.csproj]
C:\Users\{USERNAME}\source\repos\PowerServer_blw110\AppModels\booklog\Models\blwreceipts\D_Receipt.cs(16,6): error CS0579: Duplicate 'DwSelect' attribute [C:\Users\{USERNAME}\source\repos\PowerServer_blw110\AppModels\AppModels.csproj]

Help, I have no idea how to fix this!

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 19 April 2023 22:24 PM UTC
  2. PowerServer
  3. # 1

Hi Richard,

I would recommend deleting the C# Solution (the entire C:\Users\{USERNAME}\source\repos\PowerServer_blw110\ folder)  to get rid of any incomplete (failed) deployments and then deploy again.

 

Regards,
Francisco

Comment
There are no comments made yet.
Richard Donagrandi Accepted Answer Pending Moderation
  1. Wednesday, 19 April 2023 22:22 PM UTC
  2. PowerServer
  3. # 2

Ahh... Fixed.

When Build and Deploy is run, it doesn't clear out old .cs models... I deleted the old .cs scripts from 

C:\Users\{USERNAME}\source\repos\PowerServer_blw110\AppModels\booklog\Models\[PBL_NAME]

and now it will compile and run...

Seems like this should be an future enhancement.... Clear out old files when doing a full build.

 

Comment
  1. mike S
  2. Thursday, 20 April 2023 13:50 PM UTC
It does update the old cs modules but gets confused when you have more than 1. You could also have simply deleted the duplicate one in the c# models.





This is something to be aware of and to get comfortable with
  1. Helpful 1
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.