Describe the problem/error/question
I’m looking up rows in a google sheet that have empty gpslat and gpslon fields. They are represented coming into the filter like this:
{
"row_number":
9,
"address":
"1210 Danforth Ave",
"gpslon":
-79.3318173,
"gpslat":
43.6817327499999
},
The filter is checking to see if gpslon is empty as a string, but it’s returning all the records with row_number and address being the same, but gpslat and gpslon as empty strings for some reason.
{
"row_number":
9,
"address":
"1210 Danforth Ave",
"gpslon":
"",
"gpslat":
""
},
It’s changing records. It’s completely misbehaving.
What is the error message (if any)?
No error messages. Just modifying incoming json objects which is not what this node should do.
Please share your workflow
It’s a filter node. Input jason as above. Output as above. This single node is the problem.
Share the output returned by the last node
[
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
},
{
"row_number":
28,
"address":
"1205 Queen St W #3",
"gpslon":
"",
"gpslat":
""
}
]
Information on your n8n setup
-
n8n version:
-
1.81.4
-
Database (default: SQLite):
Google Sheets, but SQLite for the log apparently. I don’t look at it. -
n8n EXECUTIONS_PROCESS setting (default: own, main):
main -
Running n8n via (Docker, npm, n8n cloud, desktop app):
npm no docker. -
Operating system:
Almalinux 9 headless