Announcements
Hi all,
Below error is getting when opening Bank Account List in Dynamics NAV 2016.
Error:
Microsoft Dynamics NAV
---------------------------
Hint 'noexpand' on object 'Test.dbo.24 Mantra$Bank Account Ledger Entry$VSIFT$1' is invalid.
Statement(s) could not be prepared.
Page Edit - Bank Account must close.
---------------------------
OK
---------------------------
Thanks in advance,
Srinivas.
Hi Srinivas,
The error message suggests that the NOEXPAND hint has been added to the 'Test.dbo.24 Mantra$Bank Account Ledger Entry$VSIFT$1' Indexed View in SQL Server and this does not work with the Dynamics NAV functionality. Maybe this was added to the indexed view outside of Dynamics NAV, i.e. directly in SQL Server via SQL Server Management studio.
You could try disabling the "MaintainSIFTIndex" property on the relevant KEY in the NAV Development Environment; save the change and then re-enable it again (this should effectively drop/recreate the indexed view without the NOEXPAND hint).
Alternatively, you could try dropping and re-creating this indexed view directly in SQL Server (via SQL Server Management Studio) and removing the NOEXPAND hint that way. Make sure you have a good SQL backup if you choose this option... just in case.
If the problem persists after than then open a support ticket with Microsoft via your Solution Provider or Dynamics NAV Partner.
Hope that helps!
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156