How to save Asset field of an Entry programmatically in Craft 3
That's because you have to insert an array of ids rather than a single id

$craftCategoryIds


is an array.

$featureImageId


is an integer. Even if you have just a single element you need to insert an array

'featuredImage' =&gt; [$featureImageId]


will work