"packages" is not defined error in logs, var baos = new packages.java.io.ByteArrayOutputStream();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 04:44 AM - edited 09-01-2023 04:01 AM
Hi,
I'm trying to integrate two ServiceNow instances.
Goal: If I create an incident along with attachment in the instance A that should replicate the record & attachments in the instance B. For that I have written one Async - insert BR. If I try to create a record I'm getting - "packages" is not defined error in logs. I'm pasting the code here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 09:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 10:42 PM
then it should work fine
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:59 AM
Hi @Ankur Bawiskar ,
It is not working. When I try to attach pdf or excel it is working (attachments are getting copied but can't able to see the content.
When I try to attach excel or word document, docs are not getting copied.
Thanks,
Amala.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 05:15 AM
Hi @Ankur Bawiskar ,
Please have a look into this issue. I have tried the above code only PDF is getting attached (excel & word docs are getting skipped). Moreover attached PDF content is not visible. It is throwing an error. Attaching the screenshot for your reference.
Could please check and help me to resolve the issue. Once check the onafter transform map script aswell.
Thanks,
Amala.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 10:37 PM
Hi @Ankur Bawiskar ,
Now I can be able to see the attachments, but the content is missing. Please help to resolve this.
Thanks,
Amala.