Skip to main content
Solved

Unpublish All removes customization includes folder from Pages folder


Forum|alt.badge.img

I have a customization that requires a sub-folder which has includes files in it and the sub-folder is in the Pages folder of the web site.  It is Pages\AK.

Ok. No problems there.

HOWEVER, if I select UNPUBLISH ALL from the Customization Projects, Acumatica deletes that Pages\AK folder completely.  Which causes a the customization to fail if you try to PUBLISH (all) from the Customization Projects screen.  I then have to re-copy that entire sub-folder back over, (and remember to do so), before selecting PUBLISH.

The question is this : Is there a way to tell Acumatica to NOT delete customization folders in the Pages sub-folder when you UNPUBLISH ALL?

 

Best answer by jeffgrammer69

I found a workaround, but this problem, IMHO, is a bug in Acumatica.
The workaround I found was to create a different and new customization package which recopies the files for the includes folder.  Then publish ONLY this one customization package BEFORE you select “PUBLISH” to publish all of the customization packages.  It is not elegant in the least.  However, it is a process workaround to a bug with Acumatica publishing.

View original
Did this topic help you find an answer to your question?

7 replies

Zoltan Febert
Jr Varsity I
Forum|alt.badge.img+3

Add your files in that sub folder to your customization package, and Acumatica will create the folder and copy the files when you publish your package.


Forum|alt.badge.img
  • Author
  • Varsity I
  • 47 replies
  • October 28, 2023
Zoltan Febert wrote:

Add your files in that sub folder to your customization package, and Acumatica will create the folder and copy the files when you publish your package.

That kind of what is confusing me.  I THOUGHT I had done that.  See screen shot.  Do I have this all in the wrong spot?
Ok, could this be caused by ANOTHER customization that is being loaded after this one writes to that same Pages\AK sub-folder and as a result it deletes everything in this customization first?

 

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 47 replies
  • October 30, 2023
jeffgrammer69 wrote:
Zoltan Febert wrote:

Add your files in that sub folder to your customization package, and Acumatica will create the folder and copy the files when you publish your package.

That kind of what is confusing me.  I THOUGHT I had done that.  See screen shot.  Do I have this all in the wrong spot?
Ok, could this be caused by ANOTHER customization that is being loaded after this one writes to that same Pages\AK sub-folder and as a result it deletes everything in this customization first?
NOTE : I did confirm that there IS another customization that is published after this one which does also write files to that Pages\AK folder.

 

 

 


Zoltan Febert
Jr Varsity I
Forum|alt.badge.img+3

@jeffgrammer69 I also did a quick test. It looks like the customization project that copies the files to the subfolder needs to be the last one, otherwise the files will be removed.Can you change the priority of your project to make it the last one?


Forum|alt.badge.img
  • Author
  • Varsity I
  • 47 replies
  • October 30, 2023
Zoltan Febert wrote:

@jeffgrammer69I also did a quick test. It looks like the customization project that copies the files to the subfolder needs to be the last one, otherwise the files will be removed.Can you change the priority of your project to make it the last one?

that is what is even more confusing.  It is the last one.  (see below)
I even deselected all of the customizations that have a higher priority, and it still will not publish UNLESS I physically go out and copy the files to that Pages\AK\includes folder.
I should note that the other packages only load in aspx and aspx.cs files.  This one customization only requires a subfolder of “Pages\AK\Includes”.  I suppose the real question for me is why does “Unpublish All” delete everything out of that “Pages\AK” folder, but yet it keeps the folder structure? it is only deleting the files in the folders, but not the folders itself.

Still, if the customization needs those files, why are they not being copied back into there if they are in the customization?

 

Here is a screen shot of the actual customizations screen with the error (the name alignment is a little off because I had to edit out company name.  One other note, the customization called SupportServices actually does have a dependency on Billing being loaded before it.)
 

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 47 replies
  • Answer
  • November 14, 2023

I found a workaround, but this problem, IMHO, is a bug in Acumatica.
The workaround I found was to create a different and new customization package which recopies the files for the includes folder.  Then publish ONLY this one customization package BEFORE you select “PUBLISH” to publish all of the customization packages.  It is not elegant in the least.  However, it is a process workaround to a bug with Acumatica publishing.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2749 replies
  • November 21, 2023

Thank you for sharing your workaround with the community @jeffgrammer69!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings