Vault - EVD 'RequestsList' export to MSSQL fails with error "#@ Row <X>, Column 10: String data, right truncation @#"

Vault - EVD 'RequestsList' export to MSSQL fails with error "#@ Row <X>, Column 10: String data, right truncation @#"

104
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 15:56 PM


Symptom


When exporting data from RequestsList to MSSQL Server the export fails with the following error in the Requests.err file:

#@ Row <X>, Column 10: String data, right truncation @#

where <X> is the affected row.


Environment


10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8 PAS 10.x or higher
EVD exporting data to MS SQL Server


Cause


The MS SQL Server error "#@ Row <X>, Column 10: String data, right truncation @#" means that the string data tried to be stored in the column 10 of row <X> has been right truncated as it is longer than the database field.

Resolution


The Requests.err file show that the problem occurs in the database column 10.
Checking the database columns in the 'CARequests' table in the CyberArk database in MS SQL Server, we can see it corresponds to 'CARReason' field which is a NVARCHAR(200).

image.png

This means that it can store a 200 characters unicode string, coding each character with two bytes.
Just updating the table structure to enlarge the CARReason field to a bigger length should solve the problem.

In order to do so, run the following SQLServer statement:

ALTER TABLE CARequests ALTER COLUMN CARReason NVARCHAR (1024);

This should allow to store data up to 1024 characters in the CARReason column.

 


Actions
  • Print
  • Copy Link

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