EVD export to SQL CALog table will result in Bulk load data conversion error and stopping the whole log import process

EVD export to SQL CALog table will result in Bulk load data conversion error and stopping the whole log import process

95
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:05 PM


Symptom


EVD export to SQL CALog table will result in Bulk load data conversion error (type mismatch or invalid character for the specified codepage) and stopping the whole log import process



Environment


14.0 Privileged Access Manager (PAM, self-hosted) Export Vault Data Export Vault Data Other

Cause


With the latest release of Self hosted EVD 14.0, we have changed the mechanism of importing data from the exported csv files to the MSSQL database server using T-SQL instead of BCP commands.

In addition, we have also changed the script type for CAMSSQLImport from using command prompt (cmd extension) to signed powershell (ps1).

The issue is with the -ErrorAction 'Stop' arguments that was scripted in the CAMSSQLImport.ps1 that would cause the csv to MSSSQL import process through T-SQL batched sql statements to fail and exit unexpectedly upon encountering any error during the bulk insert SQL.



Resolution


Workaround:

Update the -ErrorAction 'Stop' to other values ('Continue' or 'SilentlyContinue' or 'Ignore') to allow the powershell program to continue to run upon encountering import errors.

 

Note: EVD version 14.2 is expected to be enhanced with Multi language codepage support and database column size adjustment which will minimize/avoid the occurrences of a bulk import failure. 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001JOpCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail