Project:Deploy errors on custom address form
See original GitHub issueYour environment
OS : Windows 10 Node.js version : 14.17.4 suitecloud-cli version : 1.3.0 Terminal/CMD tool : PowerShell
Describe the bug
When attempting to run suitecloud project:deploy on a custom address form with an additional field an error occurs. Note, the XML extracted was form the object:import and object:update option.
Additionally, roles that are attempting to be deployed after an “object:import” result in a response indicating: Line No. 3 - The object field “coreadminpermission” is invalid or not supported.
To Reproduce
Steps to reproduce the behavior:
- Add a custom record for “custrecode_extra_field”
- For display, Position at Top
- Add a custom address form
<addressForm scriptid="custform_address" standard="STANDARDADDRESSFORM">
<name>Custom Address Form</name>
<mainFields>
<defaultFieldGroup>
<fields position="TOP">
<field>
<id>[scriptid=custrecord_extra_field]</id>
<label>Custom Info</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
</fields>
<fields position="MIDDLE">
<field>
<id>COUNTRY</id>
<label>Country</label>
<visible>T</visible>
<mandatory>T</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>ATTENTION</id>
<label>Attention</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>ADDRESSEE</id>
<label>Addressee</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>ADDRPHONE</id>
<label>Phone</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>ADDR1</id>
<label>Address 1</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>ADDR2</id>
<label>Address 2</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>ADDR3</id>
<label>Address 3</label>
<visible>F</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>[scriptid=custrecordaddr4]</id>
<label>Address 4</label>
<visible>F</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>CITY</id>
<label>City</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>STATE</id>
<label>State</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>F</sameRowAsPrevious>
</field>
<field>
<id>ZIP</id>
<label>Zip</label>
<visible>T</visible>
<mandatory>F</mandatory>
<displayType>NORMAL</displayType>
<columnBreak>F</columnBreak>
<sameRowAsPrevious>T</sameRowAsPrevious>
</field>
</fields>
</defaultFieldGroup>
</mainFields>
<addressTemplate><![CDATA[<attention>
<addressee>
<addr1>
<addr2>
<addr3>
<city> <state> <zip>
<country>]]></addressTemplate>
<countries>AD|AF|AG|AI|AL|AM|AO|AQ|AR|AS|AX|DZ</countries>
</addressForm>
- Run suitecloud project:deploy
Actual Behavior
An error occurred during custom object validation. (custform_address) Details: The fields field is invalid or not supported. Details: country field must appear on the top of defaultFieldGroup in mainFields File: ~/Objects/custform_address.xml
and for the roles
- Line No. 3 - The object field “coreadminpermission” is invalid or not supported.
Expected Behavior
I expect the deploy to succeed if the record is exactly how it was copied from our Sandbox.
Additional context
I attempted to remove the positions, but that results in missing positions for fields. Moving my custom field to after the “MIDDLE” section (renaming MIDDLE to TOP and the repositioned top to BOTTOM and even Middle) and still have issues.
project:validate also returns an error on the position field (turns out this is the same as https://github.com/oracle/netsuite-suitecloud-sdk/issues/173)
- Line No. 5 - The attribute “position” is invalid, no attributes are expected. - Line No. 16 - The attribute “position” is invalid, no attributes are expected.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Please report it to NS support, so the relevant team responsible for this can take a look
Defect logged:
Defect 649262: SDF > CLI > Deploy Project > Custom Address > An unexpected error has occurred: “The [scriptid=xxx] field position must be set to TOP.”
Alternate Solution: None