Grooper 21.00.0082 is available as of 12-12-2023! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.00.0042 is available as of 03-22-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.1.0018 is available as of 04-15-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Options
Question: Why can I not Compile my script from 2.60 in 2.70?
rmccutcheon
Posts: 756 ✭✭✭
In a Grooper environment that I upgraded from 2.60 I have a script on my data model. When I go to this script in admin and try to compile it I get these errors below. Why is this and what can I do to fix it?
Error (BC30002) on line 18, column 35 of ScriptingSession.vb
Type 'Grooper.DataModel' is not defined.
Type 'Grooper.DataModel' is not defined.
The compile process was stopped with 1 errors.
0
Best Answer
-
OptionsThe Chuck Posts: 81 modSeveral namespaces have change from Grooper 2.60 to 2.70: e.g. DataModel and BatchFolder have both moved from Grooper to Grooper.Core. It is generally not considered best practice to use fully qualified class/type names (in the attached example, it should be "DataModel" instead of Grooper.DataModel). Especially in this case since we are importing the referenced classes Removing the "Grooper." from "DataModel" will resolve this situation.
Some exceptions regarding the above would be qualifying the name to avoid ambiguity (e.g. "Grooper.Core.DataTable" would be specific, but "DataTable" could be ambiguous with "System.Data.DataTable") or referencing a class once.6
Answers