Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Unable to publish the Discovery pattern

NirmalSharma
Tera Contributor

Hi Experts,

 

I am seeing a weired error in my instance wherein I m not able to publish the pattern. I have checked each and every step with utmost attention and could not find any syntax error. 

 

Things I have checked are:

- Syntax errors in each step.

- Pattern Scope

- Steps deactivation/activation strategy.

 

Everytime I hit publish button it always shows that that error message as shown below.

 

NirmalSharma_0-1761584398677.jpeg

 

in the logs I could find only this traceback message and nothing else which could explain it any further.

 

(48)PatternDesignerProcessor - problems when invoke method: activatePattern: java.lang.reflect.InvocationTargetException:   java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
  java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  java.base/java.lang.reflect.Method.invoke(Method.java:569)
  com.snc.ng.pattern.designer.processor.PatternDesignerProcessor.doProcess(PatternDesignerProcessor.java:140)
  com.snc.sw.ui.processors.SaBaseProcessor.doProcessInDomainScope(SaBaseProcessor.java:97)
  com.snc.sw.ui.processors.SaBaseProcessor.process(SaBaseProcessor.java:70)
  com.glide.processors.AProcessor.runProcessor(AProcessor.java:884)
  com.glide.processors.AProcessor.processTransaction(AProcessor.java:343)
  com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:187)
  com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:175)
  com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:58)
  com.glide.sys.Transaction.run(Transaction.java:2804)
  com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:35)
  java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
  java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  java.base/java.lang.Thread.run(Thread.java:841)

 

 

Thanks,

Nirmal Sharma

 

3 REPLIES 3

pratikjagtap
Giga Guru
Giga Guru

Hi @NirmalSharma ,

 

Possible Causes:

  1. Syntax errors in the NDL file.
  2. Missing required fields or incorrect structure.
  3. Unsupported values or parameters.
  4. Version mismatch between the pattern and the platform.

Recommended Actions:

  • Open the System Logs in the application to find the exact error details.
  • Validate the NDL file against the expected schema or format.
  • If available, use a built-in NDL validator or run a dry-run before publishing.
  • Check documentation for NDL requirements.

If my response helped, please hit the 👍Thumb Icon and accept the solution so that it benefits future readers.

 

Regards,
Pratik

What is NDL validator and where do I find it? I checked all syntax and everything as well I kept a very simple set parameter value step only to test it out but still it kept me showing the same errors.

 

  • Pattern Designer in ServiceNow:
    • Navigate to:
      Discovery > Patterns > [Select Pattern] > Edit
    • When you click Publish, the system automatically runs the NDL Validator.
    • If there are issues, you’ll see an error message like “Unable to publish pattern due to invalid NDL. Please refer to System Logs for more information.”
  • System Logs:
    • Go to System Logs > All and filter by the pattern name or error message to see detailed validation errors.