AnsweredAssumed Answered

Groovy Scripting Error

Question asked by RobBradley743 on Aug 12, 2011
Latest reply on Jan 4, 2018 by mmorthala189353
I am running into an error below that I can't figure out. the script is below the error. Any thoughts?<br /> <br /> First document failure: [Function: Scripting]: Error executing custom script: groovy.lang.MissingMethodException: No signature of method: com.sun.script.groovy.GroovyScriptEngine.If() is applicable for argument types: (java.lang.Boolean, Script2641$_run_closure1) values: {false, Script2641$_run_closure1@1f98eaf}; Caused by: groovy.lang.MissingMethodException: No signature of method: com.sun.script.groovy.GroovyScriptEngine.If() is applicable for argument types: (java.lang.Boolean, Script2641$_run_closure1) values: {false, Script2641$_run_closure1@1f98eaf}; Caused by: No signature of method: com.sun.script.groovy.GroovyScriptEngine.If() is applicable for argument types: (java.lang.Boolean, Script2641$_run_closure1) values: {false, Script2641$_run_closure1@1f98eaf}<br /> <br /> If (ShipToWarehouse_Flag == &quot;False&quot;)<br />   {<br />     ShipNameTheater = ShipToName<br />     ShipCityTheater = ShipToCity<br />     ShipPostalTheater = ShipToPostalCode<br />     ShipCountryTheater = ShipToCountry<br />     ShipStateTheater = ShipToState<br /> <br />   }<br /> ELSE<br />   {<br />     ShipNameWarehouse = ShipToName<br />     ShipCityWarehouse = ShipToCity<br />     ShipPostalWarehouse = ShipToPostalCode<br />     ShipCountryWarehouse = ShipToCountry<br />     ShipStateWarehouse = ShipToState<br />   }<br />

Outcomes