# Distance and time fields are null in the output of Matrix From Layer algorithm of ORS Tools plugin in QGIS

**URL:** <https://ask.openrouteservice.org/t/distance-and-time-fields-are-null-in-the-output-of-matrix-from-layer-algorithm-of-ors-tools-plugin-in-qgis/2376>\
**Category:** QGIS\
**Created:** [December 21, 2020, 8:21pm UTC](https://ask.openrouteservice.org/t/distance-and-time-fields-are-null-in-the-output-of-matrix-from-layer-algorithm-of-ors-tools-plugin-in-qgis/2376 "2020-12-21T20:21:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elham](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@Elham](https://ask.openrouteservice.org/u/Elham)\
**Post date:** [December 21, 2020, 8:21pm UTC](https://ask.openrouteservice.org/t/distance-and-time-fields-are-null-in-the-output-of-matrix-from-layer-algorithm-of-ors-tools-plugin-in-qgis/2376/1 "2020-12-21T20:21:07Z")

</div>

I tried to calculate the travel distance and the travel time using Matrix From Layer algorithm of the ORS Tools plugin in QGIS, but in the attribute table of the output, the duration and distance columns are null. Can someone please help me with solving this problem?

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [December 22, 2020, 5:51pm UTC](https://ask.openrouteservice.org/t/distance-and-time-fields-are-null-in-the-output-of-matrix-from-layer-algorithm-of-ors-tools-plugin-in-qgis/2376/2 "2020-12-22T17:51:13Z")

</div>

Hi @Elham,

The matrix returns 0 by default if a route could not be found.  
This can be the case if the maximum distance for the rout-profile combination is exceeded or the rout could just not be found.
