<h2>How to determine if orphaned records exist in the asset table</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Description</h3><section><h1 style="box-sizing: border-box; font-size: 21px;"><br /></h1> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">Several asset records that are linked to a CI are reporting the Record is not found. Also, from the CI stand point the Asset record is reporting the same issue.</span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;">Steps to reproduce:</div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="font-family: tahoma, arial, helvetica, sans-serif;"><span style="box-sizing: border-box; color: #2e2e2e; line-height: 1.5em;">1. </span><span style="color: #2e2e2e; line-height: 1.5em;">Navigate to Asset > All Asset</span></span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="box-sizing: border-box; color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">2. Open a Asset Record</span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="font-family: tahoma, arial, helvetica, sans-serif;"><span style="box-sizing: border-box; color: #2e2e2e; line-height: 1.5em;">3.</span> <span style="color: #2e2e2e; line-height: 1.5em;">Go to the CI and open that record.</span><span style="box-sizing: border-box; color: #2e2e2e; line-height: 1.5em;"> </span></span></div> <ul style="list-style-position: inside;"><li style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;">You will see this message, “Record is not found”, which it should show were the table it should exist in. (capture the sys_id.)</li></ul> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">Go to the table and search for that sys_id</span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">Vice versa from the CI record, go to the Asset record and capture the sys_id and search for that in the ‘alm_hardware' list.</span></div> <h1 style="box-sizing: border-box; font-size: 21px;"><br /></h1> <div style="box-sizing: border-box; color: #2e2e2e; font-family: SourceSansPro, 'Helvetica Neue', Arial; font-size: 13px;"> </div></section></div><div ><h3 >Cause</h3><section><div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">Potential root cause</span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="box-sizing: border-box; color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">1. Gather the sys_id of that missing record</span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="box-sizing: border-box; color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">2. Go to that table and search for that sys_id</span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="font-family: tahoma, arial, helvetica, sans-serif;"><span style="box-sizing: border-box; color: #2e2e2e; line-height: 1.5em;">3. Go to the Audit trail history of that record. Was there any change to the sys_id?</span><span style="box-sizing: border-box; color: #2e2e2e; line-height: 1.5em;"> </span></span></div> <ul style="list-style-position: inside;"><li style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;">It should list a change of the sys_id and by who and perhaps someone may have deleted this record. Or possibly during the asset creation phase, an invalid CI - sys_id was added. Also a good place to investigate this issue would be in the delete history.</li></ul> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">If there is a sys_id that is either from the asset or CI record stand point that needs to be linked, you can create a script to tie in these together. </span></div> <div style="box-sizing: border-box; font-size: 13px; margin-top: 1em; margin-bottom: 1em;"><span style="color: #2e2e2e; font-family: tahoma, arial, helvetica, sans-serif; line-height: 1.5em;">Or start from scratch with creating a new Asset with a CI.</span></div></section></div></article></div>