Skip to main content

Notifications

Announcements

No record found.

Dynamics Business Central migration forum
Suggested answer

Invoke-NAVSanitizeField fail

Posted on by 34
Hi everyone I have been trying to run the function to sanitize the data of a BC onprem instance but I always get the same error, is there something I am missing.
The intention of all this is to migrate from onprem to online and this is one of the recommended steps to do before doing the migration.
 
 
PS C://windows//system32> $result = Invoke-NAVSanitizeField -ServerInstance BC230 -Tenant default
WARNING: UnhandledErrorMessage
Invoke-NAVSanitizeField : Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in
ClientOptions.RetryPolicy.
At line:1 char:11
+ $result = Invoke-NAVSanitizeField -ServerInstance BC230 -Tenant defau ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-NAVSanitizeField], AggregateException
    + FullyQualifiedErrorId : System.AggregateException,Microsoft.Dynamics.Nav.Management.Cmdlets.InvokeNAVSanitizeField
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 14,613 User Group Leader on at
    Invoke-NAVSanitizeField fail
    Hi,
     
    Did you upgrade to BC230 on prem, or you implemented BC 230?
     
    If you have implemented, then you don't have to worry about that step. 
     
    Invoke-NAVSanitizeFields is only required when data is inserted from SQL (for NAV 2013 or higher).
    Pre NAV 2013 even data in application is not clean.
     
    In summary - 
    1. If you implemented in BC 15 or higher then skip this step.
    2. If you upgraded from NAV 2013 or higher and never inserted data from SQL then you can skip this step.
    3. If you upgraded from NAV 2009 or before then step is mandatory.
     
    Hope it helps.
     
    Regards,
    Saurav Dhyani

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans