Joel Musheno
02/10/2022, 2:24 PMsuitecloud object:import --destinationfolder "/Objects" --scriptid customrecord_nccer_teststagingrecord --type ALL
(or the Netsuite UI with Action -> Download Xml, it is the same xml document either way)
it includes some complexity, but most relevantly a custom field filter on one of the fields:
<customfieldfilter>
<fldcomparefield></fldcomparefield>
<fldfilter>STDBODYTRANTYPE</fldfilter>
<fldfilterchecked></fldfilterchecked>
<fldfiltercomparetype>EQ</fldfiltercomparetype>
<fldfilternotnull>F</fldfilternotnull>
<fldfilternull>F</fldfilternull>
<fldfiltersel>INVOICE</fldfiltersel>
<fldfilterval></fldfilterval>
</customfieldfilter>
I box that code up into a Account Customization package and attempt to deploy it with
suitecloud project:deploy
Validate works both locally and --server
Unfortunately deployment fails with and end error of:
An error occurred during custom object update.
Details: Invalid fldfiltersel reference key 7 for fldfilter STDBODYTRANTYPE.
File: ~/Objects/customrecord_nccer_teststagingrecord.xml
Object: customrecord_nccer_teststagingrecord.custrecord_nccer_teststaging_associnvoic (customrecordcustomfield)
2022-02-10 06:24:02 (PST) Installation FAILED (0 minutes 14 seconds)
Joel Musheno
02/14/2022, 7:27 PM