# Type mismatch: 'Action.MajorVersion'

**URL:** https://www.finalbuilder.com/forums/t/type-mismatch-action-majorversion/6282
**Category:** Bugs
**Created:** [November 2, 2018, 10:13am UTC](https://www.finalbuilder.com/forums/t/type-mismatch-action-majorversion/6282 "2018-11-02T10:13:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![FAHQ-DL-ITASSETMANAGEMENT](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@FAHQ-DL-ITASSETMANAGEMENT](https://www.finalbuilder.com/forums/u/FAHQ-DL-ITASSETMANAGEMENT)
#### Post date: [November 2, 2018, 10:13am UTC](https://www.finalbuilder.com/forums/t/type-mismatch-action-majorversion/6282/1 "2018-11-02T10:13:43Z")

</div>

Have a new project with one action to compile a Delphi 10.2 project. Everything looks OK, but when I run it, I’m getting a “An unhandled exception (‘Type mismatch: ‘Action.MajorVersion’’) occurred in FinalBuilder8.exe [600864].”

This was action was copied from another project and then tweaked. I created a new action that is basically the same and it works. Comparing the DSL, I see  
action.script  
begin  
name = BeforeAction  
script \>  
beginscript  
Action.MajorVersion = VERSION1\_MAJOR  
Action.MinorVersion = VERSION2\_MINOR  
Action.ReleaseVersion = VERSION3\_RELEASE  
Action.BuildVersion = VERSION4\_BUILD  
endscript  
scriptlanguage = VBScript  
end  
in the one that fails. Defining the variables make the error go away. However, I cannot find where in the action dialog tabs that this is accessible to remove/edit/etc. Is it an artifact from FB7? Reporting this since a more user friendly error than an unhandled exception is probably desired.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 2, 2018, 12:45pm UTC](https://www.finalbuilder.com/forums/t/type-mismatch-action-majorversion/6282/2 "2018-11-02T12:45:46Z")

</div>

What version/build of FinalBuilder 8 is this. Undefined variables shouldn’t cause an av. To edit the script, select the action, then look at the script editor tab (if you have trouble finding it, use the view menu, script editor).

---

<div class="post-metadata">

### Author: ![FAHQ-DL-ITASSETMANAGEMENT](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@FAHQ-DL-ITASSETMANAGEMENT](https://www.finalbuilder.com/forums/u/FAHQ-DL-ITASSETMANAGEMENT)
#### Post date: [November 2, 2018, 11:06pm UTC](https://www.finalbuilder.com/forums/t/type-mismatch-action-majorversion/6282/3 "2018-11-02T23:06:38Z")

</div>

FinalBuilder 8.0.0.2370

View Script Editor is what I needed. Removed script and it is happy. But above version does show the unhandled exception dialog.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 3, 2018, 11:03pm UTC](https://www.finalbuilder.com/forums/t/type-mismatch-action-majorversion/6282/4 "2018-11-03T23:03:06Z")

</div>

I believe it was fixed after that version, I’m not able to reproduce the problem with the current release.

---

<div class="post-metadata">

### Author: ![FAHQ-DL-ITASSETMANAGEMENT](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@FAHQ-DL-ITASSETMANAGEMENT](https://www.finalbuilder.com/forums/u/FAHQ-DL-ITASSETMANAGEMENT)
#### Post date: [November 5, 2018, 5:01pm UTC](https://www.finalbuilder.com/forums/t/type-mismatch-action-majorversion/6282/5 "2018-11-05T17:01:44Z")

</div>

OK, thanks. I’ll upgrade after our next release.
