- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 06:29 AM
Hi Hemanth,
So for file with <5Mb the base64encoded data is sent properly but for file >5Mb it is breaking. I think the payload field which stores the response from mid server doesn't support that much length. You can break the file size in chunk of 5Mb each and send the base64encoded data and then merge the base64encoded data by writing business rule on ecc_queue table.
I have not implemented this but just a thought on this.
Is it possible to base64-encode a file in chunks? - Stack Overflow
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 04:43 AM
Hi Hemanth,
Type script include in left nav and select script includes present under Mid Server application.
Create new give some name. It is similar to normal script include in terms of syntax for initialize() method and other methods.
To print the log use ms.log('Inside MID Server Script include');
To call mid server script use following link and it should help
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 04:45 AM
Hi,
I have did in the same procedure but am unable to print the logs in mid server script includes from normal script includes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 04:54 AM
Hi Hemanth,
Is your mid server up?
The logs won't be shown in system logs in servicenow. Those logs are stored in mid server agent folder -> logs folder agent0.log file.
To get those logs open the mid server you are using and there you should see an option for Grab MID logs a related link. Click that and it will show grabbing mid server logs. wait for 3-4secs.
the ecc_queue should show you some entry.
Open the record which is as per below screenshot. you should see the logs in the xml section. if log file is large in size it will be present as an attachment to this record which you have opened.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 04:58 AM