- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024
06:17 AM
- last edited on
04-25-2024
02:57 PM
by
Lisa Latour
Hello All,
we had requirement that to update the records of company field of all the tables (apart cmdb_ci table)which company value "1" having previously now it need to change as "2".
When I run on fix script it was running not updating. Could anyone help me on this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 07:28 AM
Your found records don't have a 'colom' field. Can you try your while like this:
while (chk_rec.next()) {
chk_rec[colum] = 'af7fcd77878321d0d1bb21bc8bbb3503'; // value "2"
chk_rec.setWorkflow(false);
chk_rec.autoSysFields(false);
chk_rec.update();
}
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 07:28 AM
Your found records don't have a 'colom' field. Can you try your while like this:
while (chk_rec.next()) {
chk_rec[colum] = 'af7fcd77878321d0d1bb21bc8bbb3503'; // value "2"
chk_rec.setWorkflow(false);
chk_rec.autoSysFields(false);
chk_rec.update();
}
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 08:08 AM
@Mark Manders When I run it was taking long time more than 45 mins but it can see no records got updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 02:33 AM
You said no records were updated, but did accept my solution? Did it work after all?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 02:35 AM
Yes Correct after refresh the page it got worked