$ split returns type missing

$split

Divides a string into an array of substrings based on a delimiter. $split removes the delimiter and returns the resulting substrings as elements of an array. If the delimiter is not found in the string, $split returns the original string as the only element of an array.

Questions:

Why does “$split” return a missing type?
I can’t apply “$size”
How can I convert my “$titulo” variable to array?

Your field is already an array. However a projected field is not available in the stage it is created.

1 Like

Hi @Veronica_Villalpando_Coronel,

If you compute the value of a filed in one $project stage, you can use that newly computed value only in the next $project stage.

Try using another $project stage in the pipeline to get thee desired results.

Please feel free to reach out if you have any questions.

Thanks,
Sonali

Hi, Sonali

This is my final sentence ok, I found the answer

Thanks,
Veronica

Hi, Steeve

This is my final sentence ok, I found the answer

Thanks,
Veronica

Hi @Veronica_Villalpando_Coronel,

I am glad you were able to resolve the issue.

Please feel free to reach out if you have any additional questions.

Kind Regards,
Sonali