Write Line Activity


I keep getting this error when I run the write line activity [Write Line: Object reference not set to an instance of an object.] I have checked all variables and they are in the correct scope. Is there a way to solve this?


Hi @lq_c

The variable that you are trying to use in write line is empty or not intialize…first check using isnothing(variablename) this will say if variable is null or not…and write line only if this returns false


HI @lq_c

First thing you need to check the variable is declarer properly. If you declarer correctly this error will not appear.

Can you check out the variable?


Hello @lq_c

Can you please share the screenshot of the write line activity? Also are you trying to use a varibale or any argument?

Usually this error occurs if the variable is not declared properly.



Your variable is not initialized i think. Please check it.