Select to view content in your preferred language

Pulldata@layer TypeError: Cannot call method 'toString' of undefined in expression

248
1
03-13-2025 08:02 AM
PanGIS
by
Frequent Contributor

Hello!

 

Error when using pulldata@layer.

I've use this function so many times that I am lost, I don't know what to look for. Because I do not see any wrong, any difference from other forms that work.

I also copied the calculation from the Survey template to be 110% sure.

 

my calculation:

pulldata("@layer", "getValueAt", "name", 'https://services......./FeatureServer/0', ${polygon})

 

TypeError: Cannot call method 'toString' of undefined in expression: pulldata("@layer", "getValueAt", "attributes.name", 'serviceURL/FeatureServer/0', /xyzx

The polygon is a geoshape question.

I tested with more that one layer, from 2 different orgs, different level of sharing till public  even if I am the owner of the layer and admin too.

I was working with Connect 3.20, now upgraded to 3.22, same output.

 

Thanks!

Tags (2)
0 Kudos
1 Reply
Roman_Giant
New Contributor

Hi,

Were you able to resolve this?   I too am getting the same error.   I have a polygon geoshape question.   The user draws a polygon (project area) which always overlaps a street layer (line).    I am trying to pull the street name that the project area overlaps and put it into the project table.  

0 Kudos