Clone excludes attachments related to sa_uploaded_file table when "Exclude Attachments" is true, breaking Oracle/EC2 DiscoveryDescriptionClone excludes attachments related to the sa_uploaded_file table when "Exclude Attachments" is true. These records and attachments are code, used by Discovery, Service Mapping, and Software Asset Management. NameAttachmentPackageGet EC2 DetailsgetEC2Detailsv3.ps1Pattern DesignerGet Oracle CDBOracle_CDB.sqlDiscovery and Service Mapping PatternsGet Oracle Instance SizeOracle_instance_size.sqlDiscovery and Service Mapping PatternsGet Oracle PDB Sizeget_pdb_size.sqlDiscovery and Service Mapping PatternsGet Oracle PDBSOracle_PDBS.sqlDiscovery and Service Mapping PatternsOptions Packs Usage Statistics SQL Fileoptions_packs_usage_statistics.sqlSoftware Asset Management Professional for OracleOracle SW Validation Scriptdb_queries_to_csv.sqlData Collection for Oracle Global Licensing and Advisory ServicesOracle Unix HW Validation Scriptct_cpuq.shData Collection for Oracle Global Licensing and Advisory ServicesOracle Windows HW Validation Scriptct_cpuq.cmdData Collection for Oracle Global Licensing and Advisory Services Symptoms will include EC2 and Oracle Discovery failing. Errors may be seen in the Discovery Pattern log, from steps such as "put Oracle options_packs_usage_statistics sql file", similar to: 2021-05-26 08:03:45: Error when trying to put file. Source file D:\servicenow\mid.novant.dev\agent\work\uploaded_files does not exist on the MID hostAt D:\servicenow\agent\scripts\PowerShell\WMICollector\WMIFileOperations.psm1:118 char:9+ throw "Source file $sourcePath does not exist on the MID host ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : OperationStopped: (Source file D:\...on the MID host:String) [], RuntimeException+ FullyQualifiedErrorId : Source file D:\servicenow\agent\work\uploaded_files does not exist on the MID host or 2021-06-21 05:16:54: Failed to put file on the host, 10.x.x.x, through SSH connection due to the error: D:\MidServer\agent\work\uploaded_files (Access is denied). Failed to copy file into /tmp/.../Steps to Reproduce Install Discovery and Disco and Service Mapping Patterns to populate the sa_uploaded_file table.Trigger a normal clone with attachments related to "sa_uploaded_file"You will notice that attachments related to "sa_uploaded_file " are deleted. Actual Result : attachments related to sa_uploaded_file table are excluded.Expected Result : clone to NOT exclude attachments related to sa_uploaded_file table per Dev discovery (CSTASK202907)WorkaroundThis problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this article to be notified when more information becomes available. Workaround is to set "Exclude Attachments" to false, when setting up the clone. To repair the table to fix Discovery, export all the records from the sa_uploaded_file list as XML on the clone source instance, which automatically includes the attachments too, and import them to the target instance.Related Problem: PRB1507034