Dynamics AX 2012 – axbuild.exe xppcompileall exception

Having several errors while developing in the development AX environment i decided it was time to do a recompile.

While executing the axbuild xppcompileall command for my AOS it returned the following error in the command prompt.

“Unhandled Exception: System.Runtime.InteropService.SEHException: External Component has thrown an exception. at wmainCRTStartup()”

The application log gave the following information.

“Log Name: Application Source: Dynamics Server Date: 6/3/2016 10:24:30 AM Event ID: 117 Task Category: None Level: Error Keywords: Classic User: N/A Computer: SERVERNAME¬†Description: Object Server 03: The database reported (session 1 (-AOS-)): [Microsoft][SQL Server Native Client 11.0][SQL Server]The EXECUTE permission was denied on the
object ‘XU_GetSchemaVersion’, database ‘AX2012_model’, schema ‘dbo’.. The SQL statement was: “{ ? = CALL [AX2012_model].[dbo].[XU_GetSchemaVersion](?, ?) }””

I connected to the MSSQL server to check my security rights on the model store. For some reason my security rights where deleted from the model database. After i recreated my security rights on the MSSQL server instance it was possible for me to recompile again.


Leave a Reply