Trying to push transaction forms via sdf but I get...
# sdf
d
Trying to push transaction forms via sdf but I get the below error: An error occurred during custom object update. I don't unfortunately get any more details, can't seem to find any relevant resources online that offer a solution, does anyone have any experience in how to identify where the issue actually lies when you get little detail in the error message?
e
You can maybe try the Deployment Audit Trail in NetSuite: Customization > SuiteCloud Development > Deployment Audit Trail
Does
project:validate --server
or
project:deploy --dryrun
give you any details?
d
wasn''t aware of the audit trail, i'll have a look at that and the validation/dryrun commands to see if that gives me more details
Unfortunately nothing in the audit trail that isn't already in the error when deploying, a dryrun deployment and validate command both return no errors. All I'm left with is the below logs: Deploying to XXXXXXX - Account Name - Administrator. 2023-06-14 115327 (PST) Installation started Info -- Account [(SANDBOX) Account Name] Info -- Account Customization Project [Project Name] Info -- Framework Version [1.0] Validate manifest -- Success Validate deploy file -- Success Validate configuration -- Success Validate objects -- Success Validate files -- Success Validate folders -- Success Validate translation imports -- Success Validation of referenceability from custom objects to translations collection strings in progress. -- Success Validate preferences -- Success Validate flags -- Success Validate for circular dependencies -- Success Validate account settings -- Success Validate Custom Objects against the Account -- Success Validate file cabinet items against the account -- Success Validate translation imports against the account -- Success Validation of references to translation collection strings against account in progress. -- Success Begin deployment Update object -- _custform_myform_ (transactionform) * ERROR * An error occurred during custom object update. File: ~/Objects/SB TEST/to push/_custform_myform_ Object: _custform_myform_(transactionform) 2023-06-14 115439 (PST) Installation FAILED (1 minute 12 seconds)
d
Okay, I chased this error for a number of hours. But by its nature no guarantee it's the same issue: Make sure that all the fields in your transaction form exist in the target account. I also had fields in the target account that weren't included in my transaction form.
Was deploying from SB to prod, and even though the extra SB transaction fields were included as dependencies, it wasn't failing validation. Not sure if the extra prod fields not being included in the form xml definition was also contributing to the error. Resolved by grabbing a xml def. of the form in prod and doing a (rather awkward) file diff with the SB version
e
For the record, we have found both Saved Searches and Custom Forms to be a giant pain in SDF, so we removed them all from our standard development project
💯 1
d
yes, they're on my SDF naughty list too...
d
resurrecting just to give an update on this one in case that helps out anyone in future... Netsuite has advised that a field on the transaction forms is marked as type "Hidden" on the field definition itself, and SDF does not support hidden as of yet. Annoyingly we do not have access as developers to see either what field is throwing the error, or why!
👀 1
d
Appreciate the update! Definitely a quirk that I'll keep in mind