"Cannot read properties of undefined (reading 'text')"

Hi,

I am running claude prompts and sometimes I get an error:

“Cannot read properties of undefined (reading ‘text’)”

I fix this by deleting this text in the Claude step

In ROLE (dynamic)
[
{
“role”: “assistant”,
“content”: [
{
“type”: “text”,
“text”: “Hello, how are you?”
}
]
}
]

This is a massive time suck with a 100 step automation most of which are claude processing prompts… deleting every role box so I can run test run…

What am I doing wrong? :slight_smile:

1 Like

Can anyone from support help with this? It’s been 7 days and I still have this issue. :slight_smile:

Can you please share a screenshot of the settings, so we can have a steps to reproduce it? I will move it bugs afterwards

1 Like

I have this problem as well.

It is intermittent and only includes Claude’s piece.

I cannot proceed because of this.

Hi @kishanprmr

Let’s take look at this!

same issue here @kishanprmr - please help

Hi All

I am facing a similar issue, but mine says:
Cannot read properties of undefined (reading ‘type’)
So instead of the “text” I am getting the “type” and I am not connecting to Claude, instead to Zoho CRM.
Here is my screenshot:

When I re-test everything in ActivePieces Flows, it all works… But when it is Publish it is giving this error message.

Any advice as to why this is happening it will be welcome.

The ‘Roles’ step has been made optional for the ‘Ask Claude’ step. Recreating the Claude step to reflect these updates will resolve the ‘cannot read properties of undefined’ error.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.