recursive value scn needs type and type mismatch error when using Gatling.bat

Hi,
I have recorded script with HAR, and have used grouping in the script like,
val scn = scenario(“Scenario Name”)

.group(“Navigate To URL”){
exec(http(“request_0”)
.get(“sampleUrl.asp”)
.headers(headers_0)
.resources(http(“request_1”)
.get(“sampleUrl.js?_v=4.10.0.17”)
.headers(headers_1),
http(“request_2”)
.get(“sampleUrl.js?_v=4.10.0.17”)
.headers(headers_1)}

When i run gatling.bat, following errors are displayed

Also, when i run script in reports i am not able to see requests grouped…

Can you please try the below code. You seems to be something missing in your code.

object scenario1{
val scenario1 =
group(“Navigate To URL”){
exec(http(“request_0”)
.get(“sampleUrl.asp”)
.headers(headers_0)
.resources(http(“request_1”)
.get(“sampleUrl.js?_v=4.10.0.17”)
.headers(headers_1),
http(“request_2”)
.get(“sampleUrl.js?_v=4.10.0.17”)
.headers(headers_1)))}
}

val scn =scenario(“scenario name”){exec(scenario1.scenario1)}

It will group the requests and group name is displayed and expanding the group name will give transaction inside the group .

Ok, i did changes that you suggested, but getting error for line

val scn =scenario(“scenario name”){exec(scenario1.scenario1)}

Hi well i solved this error,
But can anyone please give me snippest for how can i use grouping inside object

Thanks