When comparing two environments as part of a deployment or workspace clone, you may get a message indicating that there were too many differences between the two environments. Salto supports showing up to 40,000 elements which differ between the environments.
When this happens, Salto will only show the first 40,000 differences, while other elements (exceeding the maximum allowed number) will not appear in the comparison.
This may prevent you from continuing with the deployment, as the desired elements for deploying may not show up in the comparison and will not be selectable.
Possible causes and solutions
There are multiple possible reasons for a large amount of differences between 2 NetSuite environments:
If you're comparing an environment against its Sandbox, you may need to refresh the Sandbox with the latest configuration from the Production environment.
Difference in the environment configuration - for example, the source environment may be configured to exclude Custom Records when fetching, but the target environment includes them. You can compare the configuration files and identify differences by using any online text comparison tool, such as Diffchecker. To fix this problem, make sure your environment configurations are similar, and that no major group of elements are included in one but excluded in the other. Go to the NetSuite configuration documentation to learn how to change this configuration.
There may be real differences in element ordering, especially inside Forms.
A bundle may exist in one environment, but not in the other. To fix this, install the same bundles in both source and target environments, or exclude the bundle-specific elements in your environment configuration (see #1 above to understand how).
A bundle may have different versions in the source and target environment, resulting in many bundle-specific elements. To fix this, make sure bundle versions are aligned across environments.
If you're doing a comparison from a Workspace, you can set the comparison criteria to only compare some of the elements, by adding a criteria to the comparison:
If these don't help, you may want to simply reduce the number of elements that Salto manages. Change your fetch configuration to exclude elements until you're able to make the comparison you need.
You can have multiple environments, each with its own configuration, to help you manage, compare and deploy different types of elements.