Skip to main content
Answer

Modern UI customization Publication

  • May 16, 2025
  • 8 replies
  • 170 views

Forum|alt.badge.img

I get this error when I am trying to add files on customization project and publish it.
I am able to run npm run build-dev it gives no error. But if i run just npm run build it gives this error

Best answer by Dmitrii Naumov

@ron when you publish a package, the system will put them back there and it’ll run the build process. 

Theoretically it should replace the existing ones, but currently it just puts the new ones side by side with the existing ones and then runs the build. 

8 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • May 16, 2025

@ron If you’ve already included these files in the customization project, please remove them from the file system and republish the project. 

What happens is that the system tries to put the same file during the publish process without accounting for the one that’s already there, thus causing the ‘duplicate IDs’ error. 

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • May 16, 2025

I don't have these files in any other customization project


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • May 16, 2025

@ron I mean you do have them in your customization project and in the local file system. 

Please only keep the ones in the customization project. 

 

We’ll improve the process sin future, but for now this is the workaround. 


Forum|alt.badge.img
  • Author
  • Varsity I
  • May 16, 2025

I dont have them in the customizationScreens folder just under extensions,
so if i delete them and not run a npm run build? 


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • May 16, 2025

@ron when you publish a package, the system will put them back there and it’ll run the build process. 

Theoretically it should replace the existing ones, but currently it just puts the new ones side by side with the existing ones and then runs the build. 


Forum|alt.badge.img
  • Author
  • Varsity I
  • May 20, 2025

@Dmitrii Naumov  Could you help me with the issue of sitemap for modern ui files. It works fine on my instance but on another instance when i publish the files the sitemap doesnot reference the modernui files


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • May 20, 2025

@ron  could you please verify that the package contain the SiteMap? What does site map XML look like in the package?


Forum|alt.badge.img
  • Author
  • Varsity I
  • May 20, 2025

@Dmitrii Naumov  I haven't added the site map in package as project screen is already there