NAV2018 : DotNet Variable Has Not Been Instantiated

DotNet Variable Has Not Been Instantiated

I recently encountered this issue with NAV2018 OnPrem relating to a DotNet variable that has yet to be instantiated. This error usually happens when you haven’t initialised the constructor. To fix this issue, perform an ISNULL check and initialise the constructer. Here is an example of the code.

if IsNull(HttpWebResponse) then
   HttpWebResponse := HttpWebResponse.HttpWebResponse();

I hope that helps you if you have the same issue with NAV2018.

thatnavguy

Experienced NZ-based NAV Developer and Consultant with 15+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. Passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *