CMS Development

Kevin-C
Especialista reconhecido(a) | Parceiro
Especialista reconhecido(a) | Parceiro

postal_location retuning inconsistent values

Hey all!

 

I'm having issue getting the postal_location function to return consistent value when inside a loop.

What I mean by that is:

 

{{postal_location(33431)}}

 

Returns:

 

LatLon{latitude=26.3799, longitude=-80.0975}

 

as expected.

 

But when in a loop:

 

{% for comp in companys %}{# companys is an iterable dict w/ zip code #}
  {{postal_location(comp.zip)}}
  {{postal_location(comp.zip, 'us')}}
{% endfor %}

 

Returns:

 

LatLon{latitude=0.0, longitude=0.0}
LatLon{latitude=0.0, longitude=0.0}

 

 

See the output below:

Screen Shot 2021-07-21 at 3.40.29 PM.png

Top value is outside the loop

Highlighted value is inside the loop.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Avaliação positiva
4 Respostas 4
Kevin-C
Especialista reconhecido(a) | Parceiro
Especialista reconhecido(a) | Parceiro

postal_location retuning inconsistent values

As you can see in the screen shot sometimes the expected value is return, and sometimes not.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Avaliação positiva
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

postal_location retuning inconsistent values

@Kevin-C , looks like you have a support ticket in as well that is being looked at by the product team.  Mind adding the solution here when they respond 😀

Kevin-C
Especialista reconhecido(a) | Parceiro
Especialista reconhecido(a) | Parceiro

postal_location retuning inconsistent values

@dennisedson  Absoluetly!

Also i was going to post up on the slack but wasn't sure what channel to use! Any suggestions?

 

Its starting to feel like a bug but not quite ready to jump on that train just yet!

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

postal_location retuning inconsistent values

@Kevin-C , the hubl channel seems like a good place to start.

Yell at me if you need some assistance with support 😉