Subscription Initialization throws Error "The option "INLINE=ON" is not valid for this function" which is incorrect
Refer this article The only solution worked for me was drop and recreate the UDF after upgrading to SQL 2019.
The inline_Type column from Sys.sql_modules will be 1 after your upgrade to SQL 2019.
After you drop and recreate the UDF, the Inline_type will be 0 and the replication initialization works fine.