Error on encountering blank data from API
Options
![Marwan Rateb](https://us.v-cdn.net/6037124/user_avatars/1358771.jpg)
Marwan Rateb
Member ✭
I am importing information in a smartsheet table and populating a xano database with that information using an API.
When Xano encounters a blank cell in Smartsheet, it errors out and doesn't complete adding any more records to my database.
[image.png]
I tried adding a get filter to default null values, I'm not sure if I did it right.
[image.png]
Any ideas what I'm doing wrong?
Thanks!
When Xano encounters a blank cell in Smartsheet, it errors out and doesn't complete adding any more records to my database.
[image.png]
I tried adding a get filter to default null values, I'm not sure if I did it right.
[image.png]
Any ideas what I'm doing wrong?
Thanks!
Comments
-
Hey Marwan,
A get filter just needs the path.
So your top entry would be just var:row instead of var:row.cells.1.value
Then your path value inside the get filter would be "cells.1.value"
Try that and let me know if it works. -
did that help solve you running into an error? It's possible that depending on the response you do (or rather don't) get back from your external API, you may need to create some conditional logic to tell your Function Stack what to do if something doesn't exist.
I can try to help pinpoint an example of this from your API if it's needed? -
Thanks Michael & Sean,
It worked!
[image.png]
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback