I am having troubles with this bit of code: index( ri!arrayOfCom

I am having troubles with this bit of code:
index(
ri!arrayOfComponent,
wherecontains(
ri!arrayOfProduct[ri!index].id,
ri!arrayOfComponent.FK_productId
),
{}
),
It generates an error for which I don't really get the reason
a!applyComponents [line 25]: Invalid index: Cannot index property 'FK_productId' of type Text into type List of Variant

this FK_productId is an Integer type in the arrayComponent CDT so I don't understand why it says it is a text.

I've tryed tointeger and tostring casts to solve with no result
thanks

OriginalPostID-207016

OriginalPostID-207016

  Discussion posts and replies are publicly visible