web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Compilation ERROR for Startup Script ( Type incompatibility 'Script Function Trigger_RegisterFocus, Parameter #1'.)

(0) ShareShare
ReportReport
Posted on by 185

Hi,

I am getting errors while compiling my scripts in DEXTERITY UTILITIES, 

while there are no problems while compiling in DEXTERITY

when i open my report file i have following errors

Startup 4 errors, 1 warnings
Line 8, Error: Unknown Identifier 'RM_Cash_Receipts'.
Line 8, Error: Unknown Identifier 'RM_Cash_Receipts'.
Line 8, Error: Unknown Identifier 'Apply Button'.
Line 9, Error: Type incompatibility 'Script Function Trigger_RegisterFocus, Parameter #1'.

Here is my Startup Script

local integer l_result;


l_result = Trigger_RegisterFocus(anonymous('Apply Button' of window RM_Cash_Receipts of form RM_Cash_Receipts),
TRIGGER_FOCUS_POST, TRIGGER_AFTER_ORIGINAL, script CALL_APPLY);
if l_result <> SY_NOERR then
warning "Failed to register CALL_APPLY . Error #:" + str(l_result);
end if;

CALL_APPLY script

warning "Success";

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mariano Gomez Profile Picture
    26,225 on at
    RE: Compilation ERROR for Startup Script ( Type incompatibility 'Script Function Trigger_RegisterFocus, Parameter #1'.)

    Why in the world would you want to compile the scripts via Dex Utils? Once your dictionary has been extracted, there is no reference to the Dynamics GP objects anymore, until the final chunk dictionary is put into an environment where Dynamics GP is installed. You can only compile scripts that refer to your own objects in Dex Utils, but this is extremely rare that you would need to do this.

    The best practice is to compile the ENTIRE dictionary in Dex prior to extracting your code with Dex Utils.

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans