The CreatorCon Call for Content is officially open! Get started here.

Virtual agent error

nicolas90
Tera Contributor

Hello

 

I'am new in serviceNow development program and i'm facing an issue with virtual agent.
Below my project :
I would like to use the VA UI to get user questions and in the background use an API to get answer with a Q&A tools with GPT.
So the workflow is : User input through VA > Use a Topic Block to Call REST > REST Call to my API > Response from API > VA write back answer to the user.

I know it's working because i can use it on a fresh Dev instance of a collegue, but it do not works on mine where we have a few developments that i would love not to loose them !

I probably made a miss configuration somewhere !


I have attached error message when i tried from the topic block test, but the virtuall agent flow and the rest message is working when i test them separetly

Can some one coud help me on that subject ?

 

8 REPLIES 8

Here the last error message from the VA : 

  • 00:37:05.696 Topic Node Script Error at topic [_PRVW__9ecf91f6d919f150da2df3317ad39f5d], at variable [vaInputs.__silent_FDIHInvocation_a4a509f1d6a54814986db90dc733ddfe], for task [b7cfd17a0715f150b1a9f1e08c1ed012], expression: [vaVars.previous_graph_node="AskQA___a4a509f1d6a54814986db90dc733ddfe";var ackMsg=null;ackMsg=(function execute() {var inputs = {};inputs[prompt] = vaInputs.query.getValue();var outputs = {"answer":"string","don_t_treat_as_error":"boolean","action_status":"object"};var outputParamNameToTopicVarExpr = {"answer":"answer","__dont_treat_as_error__":"don_t_treat_as_error","__action_status__":"action_status"};vaVars._current_fdih_contextId=vaSystem.waitForResponseFromFDIHAction_2(global.questionanswering, inputs, outputs, outputParamNameToTopicVarExpr, 2eaee3bb07ac7d10b1a9f1e08c1ed039, true);})();null;vaInputs.query.reset();vaVars.__suspendable__semaphore_a4a509f1d6a54814986db90dc733ddfe=released;(function() {vaInputs.query.reset();})();ackMsg;], error [org.mozilla.javascript.JavaScriptException: java.lang.RuntimeException: Error calling FDIH (wait for response) actionglobal.questionanswering,'


    It looks like a java.lang.RuntimeException thrown during waitForResponseFromFDIHAction_2  ? But i have no idea how to fix it.

marcinzagro
Tera Contributor

Had similar issue with "java.lang.RuntimeException: Error calling FDIH" when trying to use action in VA. Recreating action in flow solved the problem

marcinzagro
Tera Contributor

Had similar issue with java.lang.RuntimeException: Error calling FDIH when trying to use action in VA. Recreating action in flow solved the problem

Shivani_09
Tera Contributor

Hello, I am facing the same issue , I tried reconfiguring the action but the issue still persists.