After upgrading NetVault from 14.0.x to 14.1.x, several reports are failing with "Failed when producing report: Failed to work out fields required by report (Cannot interpret fields required to output report)".
Media Management reporting views are missing. Examples include:
media_viewrasdevices_viewsegments_viewAs a result, report generation fails.
This issue occurs due to a PostgreSQL limitation:
CREATE OR REPLACE FUNCTION cannot change the return type of an existing function
During the upgrade process:
create_views.sql begins execution.CREATE VIEW statements.
This results in multiple required reporting views not being recreated.
Run the following command from:
...\NetVault\pgsql\bin\psql.exe" -U postgres -p 51486 -d netvault_mediamanagement -c "DROP FUNCTION IF EXISTS get_max_retire_time_for_media(bytea) CASCADE;
Run the NetVault utility:
"C:\Program Files\Quest\NetVault\util\nvaddcannedreports"
create_views.sql script.
A permanent fix for this issue is included in:
NetVault Core 14.2