Assume that you have Cumulative Update 3, or a later version, for SQL Server 2016 Service Pack 1 installed. If you have a SQL Server Agent job that's running a PowerShell command to enumerate permissions of the database, the job is unsuccessful.
Additionally, you receive the following error message:
Unknown Permission type CRVW
Note Other operations that invoke the EnumDatabasePermissions SMO function may also be unsuccessful and you receive the same error message.
The fix for this problem is included in the following updates:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.