Monday, July 1, 2019

Copy Bundle Action leads to Unexpected Error

This article describes a possible scenario in which a bundle is copied from a source to a target account, when the bundle already exists in the target account and the copy operation fails with an unexpected error.

When a bundle is copied from the target account to a source account in which it already exists, NetSuite updates the copied bundle in the target account. More information about this can be found in SuiteAnswers : Copying a Bundle to Other Accounts (Article Id: 10179).

Therefore the success of the copy operation is closely linked to the success of the updates, which need to be performed. For example, if the bundle contains a custom record type in the original version and the custom record type is removed in the updated version, the bundle can be successfully copied (updated) only if the delete operation of the custom record type in the target account can succeed. An unexpected error will be thrown if there are script deployments referencing the custom record type in the target account.

To avoid this behavior, the script deployment records referencing the custom record type in the example above have to be removed prior to the bundle update (copy).

No comments:

Post a Comment