Dynamics 365 error messages point you in the right direction
“If your mind is empty, it is always ready for anything, it is open to everything. In the beginner’s mind there are many possibilities, but in the expert’s mind there are few. ” ― Shunryu Suzuki
Dynamics 365 error messages point you into the right direction but never give you the answer #HoskCodeWisdom
A developer was working on a Dynamics 365 form, it was generating an error saying the context was null when you deleted a value from a field. The developer was investigating the problem by trying the different routes through the code by changing values on the form, sometimes it errored and other times it worked.
The developer felt frustrated because they had copied the code from another area and it worked there
The error was — Unable to get property “getAttribute” of undefined or null reference
The error was occurring in a function which passed the context into the function, read about the
The developer had copied, pasted and adjusted the code, he was focusing on comparing the code and fixing a problem, he was ignoring the error message.