Asset audit new records shows IN USE instead of IN STOCKDescriptionUpon Creating a stockroom audit and Scan an asset through the Mobile agent app which is not yet in the systemIt is noticed that the new asset state is not In stock nor the stockroom where it was scanned is not filled inSteps to Reproduce Review the below documenthttps://docs.servicenow.com/bundle/paris-it-asset-management/page/product/asset-management/concept/agent-mobile-asset.html#agent-mobile-assetWhen using the agent app to scan and update the asset . When the scan asset is completed it shows as IN use instead of IN STOCKTo Reproduce : Go to filter navigatortype Asset AuditOpen or create any newDownload the Service agent on the mobile through the playstoreScan any QRThe new asset will be showing in the Asset audit (Scanned Asset)as new and in use, instead of IN stockWorkaroundThis is due to script In sys_sg_write_back_action_itemhttps://instancename.service-now.com/nav_to.do?uri=%2Fsys_sg_write_back_action_item.do%3Fsys_id%3D43c5bc4100e30010fa9b161c34f873e8, below code executed resulted in creation of asset upon scan.// Set to the special model and model category, Unknownvar unknownModel = '3410e2c100a70010fa9b161c34f87377';var unknownModelCategory = '2ffe9a8100a70010fa9b161c34f873cd';var newAsset = new global.GlideQuery('alm_asset').insert({asset_tag: assetTag, model: unknownModel , model_category: unknownModelCategory, audit_number: currentAssetAuditInfo.sys_id, last_audit_date: currentAssetAuditInfo.scan_date, audited_by: currentAssetAuditInfo.assigned_to, audit_type: currentAssetAuditInfo.type, last_audit_state: currentAssetAuditInfo.status, location: currentAssetAuditInfo.location, stockroom: currentAssetAuditInfo.stockroom}).get();As we can see while inserting, install_status is not set. (Please check insert(*) does not have status updated.Since status is not updated, it takes the default value which is in_use.This 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 form to be notified when more information will become available..Related Problem: PRB1506309