The table-valued function used as target is not an in-line function.

The operation you are attempting requires an updatable user-defined function (an in-line function), but the function you are using is not updatable. You can replace the function with an updatable one, or you can change the query type to a SELECT query.