While uploading file bigger than 5 mb, getting error : code 41 : Invalid Credential
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 02:16 AM
Hi,
My requirement is to send daily report data in .csv to EDH team.
For this I created Rest message in which I created 3 http methods :
Method 1 : used for generating token.
Method 2: used to generate token and also take method 1 token as a bearer token.
Method 3 : used to send file.
In response : Getting "Operational Id" (as expected) - For file below 5 mb.
Note : EDH is on Intranet, so for this, I used one MID-Server for all 3 http methods."
And also created one Script Include to call API and it's method and managing all in the background.
Actual Result : For record more than 5 mb, getting response - null and getting error - code-41, Invalid Credential.
operational Id - "null".
Also getting error in ecc Queue - XML parsing error.
Expected Result : Operational Id - "xxxx-xxxx-xxx". (some value)
Only getting error for file's size more than 5mb, less than 5mb working fine...
Please suggest some solution for it....
Thanks in advance.
Regards,
Intakhab Khan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 06:15 AM
share your relevant scripts here.
how are you forming the csv and how are you posting it?
Is your endpoint able to accept more than 5MB file?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 11:23 PM
Hi @Ankur Bawiskar,
There is an existing code which generates an URL, and that URL is used to download the report's data in csv and there is a table called 'Data Extract' in which we are providing there reports and target file name, etc to generate an URL.
Is your endpoint able to accept more than 5MB file?
I'm doing the same with postman, and it's not showing any error for files more than 5 mb.
Is it due to MID-Server?
Regards,
Intakhab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 11:25 PM
could be an issue with mid server.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 12:02 AM
If the issue is related with mid-server, then is there any way to troubleshoot it??
Thanks,
Intakhab