Hey I'm working with the pinterest ads tap and I'm...
# troubleshooting
d
Hey I'm working with the pinterest ads tap and I'm having some issues with the date format for one of the columns. The current output from the api is
"2021-09-02"
, but I'm getting this error when I try to send it to my target
Expected [yyyy-MM-dd'T'HH:mm:ssZ, yyyy-MM-dd'T'HH:mm:ss.[0-9]{1,9}Z]\n#/DATE: expected: null, found: String\n"}
. Is there supposed to be some transformation happening, or is that on me? Does anyone have experience with this?
g
can you see which stream is emitting this? which target? I've been running it into snowflake and jsonl
e
@dennis_dinwiddie what's the declared JSON type of that field?
d
The stream is
ad_analytics
and the schema is
Copy code
"DATE": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
I'm testing with the stitch target
g
hmm do the dates emitted from the tap have to be in yyyy-MM-ddTHHMMSSZ format? 🤔
g
updated on this branch if you wanna try: https://github.com/GtheSheep/tap-pinterest-ads/tree/dates
d
Wow that was fast
I'll test it now
g
I missed the "Z" in the first commit, have added it now 😅
d
Alright looks good on my end!
Thank you so much! Until next time...
g
👌 I'll test it out with json/snowflake tomorrow and update main
I imagine account analytics stream will have the same issue just FYI