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
Mahesh KGMahesh KG 

System.InvalidParameterValueException: An error occurred while parsing the input string

Hi Team,

When adding the pdf to the attachment, there is a src element in the image tag of my body. which is throwing the above error.
<img src="/resource/08146000000AiqO/logi" / >

when i replace the src with null, it is working fine. but i need the image in the pdf.

Can u help us fix this?

Thanks and Regards
Nayana KNayana K
<img src="{!$Resource.TestImage}" / >

I believe, the image is in the static resource. Eg: If you have uploaded a static resource image and name of the static resource is TestImage, above line should work. However, if the format of static resource is different, say you have zip file and image is in some folder inside that, then follow different format of accessing static resource. 
Please use the correct formats:

Mahesh KGMahesh KG
Hi Nayana,

Thanks for the Reply.

i have an html which has the image tag in it. which is not static image. which changes for every request/order. when i add the image in the src attribute i am getting An error occurred while parsing the input string. 

please let us know how to proceed in that