Database collation setting - app install
When creating an app for BC of NAV2018 - do we have to use the same collation settings as the demo cronus db ? We've made a local db Latin1_General_100_CI_AS in stead of Latin1_General_100_CS_AS (like cronus). Everything works fine except when installing Image Analyzer app we have error : The following SQL error was unexpected: Cannot resolve the collation conflict between "Latin1_General_100_CI_AS" and "Latin1_General_100_CS_AS" in the equal to operation.
@Phfo This is a platform issue around the tables/table extensions added by an extension package not responding to collation changes to the NAV database.
I was able to reproduce this error when I did the following:
- Create NAV Application & Tenant databases with the 'original' collation (CS & AS)
- Publish & Synchronize the Image Analyzer extension to the tenant database
- Change the collation of the NAV Application database (Change to CI)
- Synchronize the tenant database (should 'pickup' the collation change)
- Try to install the Image Analyzer extension
NOTE: This isn't a problem with the 'Image Analyzer extension' explicitly, it should happen with others that also add new tables/table extensions.
I was, however, able to fix this by 'resyncing' the Image Analyzer extension's schema via cmdlets. WARNING: this will remove any/all data within the 'Image Analyzer' tables for all versions of the extension
Sync-NavApp -ServerInstance <server> -Tenant <id> -Name 'Image Analyzer' -Mode Clean
Sync-NavApp -ServerInstance <server> -Tenant <id> -Name 'Image Analyzer'
This recreates the extension tables in SQL with the 'proper' collation and everything was 'o.k.' at that point.
There is some large up coming work around Collation in general in the platform and so the decision at this point is to completely block collation changes when any extensions are synchronized to a database until those changes are finalized.