The Zurich release has arrived! Interested in new features and functionalities? Click here for more

While uploading file bigger than 5 mb, getting error : code 41 : Invalid Credential

Intakhab Khan
Tera Contributor

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

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Intakhab Khan 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

@Intakhab Khan 

could be an issue with mid server.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

If the issue is related with mid-server, then is there any way to troubleshoot it??

 

Thanks,

Intakhab