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.

@SaurabhG7566

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?

@SaurabhG7566

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?

@AdrijaC7

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”

@SaurabhG7566

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?

@SohamM95 It was a class length issue but was giving weird error message.

@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

@SohamM95

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.