Service portal logo is missing after cloning from prod to lower instances.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2024 06:12 AM
Hi, we have customized service portal logo for two instances (Dev & Test) when we clone from prod to lower instances, portal logo is missing in, and adding prod logo, here the ask is how to not change the portal logo when cloned,
how to resolve this, please help me on this, quick help would really help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2024 07:12 PM
Hi @prash4 Before cloning the the lower instance with prod. Best thing is to take the update set back up of the customized work...
Regards,
Prasanna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2024 07:21 PM
Hi @prash4 ,
Step 1. Make a note of the sys_id of the actual portal record in your lower instance. (Records in the sys_attachment table point back to this.)
Step 2. Find the relevant records in the sys_attachment table. For a thorough understanding, make a note of the Content Type of each record (png, jpg).
Step 3. Download each attachment, for safekeeping, by clicking on each "File name" link. (Note you can't open these records in Form View like you would other ServiceNow records.) Clicking on each link immediately downloads the entire file.
Step 4. Notice that the downloaded files do NOT have filename extensions.
Step 5. Delete each of the files to confirm that we are working with the right records.
Step 6. Refresh the Logo record to see that the Logo and Icon fields have gotten erased / cleared out. We now know that nothing in the Portal record really points to the sys_attachment table. Rather, it works the other way around. Records in sys_attachment point back to the sp_portal table.
Step 7. Rename each each of the downloaded files and give each one the correct file extension (see step 2).
Step 8. From the portal record, click "Update" for each field, and re-upload the image files.
Step 9. But wait. We forgot the "sys_attachment_doc" table, where the actual image binary data is stored. Add the "sys_attachment.Table sys ID" column to this List View and again put in the sys_id of the portal record, so we can see that these records also point back to the sys_portal table.
Step 10. Now that you know exactly what needs to be preserved across Clone operations, go to your PRODUCTION system, and in table clone_data_preserver, create one record for the sys_attachment table, and one record for the sys_attachment_doc table, each with a condition that the table_sys_id must match the sys_id of your portal record in your target (lower) instance (from step 1). And be sure those 2 records you create are attached to whatever Clone Profile you will be using. The final product should look like this:
Step 11. Perform a clone to your target instance. After the Clone operation is complete, CLEAR YOUR WEB BROWSER CACHE (Ctrl + Shift + D in Chrome) and then verify that the Portal FavIcon and Logo are still correct and as you expect.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0744449
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0693294
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2024 12:36 PM
Hi @Sumanth16 Greetings.
Thank you so much! really appreciate your help and detailed explanation on the issue, i will try it out and come back to with an update.
Thank you
VedhR