Clone are excluding attachments on MID Server Script files [ecc_agent_script_file], breaking Enhanced ADM DiscoveryDescriptionClones are causing missing attachments on the target in MID Server Script files [ecc_agent_script_file], by excluding them. Known OOTB records affected:ADMELauncherWinRM.psm1ADMELauncherWMI.psm1CollectConnectionsAndProcessesInfo.ps1 Symptoms: This will break Discovery when the Enhanced ADM probes are used. Any other features and custom integrations using attachments for the script, rather than the script field, will also be broken in the target. When opening the records in a form, the error banner is seen:'<name in record>' attachment is missing, please attach script file If running Xanadu or later, a MID Server issues record will be created due to the check being confused by the missing attachment:Attachment file with sys_id: <missing sys_id set in the ecc_agent_script_file script_attachment field> was not synchronized, as the file's absolute path is outside the target directory. Please rename the file appropriately. If deleting this file instead of renaming, please manually resolve this MID Server Issue record.Steps to Reproduce Provision 2 instances in the same datacenter. Lets refer to them as "source"and "target".Install the Discovery plugin in the source, which will add 3 ecc_agent_script_file records that have attachments. These are the ones where Parent = ADMEnhanced.Or instead create a new ecc_agent_script_file record and attach a file to it.Clone source to target, using the default System Profile, and default settings in the request clone form (which includes exclude large attachments ticked) Expected behaviour:All the attachments of records within the ecc_agent_sync_file extended table, which includes ecc_agent_script_file, should not be excluded. These are code, and breaks things if they are missing. Actual behaviour:ecc_agent_script_file attachments are missing after the clone. The records are not excluded but the attachments are.WorkaroundThis problem is currently under review and targeted to be fixed in a future release. Subscribe to this Known Error article to receive notifications when more information will be available. To add the missing attachments back, you could do any of: Assuming the source instance version is the same as the target, an admin can export the ecc_agent_script_file records as XML, and import them to the target instance.Repair the Discovery - IP Based plugin [com.snc.discovery.ip_based], which may require help from Tech Supporthttps://<instance name>.service-now.com/now/app-manager/home/plugin/id/com.snc.discovery.ip_based/detailsRelated Problem: PRB1797792