function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nasir SiddiquiNasir Siddiqui 

Error it attaching a file to a contact record

In some contact records while clicking on Attach file in Note & attachment of a contact record.

I am getting the following error.

Illegal Request
You have sent us an Illegal URL or an improperly formatted request.



 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Nasir,

Greetings to you!

Please refer to the below knowledge article which might help you.

https://help.salesforce.com/articleView?id=000265190&language=en_US&type=1

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Nasir SiddiquiNasir Siddiqui
Hi Anas,

Thank you always taking time to help me out. Much appreciated.

I have gone through the knowledge article and found the cause of the error .

i have  %u in the URL due to the chinese characters in the contact name. 

I am new to this so can you pleae help how to properly encode this URL os it does not fail.

We have thousands of records where the chinese or arabaic characters are present in the name.

Thanks
Nasir