Forum Discussion
You can check if a property exists by using the hasPath() method. In this example, the previous snap only passed an element called, fileDate. The element, noSuchProperty, was not passed into the snap.
Alternatively, depending on what you ultimately want to achieve, you might also want to use the get() method. This method will check to see if your element exists. If it does, then the element will be evaluated and its value will be passed into your target path. If it does not exist, then a null value will be passed into your target path.
Using these suggestions might fit into the constraints of the Data Validator snap, but I think it would give you what you’re looking for.
Thanks a lot - while it did require quite some refactoring (the pipelines should use accounts, not a variable as token, there is a lot of complexity reduction possible with the shared pipelines) - this is what we were looking for to get started, so i’m happy to say - after half a days worth of work - this is now in production and running our “nightly export”.
Related Content
- 2 years ago
- 9 months ago
- 2 years ago
- 2 years ago