Solved

Error using Postman and the files api to save a pdf

  • 12 May 2023
  • 3 replies
  • 274 views

Userlevel 2
Badge

I’m testing adding a file using Postman and I’m getting the error:

{

    "message": "The request is invalid.",

    "modelState": {

        "": [

            "Unable to translate bytes [E2] at index 10 from specified code page to Unicode."

        ]

    }

}

 

Here are the headers:

In the body I’ve tried several different pdf files but I still get the same result.  I’m not sure what I need to change to get this to work.

icon

Best answer by sweta68 17 May 2023, 07:12

View original

3 replies

Userlevel 7
Badge +10

Hi @vpoulson 

Kindly refer to below link for a reference.

https://asiablog.acumatica.com/2018/01/attach-files-with-rest-api.html

 

Hope it helps!

Regards,

Sweta

Userlevel 7
Badge +17

Hi @vpoulson  I don’t think such an API request is available (I may be wrong) to save the PDF file.

Userlevel 2
Badge

@Naveen Boga I’m getting the same error when trying to attach a .PNG file. 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved