Question
Bank Of America
US
Last activity: 4 Apr 2024 19:08 EDT
Connect Rest Wizard error during preview and Generate rules
Hi team,
While running the Connect REST Wizard, in the last (4th) step, we are getting error: "Rule evaluation failed : Canceling rule evaluation, Error evaluating rules using sample JSON stream". And the wizard fails to generate the rules and records.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 4 Apr 2024 19:06 EDT
Bank Of America
US
Hi,
I have given the class names less than 25 characters.
on click of preview button, I am getting an error ""Rule evaluation failed : Canceling rule evaluation, java.lang.NullPointerException"
LTIMindtree Limited
IN
Before generating the rules can you please try to preview the set of rules to be generated and check to see if that works fine?
Also did you check if the classes that are supposed to get generated are not more than 25 characters?
Accepted Solution
Updated: 4 Apr 2024 19:06 EDT
Bank Of America
US
Hi,
I have given the class names less than 25 characters.
on click of preview button, I am getting an error ""Rule evaluation failed : Canceling rule evaluation, java.lang.NullPointerException"
Bank Of America
US
@AdrijaC7 It was a class length issue for Int class.
Somehow i missed it and class length was 26 characters. This length restriction is only on Integration class. But your suggestion worked to reduce the class length to 25 characters.
Thanks
Maantic Inc
IN
Seems like the error is present in the sample JSON you provided in the previous steps. Can you evaluate the JSON from any JSON formatter online, and restart the process?
Bank Of America
US
Hi,
I tried to run the service call instead of providing file and service was successful.
Also, I tried with file option, that also did not work.
Maantic Inc
IN
I have seen this issue happening abruptly sometimes. Is there any special characters present infront of any JSON property? Are you trying to create the rules in a branch? If so can you try to create them in a ruleset version?