Jul 04, 2021 09:19 AM
I am having major problems all of the sudden with a link field automation that uses a date.
Let me start by saying if I copy and paste my date from one table into the link field it works fine.
If I try to do it via. Automation I keep getting an error that says this field can not accept that input.
Seems to be a recent problem. Any help? This is breaking a ton of stuff for me.
Jul 04, 2021 02:11 PM
If the automation is pulling directly from a date field, that could explain the problem. My gut says that Airtable is complaining about inserting the underlying datetime data into the link field, but when copying and pasting manually there’s an automatic conversion to text that’s happening in the pasting process.
The quickest way that I can think of to solve this is to make a formula field that formats the date as you wish, then tweak the automation to copy that formatted date into the link field, which should work without errors.
Jul 04, 2021 04:01 PM
How do I format it as m/d/yyyy I’ve tried that and it still fails.
Jul 04, 2021 04:17 PM
I tried to replicate this issue as I understand it (well or not) and got the same failure. Doesn’t a link field expect an array (whether it’s a single or multiple)? Does the copy/paste automatically cast the pasted value(s) to an array format whereas the automation doesn’t?
I don’t know but am curious.
Jul 04, 2021 05:00 PM
This is so frustrating for multiple reasons.
Jul 04, 2021 06:55 PM
When setting the link options via JavaScript, it does. Specifically, it must be an array of objects pointing to specific record IDs. I haven’t tried to set links via an automation that often, but the few times that I have, I’ve used a record ID, so maybe they’ve begun enforcing that method across the board.
@Jason_F If it was working before and has only recently begun failing (I believe you said this in your original post, but I somehow glossed over that point), I recommend contacting Airtable support directly.
Jul 05, 2021 07:56 AM
Thanks Justin.
I can’t use the record ID because it doesn’t know what that is yet.
The date or value is what will link the record as that’s the known fact.
Jul 05, 2021 08:47 AM
I would contact Airtable support as well. However, would it be possible to add another action in your automation that creates the record in the second table, assigns the date from the current table to the primary field, then uses the record id for that newly created record in a following update record action that assigns the created record id to the link field?
Not sure as I’ve never tried. Let us know how it works out.
Jul 05, 2021 01:07 PM
It will not even accept the record ID at this point. I have no updated it so it brings in the date once but will not accept it back in another field.
Jul 05, 2021 01:19 PM
That’s very odd. Could you share a screenshot of how you’re setting this up to pass the record ID?