Sync Rules Error - Need Assistance

Hello,

I’m getting the following sync error message:

Error Detail Message:

startup failed: file:/opt/jcloudnode/data/scripts/CreateIssue.groovy: 121: Unexpected input: ‘.’ @ line 121, column 43. none = { scala.Option$.MODULE$. empty ^ 1 error

I don’t know how to troubleshoot to resolve. Can anyone please help? The stack trace is miles long, but I can provide that if that would help.

Thanks!

This error message points to a syntax issue in your Groovy script, specifically at line 121 in your CreateIssue.groovy file. The part scala.Option$.MODULE$.empty suggests that the script is trying to use Scala-style syntax, which isn’t valid in Groovy. In Groovy, you typically don’t access Scala objects or use the $ notation like that.

To resolve this, you’ll want to:

  1. Check line 121 in your CreateIssue.groovy script for any code that looks like scala.Option$.MODULE$.empty or similar.
  2. Replace it with a Groovy-appropriate way to represent an empty value. For example, if you’re trying to set a field to “no value,” you can usually use null in Groovy.

So, if you have something like:

none = { scala.Option$.MODULE$.empty }

You should change it to:

none = null

If you’re not sure what the script is trying to achieve at that line, you can share just that section of the script (a few lines before and after line 121), and I can help clarify further.

For more details on writing and troubleshooting sync rules in Exalate, check out the documentation:
https://docs.exalate.com/docs/scripting-basics

This should get you back on track!

where do i find the groovy script?

Hi @Kristie

For this particular issue I need you to create a support ticket, you can create one from Jira Service Management

You will need to provide the instance URL which is having the error.

Best,
Kevin