Am getting error message: object reference not set to an instance of an object. Exception type: System.NullReferenceException. Process: Build a process which downloads an excel attachment from an email, extracts the data from the file and enters it into

Am getting error message: object reference not set to an instance of an object. Exception type: System.NullReferenceException. Process: Build a process which downloads an excel attachment from an email, extracts the data from the file and enters it into

Hi @Midhun_Sundar

Identify the activity or line of code where the error occurs. Review the variables, arguments, or properties being used at that point. Verify that none of them are null or uninitialized, also ensure that the email message and attachment you’re trying to process are not null. Use debugging or logging activities to inspect the email and attachment objects and check if they contain the expected data.

Thanks!

The error message “Object reference not set to an instance of an object” typically means that your code is trying to use something that doesn’t exist or hasn’t been created yet. This happens when a variable or object is not properly set up or assigned a value before it is used.

When running the code, where the automation stops, because of the error, utilize the Locals panel to examine the values of variables in the current scope. Look for any variables that may be null and also used in the activity. Inspect their values.