Tuesday, 9 September 2014

Missing Labels in infolog and message box

Missing Labels

I have worked on a weird issue where labels are found missing on infolog and message box.  It works for few users and not for few.  There was only one AOS installed/configured for the environment.  There has been many ways to troubleshoot this issue especially where there is more than one AOS configured for the environment.  


But here the case is bit different as we have only one AOS configured.

Finally, we found the problem is due to different language associated to certain users where labels are missing, as the labels were not created for the respective language.

Simple solution, but effective!!!  Have fun :)


Monday, 8 September 2014

Debugging

Debugging

Many a times, we end up putting the debugger on certain X++ code and getting frustrated that the debugger is not up during the execution.  For example, while debugging Wizard based development code, Reports, etc.  There are many ways to handle this situation.  One of the easiest ways is use the keyword "breakpoint;" instead of marking the line by hitting F9 for debugging.

BP deviation - Only foreign key constraints are allowed on this table

BP deviation - Only foreign key constraints are allowed on this table.

Often times, we end up getting this BP violation message when we run the BP check on the tables.
Here is the resolution,

  • Check if you have created new relation for the table
  • If yes, check how the relation was created - relation got created automatically by the system just by adding a new field, or was it created manually.
  • This BP message comes when you create relation manually especially if you have created Normal relation
  • Avoid creating the normal relation, use ForeignKey relation instead.
  • Delete the one which is already created thru Normal relation and create newly thru ForeignKey relation.


This should fix the above BP violation.