Hi guys,
I have a custom form which in it there is process by clicking some button. If I check with few scenario at my DevBox there is no error, but in UAT there is this error : "Object reference not set to an instance of an object"
What is the best way to trace this kind of error ? Since there is no other message, and I can't debug it in UAT. I tried with the same scenario, same data entry, but obviously cannot 100% the exact same data for all the linking when processing the whole relation of it like master data or other configuration.
Thanks,
If it's coming from code, the only way is avoiding the attempt to call method on nothing (null), because it makes no sense and it must fail. Maybe there shouldn't ever be null and there is a bug causing that. Or it may be null in come case and you need to check the value before using it.
Regarding debugging, you can even configure a DEV environment to connect to the database of another (non-production) environment.
Hi Axel, You can restore UAT Database in Dev to replicate issue or another way is to debug UAT environment from your Devbox.
Check this article
aristonjavier.wordpress.com/.../
If even after Database restore, its not replicated then it might be code merge issue, so ensure that your changes are merged & deployed properly in UAT
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156