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.

Flow Designer error on save

ericgilmore
Tera Guru

Working with Flow Designer, everything was going fine until I wrote and assigned a function script to the Short Description field of a Create Catalog Task action. After writing the script, I clicked [Done], [Save], and [Activate] and it worked as usual.

Then I decided to NOT use the script, so I went back, deleted what I'd done, clicked [Done], [Save], and [Activate] and immediately received some error asking me to look at the error logs.

Went back, looked at the Create Catalog Task action, no script. Everything looks normal, clicked [Done], [Save], [Activate], everything worked no error, but I now noticed that the [Flow] button is NOT green and the [Acitvate] button is still blue, so it didn't activate although it didn't display an error.

I go to the error logs and I see two recent entries:

Failed to invoke public com.glide.flow.model.ComponentInstance() with no args
com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:107)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:162)
com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
com.google.gson.Gson.fromJson(Gson.java:803)
com.google.gson.Gson.fromJson(Gson.java:768)
com.google.gson.Gson.fromJson(Gson.java:717)
com.google.gson.Gson.fromJson(Gson.java:689)
com.glide.flow_design.rest.FlowService.updateFlow(FlowService.java:437)
sun.reflect.GeneratedMethodAccessor2748.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:44)
com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:286)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:553)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:241)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:177)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:166)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31)
com.glide.sys.Transaction.run(Transaction.java:2218)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

and

Flow Designer: Failed to invoke public com.glide.flow.model.ComponentInstance() with no args
com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:107)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:162)
com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
com.google.gson.Gson.fromJson(Gson.java:803)
com.google.gson.Gson.fromJson(Gson.java:768)
com.google.gson.Gson.fromJson(Gson.java:717)
com.google.gson.Gson.fromJson(Gson.java:689)
com.glide.flow_design.rest.FlowService.updateFlow(FlowService.java:437)
sun.reflect.GeneratedMethodAccessor2748.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:44)
com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:286)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:553)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:241)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:177)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:166)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31)
com.glide.sys.Transaction.run(Transaction.java:2218)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
: no thrown error

 

Has anyone else experienced this madness with Flow Designer? I hope I don't have to recreate everything again.

1 ACCEPTED SOLUTION

Pooja Devkar
Mega Guru

Hello,

Its complaining of the payload length, for which the size needs to be changed.

Please check below link,

https://docs.servicenow.com/bundle/orlando-application-development/page/integrate/custom-web-service...

Also check Watch this video once.

Kindly mark correct & helpful; if my answer is useful to you.

Thanks & Regards,

Pooja Devkar

DxSherpa Technologies Pvt. Ltd

View solution in original post

8 REPLIES 8

I had the exact same experience and same error  when I toggled an email body to scripting and toggled back again in 'Send Email' action. I think I need to start all over again.

I was just wrestling with an inline script update that wouldn't stick, and I was resigned to rebuilding the flow. However, I may have found a second approach for getting things back in order:

  1. Complain about the situation to your coworkers. (Send them a link to this article.)
  2. Take a lunch break.
  3. Come back from your break.
  4. Show somebody the issue in a live demo by following exactly the same steps.
  5. ...see it magically work again. ðŸ˜‚

🙂 happens so many times!!

John Prouty
Kilo Guru

Video does NOT address this error.