Skip to main content
Solved

Following DATETIME_FORMAT with field names


Hi Airtable Friends,

I want to combine four things in my primary field: (1) Story ID#, (2) Date, (3) Storyteller, and (4) Story Title – all separated by a " - ", of course. I was able to get the first two things with this formula:

({Story ID#} & " - " & DATETIME_FORMAT(Received, ‘DD/MM’)) & " - "

But when I follow this up with {Storyteller} & " - " & {Story Title}, I get a message that says: “Sorry, there was a problem saving this field. Can’t save field because it causes a circular reference.” To be clear, here’s the full formula that keeps getting rejected:

({Story ID#} & " - " & DATETIME_FORMAT(Received, ‘DD/MM’)) & " - " {Storyteller} & " - " & {Story Title}

I’ve tried a number of variations using parenthesis and curly brackets, but always get the “sorry” message. Grateful to anyone who can help me get past this irksome obstacle!

Best answer by Jeremy_Oglesby

Out of curiousity, @Alba_Machado, can you try copy/pasting this and see what happens?

T({Story ID#}) & 
" - " & 
DATETIME_FORMAT(Received, 'DD/MM') & 
" - " & 
T({Storyteller}) & 
" - " & 
T({Story Title})
View original
Did this topic help you find an answer to your question?

22 replies

Hi @Alba_Machado
You’re just missing 1 single & :slightly_smiling_face:

This should work for you:

{Story ID#} & " - " & DATETIME_FORMAT(Received, 'DD/MM') & " - " & {Storyteller} & " - " & {Story Title}

Every new statement in there, whether it’s a reference to a field, or a string enclosed in "...", needs to be concatenated, or “added on” to the end of the chain with a new & symbol. You were just missing one in-between the second " - " and {Storyteller}.


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Jeremy_Oglesby wrote:

Hi @Alba_Machado
You’re just missing 1 single & :slightly_smiling_face:

This should work for you:

{Story ID#} & " - " & DATETIME_FORMAT(Received, 'DD/MM') & " - " & {Storyteller} & " - " & {Story Title}

Every new statement in there, whether it’s a reference to a field, or a string enclosed in "...", needs to be concatenated, or “added on” to the end of the chain with a new & symbol. You were just missing one in-between the second " - " and {Storyteller}.


Alas, it did not work for me. :slightly_frowning_face: But thanks for taking a crack at it!


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Jeremy_Oglesby wrote:

Hi @Alba_Machado
You’re just missing 1 single & :slightly_smiling_face:

This should work for you:

{Story ID#} & " - " & DATETIME_FORMAT(Received, 'DD/MM') & " - " & {Storyteller} & " - " & {Story Title}

Every new statement in there, whether it’s a reference to a field, or a string enclosed in "...", needs to be concatenated, or “added on” to the end of the chain with a new & symbol. You were just missing one in-between the second " - " and {Storyteller}.


Oh, I should have explained: I got the exact same “sorry” message.


Alba_Machado wrote:

Alas, it did not work for me. :slightly_frowning_face: But thanks for taking a crack at it!


Ah! It was bad quotes too – I updated my formula above to remove the bad quotes; can you try it again?


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Jeremy_Oglesby wrote:

Ah! It was bad quotes too – I updated my formula above to remove the bad quotes; can you try it again?


Tried again and this time it’s “invalid formula.” Checked, and that was actually the “sorry” message the last time, too. So it didn’t repeat exactly the same message, but it still doesn’t work.


Alba_Machado wrote:

Tried again and this time it’s “invalid formula.” Checked, and that was actually the “sorry” message the last time, too. So it didn’t repeat exactly the same message, but it still doesn’t work.


Ok, let’s take a look at the DATETIME_FORMAT() function then – that seems the most likely culprit here. I’m looking at docs and will post back.


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Jeremy_Oglesby wrote:

Ok, let’s take a look at the DATETIME_FORMAT() function then – that seems the most likely culprit here. I’m looking at docs and will post back.


Thanks so much! I’ve been digging around too because I’ve never had trouble before trying the DATETIME_FORMAT function


Hmm - your formatting there seems ok. And everything else about the formula looks right.

When you tried the formula that I posted above, did you copy the entire formula out of the code box that I posted? If not, can you try clearing your formula editor entirely and paste in my formula exactly as it is in that code box?


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Jeremy_Oglesby wrote:

Hmm - your formatting there seems ok. And everything else about the formula looks right.

When you tried the formula that I posted above, did you copy the entire formula out of the code box that I posted? If not, can you try clearing your formula editor entirely and paste in my formula exactly as it is in that code box?


I did the first time, but I tried again just now in case I slipped up somehow. And still no. :anguished:


Alba_Machado wrote:

Oh, I should have explained: I got the exact same “sorry” message.


Are any of the following fields also Formula fields?

  • {Story ID#}
  • {Storyteller}
  • {Story Title}

Can you give the formula expression for them?
You might have a circular reference (directly or indirectly) between fields that’s causing the error.


Rey_Crisostomo wrote:

Are any of the following fields also Formula fields?

  • {Story ID#}
  • {Storyteller}
  • {Story Title}

Can you give the formula expression for them?
You might have a circular reference (directly or indirectly) between fields that’s causing the error.


Usually Airtable throws a specific “Circular Reference” error for that. But definitely worth double checking on those field references, because everything else about the formula looks right.

@Alba_Machado - and here I thought this was a simple little fix. I’m kind of stumped right now lol.


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Rey_Crisostomo wrote:

Are any of the following fields also Formula fields?

  • {Story ID#}
  • {Storyteller}
  • {Story Title}

Can you give the formula expression for them?
You might have a circular reference (directly or indirectly) between fields that’s causing the error.


Storyteller is a linked field, but I removed it from the formula and even with just Story Title, which is just single line text, it still doesn’t work.


Alba_Machado wrote:

Storyteller is a linked field, but I removed it from the formula and even with just Story Title, which is just single line text, it still doesn’t work.


What kind of field is {Received}?


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Jeremy_Oglesby wrote:

What kind of field is {Received}?


{Received} is a Created Time field


Out of curiousity, @Alba_Machado, can you try copy/pasting this and see what happens?

T({Story ID#}) & 
" - " & 
DATETIME_FORMAT(Received, 'DD/MM') & 
" - " & 
T({Storyteller}) & 
" - " & 
T({Story Title})

  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Jeremy_Oglesby wrote:

Out of curiousity, @Alba_Machado, can you try copy/pasting this and see what happens?

T({Story ID#}) & 
" - " & 
DATETIME_FORMAT(Received, 'DD/MM') & 
" - " & 
T({Storyteller}) & 
" - " & 
T({Story Title})

“Circular reference” again


Alba_Machado wrote:

“Circular reference” again


Ah, so it IS a circular reference error!


Alba_Machado wrote:

“Circular reference” again


Can you try and delete this line:
T({Storyteller}) &


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020

Deleting the T({Storyteller}) line did the trick! Now I’ll just have to figure out how to get the author’s name in there. Maybe using a Lookup instead of the Linked


Alba_Machado wrote:

Deleting the T({Storyteller}) line did the trick! Now I’ll just have to figure out how to get the author’s name in there. Maybe using a Lookup instead of the Linked


Is {Storyteller} a formula field in the linked table? And does that formula somehow refers to a field in the table where your problematic formula is located?


  • Author
  • Known Participant
  • 12 replies
  • June 12, 2020
Rey_Crisostomo wrote:

Is {Storyteller} a formula field in the linked table? And does that formula somehow refers to a field in the table where your problematic formula is located?


Just realized I could go with the “Name” Single Line Text field that’s connected to the form. Duh. Works like gangbusters now. Thanks, guys! :heart_eyes:


kuovonne
Forum|alt.badge.img+17
  • Brainy
  • 5995 replies
  • June 12, 2020

You mentioned in your first post that you have a circular reference.

The support article on common formula errors includes info on circular references.


Reply