---
title: "Field too small error when loading assays - fnLoadBufferCSVBatchHeader 2"
canonical: "https://servicedesk.maxgeo.com/space/DataShed4/1270186342/Field%20too%20small%20error%20when%20loading%20assays%20-%20fnLoadBufferCSVBatchHeader%202"
format: markdown
---
Issue: Loading an assay file and get below error.

***DataShed Desktop Application Error***  
***DB Object Name:         ***  
***Code Module***  
***Procedure:              ***  
***fnLoadBufferCSVBatchHeader***  
***Description:            ***  
***The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.***  
***Database Version:4.6.3***

Reason: The Dispatch Number in the assay file being loaded is longer than 20 characters.

Note: Dispatch_No in tblSYSImportMaskField set at 20 but the destination Dispatch_No in tblSYSAssBatch is nvarchar(50)

Solution:Run attached script to update field sizes - note resets 3 other fields at the same time.

```sql
IF ((Select SUBSTRING(Param1,1,3) From tblSYSParam Where CodeGroup = 'BACKEND' and Code = 'VERSION') = '4.6')
BEGIN
Update tblSYSImportMaskField set Field_Size = 50 Where Field_Name = 'Dispatch_No'
Update tblSYSImportMaskField set Field_Size = 25 Where Field_Name = 'LabElement'
Update tblSYSImportMaskField set Field_Size = 25 Where Field_Name = 'OrigMethod'
Update tblSYSImportMaskField set Field_Size = 25 Where Field_Name = 'UnitCode'
END
```