Google Maps Acitivity in UiPath - Object reference not set to an instance of an object

Hi,

I have tried to access the Google map using Uipath, but got an error.

"Get Distance and Duration: Object reference not set to an instance of an object. "

Enabled All APIS

  • Directions API

  • Distance Matrix API

  • Geocoding API

  • Geolocation API

  • Maps Elevation API

  • Maps Embed API

  • Maps Static API

  • Places API

  • Roads API

  • Street View Static API

  • Time Zone API

Hi @Lucia_Singarayar,

Please check your variables. It seems that one of them is null.

Hi @Lucia_Singarayar,

This issue normally occurs when a variable has not been initialised (hasn’t been given a value). Try using an Assign before the activity like this:

MyVar = ""

Thanks William. but its not working

Hi @Lucia_Singarayar,

What variable type is your variable?

This video is useful to understand how to do it.

Hello what type should the variable have ?