Should a Datastore Return 0 for a Specific Key Instead of "No Data Found" Message?

This topic was automatically generated from Slack. You can find the original thread here.

Hi - I have a data store where I’m storing integer values for each key. I notice if the value is 0 for a specific key, then the datastore returns "No data found for key, xx" similar to if they key was not present. Is that the expected behavior? I would think it would return 0 similar to how it would return any other integer value

Hi , thanks for reporting, I will try to reproduce your issue and get back to you

thank you!

Basic example where “Bound” key shows not found when using the built in datastore "“get_record_or_create” step

Hi , I can reproduce your issue! I have created an issue here to track it and added to Pipedream prioritized backlog: [BUG] Datastore - Get or create record returns `No data found for key` when the value is 0 · Issue #7187 · PipedreamHQ/pipedream · GitHub

Kindly subscribe to the ticket to be noticed when you have time

great, thanks!

For now as a workaround, you can use the action Check for existence of key. It should show the result existingKeyFound: true for Key B

sounds good, ty