Search This Blog
January 11, 2021
QuickFix : Error on Data entity
December 20, 2020
[Solved] Table browser not working
Hi Folks,
Few days back I got a new dev box which was recently rolled out by one of a colleague. All of a sudden it started behaving strangely. Whenever browsing a table I was getting below error.
Access Denied: You do not have sufficient permissions to open the menu item systablebrowser. Please contact your system administrator.
I double checked all the access, I got full admin access on this server but still same issue. This created more confusion when I was trying to run the debugger, I started getting below error.
Access Denied: You do not have sufficient permissions to open the menu item sysclassrunner. Please contact your system administrator.
So to
overcome this issue, double-check if the developer configuration key is enabled,
in my case it was disabled and that was the root cause of these problems.
Now if you see the message on top of this form (Sysadmin > setup > License configuration) it is saying you cannot edit any record in the form until the server is in maintenance mode.
(See this
link for how
to enable maintenance mode in D365FO)
So first you need to enable maintenance mode on this server and then enable the development key.
Once than done, make sure you disable maintenance mode. And give it a try now, you should be able to browse a table. ( Also, the debugger is working fine as well 😊 )
Merry Christmas to all. Have a great holiday ahead.
-Harry
Follow us on Facebook to keep in rhythm
with us. https:fb.com/theaxapta
December 14, 2020
QuickFix -16:[Solved] ComputedFieldMethod: Method return type of 'ExtendedDataType' is invalid; expected values(s): 'String'
While adding a computed field and creating a method for the same, getting below error for method.
ComputedFieldMethod]:Method return type of 'ExtendedDataType' is invalid; expected values(s): 'String'
Solution: You need to double-check the method signature and it must look like below
public static server str myCal()
{
str mycal;
//Business logic
return mycal;
}
Build your solution and give it a try.
-Harry Follow us on Facebook to keep in rhythm
with us. https:fb.com/theaxapta
November 09, 2020
Build model through command line
Hi Folks,
Below are some useful commands for D365FO.
Get List of all workspace
tf.exe workspaces /owner:* /computer:{Workspace} /collection:https://{TFS}.visualstudio.com
Delete a workspace
tf workspace /server:https://{TFS}.visualstudio.com/defaultcollection /delete "{Workspace};{Owner}"
You need
to out email id of the owner, user id will not work.
compile model
C:\AosService\PackagesLocalDirectory\Bin\Xppc.exe
-verbose -apixref -metadata=C:\AosService\PackagesLocalDirectory
-modelmodule=<model_name> -referenceFolder=C:\AosService\PackagesLocalDirectory
-xreffilename="C:\AosService\PackagesLocalDirectory\<model_name>\<model_name>.xref"
-refPath=C:\AosService\PackagesLocalDirectory\<model_name>\bin
-output=C:\AosService\PackagesLocalDirectory\<model_name>\bin
-log=C:\<log_path>\Dynamics.AX.<model_name>.xppc.log
-xmllog=C:\<log_path>\Dynamics.AX.<model_name>.xppc.xml
compile model best
practices
C:\AosService\PackagesLocalDirectory\Bin\xppbp.exe
-metadata=C:\AosService\PackagesLocalDirectory -packagesRoot=C:\AosService\PackagesLocalDirectory
-module=<model_name> -model=<model_name> -all
-log=C:\<log_path>\Dynamics.AX.<model_name>.xppbp.log
-xmllog=C:\<log_path>\Dynamics.AX.<model_name>.xppbp.xml
compile labels
C:\AosService\PackagesLocalDirectory\Bin\LabelC.exe
-metadata=C:\AosService\PackagesLocalDirectory -modelmodule=<model_name>
-output=C:\AosService\PackagesLocalDirectory\<model_name>\Resources\
-outlog=C:\<log_path>\Dynamics.AX.<model_name>.labelc.log
-errlog=C:\<log_path>\Dynamics.AX.<model_name>.labelc.err
compile reports
C:\AosService\PackagesLocalDirectory\Bin\ReportsC.exe
-metadata=C:\AosService\PackagesLocalDirectory -modelmodule=<model_name>
-LabelsPath=C:\AosService\PackagesLocalDirectory
-output=C:\AosService\PackagesLocalDirectory\<model_name>\Reports\
-log=C:\<log_path>\Dynamics.AX.<model_name>.reportsc.log
-xmllog=C:\<log_path>\Dynamics.AX.<model_name>.reportsc.xml
sync db
C:\AosService\PackagesLocalDirectory\Bin\SyncEngine.exe
-syncmode=fullall -metadatabinaries=C:\AosService\PackagesLocalDirectory
-connect="Data Source=ERP-BL-D-APP-1;Initial Catalog=AxDB;Integrated
Security=True;Enlist=True;Application Name=SyncEngine"
-fallbacktonative=False -raiseDataEntityViewSyncNotification
This post is referred
to here.
-Harry Follow us on
Facebook to keep in rhythm with us. https:fb.com/theaxapta