Sep 13, 2023
1 min read

NAV2018 : 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.
Share:

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.

Related Posts