I have a number of records in custom record type that I need to update to as a batch. Only the IsInactive field needs to be changed.
To do this i have produced a simple xml file (example below) that identifies the record by its name field.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE smbxml SYSTEM "http://www.netsuite.com/xml/dtd/smb_4_16.dtd">
<smbxml>
<request missingFieldOverwrite="false">
<addOrUpdate>
<customRecord>
<name>0003081</name>
<customRecordTypeRef><name>AgreementLines</name></customRecordTypeRef>
<isInactive>False</isInactive>
</customRecord>
</addOrUpdate>
</request>
</smbxml>
The file is processed but fails with the following error
'You may not perform an addOrUpdate of a custom record which does not have a name field. You may 'add' the record instead.'
The error would suggest that the record has no name field. However this not the case. All of the records in this custom record type have been imported originally using xml and the name field is populated with a reference number that is generated by an application outside of Netsuite.
We also have a clone account, which is a direct copy of our live account, and the same file will import without errors into this clone account so I am confident the file is OK.
It seems to me that this could be a Netsuite bug but I would be interested if anyone else has had a similiar experience.
Thanks
Tom