EVD: Export to SQL Server fails with error "The transaction log for database 'CyberArk' is full due to 'ACTIVE_TRANSACTION'"
105
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:53 PM
Symptom
When using EVD (Export Vault Data) to perform large exports to SQL Server (such as the LogList or EventsList report), the process to import to SQL Server might fail with the following error:
Error = [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]The transaction log for database 'CyberArk' is full due to 'ACTIVE_TRANSACTION'.
This error may be seen in the BCP logs under the EVD's installation directory. Look for folders under this directory with a "DD-MM-YYYY_HH-MM-SS" formatted timestamp.
Environment
10.10;11.1;11.2;11.3;11.4;11.5;11.6 EVD exporting to Microsoft SQL Server
Cause
This error is most likely thrown due to SQL Server transaction log running out of space. EVD uses SQL Server's BCP utility (Bulk Copy) to import data from CSV files into the SQL Server database. By default, BCP will attempt to import all data in one transaction, which requires a very large amount of free disk space (depends on the CSV file size that is being imported).
Resolution
To resolve, you may either add more space to the disk containing the SQL Server transaction log or make the following edit to the "CAMSSQLImport.cmd" script in the EVD installation folder, which will limit the amount of rows per transaction when using BCP:
- Find this line near the bottom of the script:
bcp [%Database%].[%TableOwner%].[CA%1] in %2 -S%3 -T -c -C RAW -t %4 -k -m%6 -b%6 -o %BCPOutFile% -e %BCPErrFile% -R
- Add the "-b {numberOfRows}" parameter to the end of the command. Try using smaller amounts of rows if the import to SQL Server is still failing:
bcp [%Database%].[%TableOwner%].[CA%1] in %2 -S%3 -T -c -C RAW -t %4 -k -m%6 -b%6 -o %BCPOutFile% -e %BCPErrFile% -R -b 100000