Issues and solutions in Build Agent
Summarize
Summary of Issues and solutions in Build Agent
This guide addresses common issues encountered when using Build Agent within ServiceNow, providing practical troubleshooting steps to quickly identify and resolve problems. It emphasizes a structured debugging approach and captures essential information for effective support escalation.
Show less
General Debugging Approach
- Copy the exact error message and paste it into the Build Agent chat to leverage its diagnostic capabilities.
- If unresolved, follow a structured process: reproduce the error consistently, review debugger output and logs, verify access and configuration, and check for known issues.
- Test hypotheses from simplest (access or role issues) to more complex (configuration, naming conflicts, logic edge cases).
- If unresolved after multiple attempts, start a new chat with a focused prompt including saved debugging details to assist Now Support.
Common Issues and Practical Resolutions
- ServiceNow Otto panel not visible: Confirm required plugins (snglider, snbuildagent, snnowcreator) and admin roles are assigned. Refresh or re-login. Capture exact errors, release version, and user roles if issue persists.
- Build Agent unresponsive: Clear browser cache, try alternate browsers, and check ServiceNow status page. If unresolved, capture hung requests, browser version, and status state.
- Scope or name conflict: Verify if the app scope or name is already used. Allow Build Agent to self-correct or choose a unique name. Capture conflicting names and triggering actions if needed.
- Stuck in error loop: Use Git checkpoints or rollback updates. Start a new conversation with specific error details and recent commits.
- App not deploying: Check build output for errors before deployment. Run ServiceNow SDK build, verify update sets, and deploy sequentially. Use Build Agent chat to fix build failures. Capture build logs, SDK version, and update set status if issues persist.
- Empty UI page: Inspect browser console for errors. Paste console errors into Build Agent chat for resolution. Capture full console output if unresolved.
- Context limit exceeded: If receiving context window errors, start a new chat describing the application. Build Agent will continue from the last known point. Capture last prompt and build summary if issues continue.
- Out of prompts: Verify remaining prompt count within the 30-day cycle. Wait for reset or upgrade plan. Capture entitlement state and reset date if necessary.
- Rate limit error: Occurs when too many requests are sent. Wait briefly before retrying. Capture error message and timestamp if needed.
- Unsupported configuration: Confirm requested metadata or features are supported. Perform unsupported steps directly on the platform and continue with Build Agent. Capture configurations and workarounds if required.
- Missing dependencies (ServiceNow IDE): Review package.json entries referenced by Build Agent. Allow self-correction or manually add missing packages and run npm install. Capture missing module names and errors if unresolved.
- Long-running prompt times out: Check session timeout settings. For labs/workshops, set glide.ui.sessiontimeout to 1440 minutes after coordinating with platform admins. Capture session length and timeout prompts if issue persists.
What to Expect
Following this guidance enables ServiceNow customers to methodically diagnose and resolve Build Agent issues, reduce downtime, and improve development productivity. When issues require escalation, detailed captured information ensures faster and more accurate support from Now Support.
Identify and resolve common issues in Build Agent.
General debugging approach
Copy the error message and paste it into the Build Agent chat. Build Agent can often diagnose and fix the issue directly. If not, the error message is your starting point for debugging.
If several fixes in the same conversation don't resolve the issue, use a structured approach before starting a new chat.
Use the following prompt to structure your debugging session:
I'm seeing this error: [paste exact error]. This happens when: [describe scenario]. Before suggesting fixes: 1) Help me reproduce this consistently. 2) Review the debugger output and logs. 3) Check for access or configuration issues. 4) Examine if this is a known issue.
Test hypotheses from simplest to most complex:
- Is this an access or role issue?
- Is this a configuration problem?
- Is this a naming convention mismatch?
- Is this a logic edge case?
If structured investigation doesn't resolve the issue within a few attempts, start a fresh conversation with a more specific prompt.
Save any debugging information to convey if you need to contact Now Support.
Issues and solutions
| Issue | Resolution |
|---|---|
| ServiceNow Otto panel not visible |
|
| Build Agent unresponsive |
|
| Scope or name conflict |
|
| Stuck in error loop |
|
| App not deploying |
|
| Empty UI page |
|
| Context limit exceeded |
|
| Out of prompts |
|
| Rate limit error |
|
| Unsupported configuration |
|
| Missing dependencies (ServiceNow IDE) |
|
| Long-running prompt times out |
|