$ 0 0 OK...I can;t remember the whole story here, but as a start that error about @PortalID should not happen with the default SQL reports for NB_Store. Can you post the SQL for the report that is going wrong!