ishikawa-da
Giga Sage

Hi @Naveen20 

Thanks a lot for the help! Your suggestions were exactly what I needed.

 

I realized I made a bit of a beginner mistake—I was still using the placeholder scope and scopeId from the tutorial instead of my actual PDI’s values. Once I corrected those and switched to npx @servicenow/sdk deploy as you suggested, everything worked perfectly!

For documentation purposes and to help anyone else who might encounter this "application was null" error, I’ve attached a screenshot of my ServiceNow IDE (showing version 4.1.1) and am including the specific syslog output from the failure below:

 

Syslog Output at Failure:

Unable to install application as application was null: java.lang.IllegalStateException: Unable to install application as application was null: com.sn_appclient_bootstrap.ScopedAppUploadProcessor.uploadAndInstallApp(ScopedAppUploadProcessor.java:251)
process() in ScopedAppUploadProcessor.java:154
runProcessor() in AProcessor.java:931
processTransaction() in AProcessor.java:352
process0() in ProcessorRegistry.java:200
process() in ProcessorRegistry.java:188
process() in GlideServletTransaction.java:58
run() in Transaction.java:3298
run() in HTTPTransaction.java:76
runTransaction() in SemaphoreQueueThreadPool.java:374
runThreadImpl() in SemaphoreQueueThreadPool.java:338
runThread() in SemaphoreQueueThreadPool.java:159
run() in Thread.java:1583

 

As I'm just starting to dive deeper into the ServiceNow SDK, do you have any recommendations on how to best stay caught up with the latest updates and best practices for this tool? Is there a specific GitHub repo, developer blog, or community group you recommend following?

 

Much appreciated!

Naveen20
ServiceNow Employee

 

That syslog trace is useful for anyone else hitting this — it confirms the failure point is in uploadAndInstallApp at the deserialization stage, not an auth or network issue.

For staying current with the SDK, here are the resources worth bookmarking:

GitHub — the single most important one: The official repo at github.com/ServiceNow/sdk has the release notes, discussion board, and now the agent skills for Claude Code/Kiro. The Releases page documents every version's changes, bug fixes, and new Fluent APIs. Turn on GitHub watch notifications for that repo — it's low-traffic enough that you won't get spammed.

The Community forum: The dedicated "ServiceNow IDE, SDK, and Fluent" forum on the ServiceNow Community.

Developer Advocate Blog: There's a recent series on building ServiceNow apps via Claude Code and the ServiceNow SDK that walks through the full dev environment setup, project structure, and the new plugin-based skills model in 4.6.0. That series is actively being expanded with episodes on git workflows, build/deploy, and more.

SDK explain command (new in 4.6.0): Since you're already on 4.6.0, you have access to npx @Servicenow/sdk explain which pulls live documentation for any Fluent API directly from the SDK. It covers API types, metadata conventions, skills, and project structure — essentially a built-in reference that always matches your installed version. This is especially powerful if you pair it with Claude Code or another AI coding assistant.

npm release feed: Watch npmjs.com/package/@servicenow/sdk for version bumps. New SDK versions often ship ahead of instance family releases, so you'll get early visibility into what's coming.

Thanks for the useful information! I have high hopes for the ServiceNow SDK, so I'll be sure to check it out.

sasi_v
Tera Guru

@ishikawa-da @Naveen20 ,

 

I am encountering the same error even after changing the scope name. could please help me to resolve this issue.

Note: My PDI is in Australia.

sasi_v_0-1783698898959.png

 

 

Hi, @sasi_v  !

Based on the information in this image, it appears that <alias> is not defined correctly. An arbitrary string should be defined.


e.g.

npx @servicenow/sdk deploy --auth pdi