Invalid block id

invalid block id: SetVariiable
Any help how to fix it

`BLOCK:SetVariable
  VAR @page = 1
ENDBLOCK

BLOCK:SetVariable
  VAR @lastPage = 1
ENDBLOCK

BLOCK:HttpRequest
LABEL:GET_FIRST_PAGE
  url = "https://panel/search?type=sold"
  method = POST
  contentType = "application/x-www-form-urlencoded"
  data = $"search_form%5B_token%5D=<token>&page=<page>&size=10"
ENDBLOCK

BLOCK:Parse
LABEL:GET_LAST_PAGE
  input = @data.SOURCE
  leftDelim = "\"last_page\":"
  rightDelim = ","
  MODE:LR
  => VAR @lastPage
ENDBLOCK

BLOCK:For
  from = "<page>"
  to = "<lastPage>"
  step = 1
  VAR @currentPage
ENDBLOCK

BLOCK:HttpRequest
LABEL:GET_PAGE
  url = "https://panel/search?type=sold"
  method = POST
  contentType = "application/x-www-form-urlencoded"
  data = $"search_form%5B_token%5D=<token>&page=<currentPage>&size=10"
ENDBLOCK

BLOCK:Parse
LABEL:PARSE_CODES
  input = @data.SOURCE
  leftDelim = "\"code\": \""
  rightDelim = "\","
  MODE:LR
  RECURSIVE
  => CAP @code
ENDBLOCK

BLOCK:Parse
LABEL:PARSE_EXPIRES
  input = @data.SOURCE
  leftDelim = "\"date_fin\": \""
  rightDelim = "\","
  MODE:LR
  RECURSIVE
  => CAP @date_fin
ENDBLOCK

BLOCK:Combine
  input = "<code>:<date_fin>"
  separator = "\r\n"
  => CAP @entrylog
ENDBLOCK

BLOCK:FileAppend
  path = "Hits\\sold_paginated.txt"
  content = "<entrylog>"
ENDBLOCK

BLOCK:EndFor
ENDBLOCK

this are not make whit OB2, some blocks are not in OB2, thats the problem,thats why u get errors.

I update block but still get. error parse
Parsed value:

Assigned value to variable ‘code’

Variable ‘code’ marked for capture

PARSE_EXPIRES (ParseBetweenStringsRecursive) <<

Parsed 0 values:

Assigned value to variable ‘date_fin’

Variable ‘date_fin’ marked for capture

FORMAT_ENTRIES (InvokeJint) <<

[Executing block FORMAT_ENTRIES] JavaScriptException: code is not defined

BOT ENDED AFTER 13244 ms WITH STATUS: ERROR
here my block any help how to fix

LABEL:PARSE_CODES
  input = @data.SOURCE
  leftDelim = "\"code\": \""
  rightDelim = "\","
  RECURSIVE
  MODE:LR
  => CAP @code
ENDBLOCK

BLOCK:Parse
LABEL:PARSE_EXPIRES
  input = @data.SOURCE
  leftDelim = "\"date_fin\": \""
  rightDelim = "\","
  RECURSIVE
  MODE:LR
  => CAP @date_fin
ENDBLOCK

BLOCK:Script
LABEL:FORMAT_ENTRIES
INTERPRETER:Jint
INPUT 
BEGIN SCRIPT
var output = "";
for (var i = 0; i < code.length; i++) {
    var line = "Code: " + code[i] + " | Expires: " + date_fin[i] + "\n";
    output += line;
}
Environment.Set("formatted", output);
END SCRIPT
ENDBLOCK
type or paste code here

For the script block you did not input or output any variables, here this should fix it

BLOCK:Parse
LABEL:PARSE_CODES
  input = @data.SOURCE
  leftDelim = "\"code\": \""
  rightDelim = "\","
  RECURSIVE
  MODE:LR
  => CAP @code
ENDBLOCK

BLOCK:Parse
LABEL:PARSE_EXPIRES
  input = @data.SOURCE
  leftDelim = "\"date_fin\": \""
  rightDelim = "\","
  RECURSIVE
  MODE:LR
  => CAP @date_fin
ENDBLOCK

BLOCK:Script
LABEL:FORMAT_ENTRIES
INTERPRETER:Jint
INPUT code
BEGIN SCRIPT
var output = "";
for (var i = 0; i < code.length; i++) {
    var line = "Code: " + code[i] + " | Expires: " + date_fin[i] + "\n";
    output += line;
}
//Environment.Set("formatted", output);
END SCRIPT
OUTPUT String @output
ENDBLOCK