1. Pierre Couvreur
  2. PowerServer
  3. Tuesday, 9 November 2021 15:40 PM UTC

Hello,

I'm trying to convert a PB2019 C/S application to PowerServer 2021. That application was created years ago in PB7. During deployment, while splitting a PBD file, I get the message :

"Failed to split the PBD file because the PBR file contains a resource file in the full path "d:\eforpb\martelage.pbl". Please use relative paths in the application directory for resource files."

The trick is that there is no PBR file for that PBD/PBL. However, when I open the PBL with a text editor, I can see a reference to the path : J  0 d : \ e f o r p b \ m a r t e l a g e . p b l   ENT*0 6 0 0

It must be something very old left in that PBL... I would like to get rid of that reference but I don't know how. An optimize doesn't fix it.

Any idea (preferably other than exporting every object to a new PBL) ?

Thank you !

Pierre

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 10 November 2021 15:33 PM UTC
  2. PowerServer
  3. # 1

In PB6 & PB7 the source control status was stored in the library. I am pretty sure this is what you are seeing.

Create a new empty library and copy all the objects using the library painter. Then exit PB and rename/move the libraries so the new one is now the active one.

What are you using for source control? Perhaps a complete bootstrap rebuild from source files is needed to make sure all the libraries are clean.

 

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 November 2021 19:04 PM UTC
  2. PowerServer
  3. # 2

Hi Pierre;

  Its basically saying to use relative paths only and remember that with PowerClient or PowerServer Apps, all your App's resources (internal or external) must be in or under the same folder as the App's workspace.  HTH

Regards ... Chris

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 9 November 2021 18:15 PM UTC
  2. PowerServer
  3. # 3

Sorry, I've deleted my initial answer, as it's not very helpful.

Comment
There are no comments made yet.
Pierre Couvreur Accepted Answer Pending Moderation
  1. Wednesday, 10 November 2021 07:34 AM UTC
  2. PowerServer
  3. # 4

Hello Chris,

Yes Chris I understand, the issue is that I use NO pbr file nor any absolute path in the PBL. I don't know where that absolute folder coded in the PBL comes from, and I don't know how to get rid of it.

 A search through the whole application does not find that folder, it is well hidden in the PBL and out of my reach to get rid of it.

Pierre

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 10 November 2021 15:48 PM UTC
Hi Pierre ... If you edit your PBT file with notepad ... do you see that folder path located in there somewhere?

Also, export your "Project" object(s) and then check the JSON source code with notepad for that folder path.
  1. Helpful
  1. Pierre Couvreur
  2. Wednesday, 10 November 2021 15:59 PM UTC
Hi Chris, no that folder does not appear nor in the pbt nor in the exported project.

Pierre
  1. Helpful
There are no comments made yet.
Pierre Couvreur Accepted Answer Pending Moderation
  1. Wednesday, 10 November 2021 15:50 PM UTC
  2. PowerServer
  3. # 5

Hi Roland,

I'm using PB native source control. I will follow your instructions, I think it is effectively the only way to go.

Thank you !

Pierre

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.