x++


How can you get a detailed error descriptions in Dynamics AX?


When doing many different (obviously) wrong things in A++ syntax I only get "Syntax error" in Description and some number (Err:9999) in Diagnostic ID. This does not help me at all finding out whats wrong so I can fix it. No hint, no nothing!
This is compile time syntax errors that the IDE should just hand to me.
So how can I get more detailed information about what is wrong?
There is no way of showing more information that this "Syntax error" for that error type. Almost always is a missing semicolon or brackets dispaired.
When you doubleclick on a syntax error line in the compiler output window, the code editor window opens and displays the code with the syntax error. The part of the code with the error is marked with a red squiggly underline and the cursor is placed at the start of the syntax error. This should make it easy to find out what is wrong.
In addition to what j.a.estevan suggested, in my experience syntax errors also occur because
you forget the second = symbol in the where part of a select statement
you unintentionally add a second = symbol when assigning the value of a variable
you delete a variable in the classDeclaration of a class/form, but it is still used in one of the methods
a macro is changed/deleted
an object is changed/deleted and the cross references were not up to date or not checked

Related Links

x++ cannot read registry entry
How do I get the caller Form's name in the Insert() of a table in AX 2012?
How to lookup into another table using EDT AX 2012
Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break

Categories

HOME
porting
spark-streaming
string
formal-languages
mstest
sitecore
package
sublimetext
cublas
nested-if
spring-session
nuget-package
iis-6
jax-ws
openstreetmap
project-intu
filechannel
endpoint
cumulocity
xmonad
dataflow-diagram
xunit
flooding
userdefaults
aws-codecommit
kodi
playstation-portable
papaparse
activexobject
sharding
yowsup
lubridate
recurrent-neural-network
attributeerror
datacachefactory
magento-2.0.7
dbcontext
quicktime
structuremap4
filenet
choice
usart
flex-monkey
builtins
x-tag
firebase-security
observablecollection
nss
character-replacement
linklabel
xenomai
canalyzer
ember-cli-rails
typemock
rdflib
botan
omnifaces
zxspectrum
at-job
execve
administration
psr-4
cbind
encryption-asymmetric
angular-carousel
matrix-inverse
draw2d-js
mutual-authentication
authlogic
ora-06550
bin
gd-graph
booksleeve
dopostback
redis-py
saleslogix
cross-database
landscape-portrait
w3c-geolocation
codebase
qglwidget
instantiationexception
jqueryform
opml
filesystemobject
escrow
xpsdocument
wysiwym

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App