Skip to main content
Solved

Error when publishing any customization: npm run build failed

  • May 17, 2026 8:22 PM UTC
  • 10 replies
  • 214 views
  • Translate All

lauraj46
Captain II
Forum|alt.badge.img+9

We are receiving an error when attempting to publish any customization in a SaaS 2025 R2 sandbox.  We were able to publish these same customizations successfully in this environment a few days earlier, and nothing has changed as far as I’m aware.  I have already tried clearing cache and a front end Application Restart, as well as unpublishing and republishing.  The customizations validate successfully - the error occurs during the publication process.

 

Has anyone else seen this error, and what is the solution in a SaaS environment?

Best answer by lauraj46

For others who may be facing this issue, I found out that periods in the tenant name were causing the problem.  Once we removed the periods from the tenant and tenant login name we were able to publish.

View original

10 replies

lauraj46
Captain II
Forum|alt.badge.img+9
  • Author
  • Captain II
  • May 17, 2026 8:42 PM UTC

On further testing, it looks like this issue may have been related to a missing screen dependency in one of the tenants.  The projects published successfully from a different tenant.

Translate

Forum|alt.badge.img+5

Hi ​@lauraj46 recently I face this error in Sandbox & what I did is removed MUI files from customization & published. temporarily removing Modern UI files from the customization project, publish (which should succeed), then re-add them and publish again. This forces the system to lay down fresh copies.

Since you're in SaaS, you can't access the server filesystem directly, so this option is there.

you can only remove MUI screen files which is in this error (IN202500, IN801000, IN802000).

Translate

lauraj46
Captain II
Forum|alt.badge.img+9
  • Author
  • Captain II
  • May 18, 2026 12:30 PM UTC

Hi ​@Abhishek Niikam ,

Thanks for this advice.  I’ll keep that in mind if this error crops up again!

Laura

Translate

Forum|alt.badge.img+6
  • Captain II
  • May 28, 2026 9:20 AM UTC

lauraj46
Captain II
Forum|alt.badge.img+9
  • Author
  • Captain II
  • May 28, 2026 2:22 PM UTC

Hi ​@ray20 ,

In our case the issue was related to a published customization in a different tenant on the same instance.  Once we published from that tenant, we were successful.

Hope this helps!

Laura

Translate

Forum|alt.badge.img+6
  • Captain II
  • May 29, 2026 1:33 AM UTC

​@lauraj46 
Thank you Laura, the "tenant" you mention refers to the tenant within the Acumatica instance, right? Not the SaaS subscription tenant?

Let’s say one Acumatica instance has 4 tenants. If I publish a customization with Modern UI screens in tenant 1, will the customized Modern UI screens in tenants 2, 3, and 4 also be affected? Or does publishing only impact the specific tenant where I perform the publish action?

Translate

lauraj46
Captain II
Forum|alt.badge.img+9
  • Author
  • Captain II
  • May 29, 2026 12:29 PM UTC

Hi ​@ray20 ,

Yes, I am referring to tenants within one instance.  It's my understanding that modern UI screen changes deployed via a customization project affect all tenants.  However screen personalizations through the UI outside of a customization project are tenant specific.  I am still learning and far from an expert on this.  Maybe others can add to this.

Laura 

Translate

lauraj46
Captain II
Forum|alt.badge.img+9
  • Author
  • Captain II
  • Answer
  • Jun 26, 2026 1:41 PM UTC

For others who may be facing this issue, I found out that periods in the tenant name were causing the problem.  Once we removed the periods from the tenant and tenant login name we were able to publish.

Translate

Forum|alt.badge.img
  • Freshman I
  • Nov 9, 2026 9:29 PM UTC

This “Remove periods” fix does not work, I dont have a single symbol in any of my tenants and I am still getting this issue. Is there a more reliable solution?

Translate

serhiitoronii09
Freshman I

​@rpearson69  — since you don't have periods in your tenant names, the most reliable way to diagnose npm run build failed on 25R2 (especially in SaaS where you don't have filesystem access) is to isolate which step or file triggers the webpack/TypeScript failure:

  1. Check the exact publish validation/compilation output: Look further up in the Customization Project Editor publish log above the generic npm run build failed line — webpack / fork-ts-checker-webpack-plugin usually prints the exact TSxxxx error or Module not found / selector error right before exiting non-zero.
  2. Run the build locally on a matching 25R2 instance: Export the customization package(s) and publish on a local 25R2 site, or run npm run build-dev inside FrontendSources\screen (or use AcuMate / VS Code to validate the Modern UI HTML/TS files). Common hidden culprits in 25R2 include:
    • An extension file named the same as the base screen ID (e.g. SO301000.ts instead of SO301000_MyExt.ts under extensions/)
    • A broken CSS selector in before / after / modify / remove pointing to an element that changed or doesn't exist in that 25R2 build
    • Two published customization packages touching the same screen with conflicting selectors or missing npm run getmodules packages
  3. If a stale SaaS FrontendSources state is suspected: Unpublish the Modern UI files (or temporarily publish a package without the Modern UI files, then re-add them and publish again) — as noted earlier in this thread, that forces Acumatica's SaaS build pipeline to regenerate clean files under FrontendSources.
Translate