question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Project:Deploy errors on custom address form

See original GitHub issue

Your 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:

  1. Add a custom record for “custrecode_extra_field”
    1. For display, Position at Top
  2. 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>
  1. 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alii-gatorcommented, Oct 13, 2021

I was deploying as-is, additionally, I attempted to remove conflicting entries in the XML without much luck.

Please report it to NS support, so the relevant team responsible for this can take a look

0reactions
Rvicecommented, Nov 3, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Displaying a Custom Error Page (C#) - Microsoft Learn
This tutorial shows how to customize these settings to display an aesthetically-pleasing custom error page that matches your site's look and ...
Read more >
Top 10 Serverless Deployment Errors (and How to Fix Them)
7. CloudFormation cannot update a stack with custom-named resource request. The error: Failed To Deploy Deployment. Failed to provision ...
Read more >
NetSuite Applications Suite - Creating Custom Address Fields
Authorization Code Grant Flow Errors ... Custom Multi-Select Value Delimiter · CSV Decimal Delimiter · Custom Form · Server Scripting and Workflow Execution ......
Read more >
Call functions via HTTP requests | Cloud Functions for Firebase
If you encounter permissions errors when deploying functions, make sure that the appropriate IAM roles are assigned to the user running the deployment...
Read more >
Troubleshoot EC2/On-Premises deployment issues
This error message indicates the instance is running a version of the CodeDeploy agent that supports only the SHA-1 hash algorithm. Support for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found