The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Error creating UI Component via ServiceNow CLI: "Scope is already taken" — seeking guidance for mark

henriquepel
Mega Contributor


Hello Community,

I'm trying to create a marketplace-ready app in ServiceNow using the UI Component via ServiceNow CLI, but I keep running into the following error. No matter which scope I choose, I get:

Failed to run project command (Table Operation CREATE Failure: Response code 400 (Bad Request) : This scope is already taken by another application)

I would like to know if anyone has experienced this and what the proper approach to resolve it would be.

 

 

App context and requirements:

Goal: Implement an AI Copilot widget in the Service Operations Workspace (SOW), specifically in the incident record sidebar.

Technical requirements:
- Integration: iframe + postMessage API for secure cross-origin communication between ServiceNow and an external multi-tenant application
- Deployment: ServiceNow Store / Marketplace as a scoped application
- UI Location: Incident Record Page sidebar (right panel) in SOW (Zurich release)
- Architecture: External multi-tenant application communicating with ServiceNow instances

Current implementation:
- Existing app/widget pointing to a multi-tenant app
- Server script extracting incident context (sys_id, number, description, state, priority, etc.)
- HTML template with responsive iframe container
- PostMessage communication partially implemented

 

 

Questions for the community:

1. Am I on the right path creating the app via snc ui-component for Marketplace deployment?
2. Has anyone encountered the "This scope is already taken by another application" error even when creating a new scope?
3. Are there any specific requirements for scopes or app records that could trigger this error in Zurich + UI Component CLI?
4. What is the best practice for managing scopes and creating marketplace-ready apps via CLI without using Studio?

Any guidance, documentation links, or tips would be greatly appreciated!

1 REPLY 1

mayankkumar
Kilo Patron

Hi @henriquepel,
You can try Component Builder provided by ServiceNow OOB from Zurich Release
refer this -> Create custom components to reuse across pages with component builder
and if you still want to go with the CLI approach, you can refer this tutorial video -> Checklist Tutorial - ServiceNow Next UI Custom Component Development

other useful resources -> Creating Custom Components – ServicePortal.io
----------------------------------------------------------------------------------------------------------------------------------------------
Please mark my response helpful and accept as solution
Thanks & Regards
Mayank