Solved

ODATA_PROVIDER_ERROR - CreateAndImportDocument.svc

  • 4 March 2022
  • 2 replies
  • 534 views

Userlevel 4
Badge +8

So, long story short - I am trying to upload a document using Postman and I am literally stuck on the last step:

[ ] Running a patch request against https://SOMURL:SOMEPORT/int/ifsapplications/projection/v1/CreateAndImportDocument.svc/EdmFileSet(DocClass='100',DocNo='1008475',DocSheet='1',DocRev='A1',DocType='ORIGINAL',FileNo=1)/FileData 

[ ] Set headers X-IFS-ContentDisposition with the filename=Ym9wcC5kb2N4

[ ] Set If-Match to a *

[ ] Set Content-Type to application/octet-stream

[ ] Body is binary with the file

[ ] I am using a pure integration user and not IFSAPP, all rights checked

[ ] Using IFS Applications 10 update 11

 

regardless of what I do I get:

 

{

    "error": {

        "code": "ODATA_PROVIDER_ERROR",

        "message": "An internal server error occurred. Contact administrator."

    }

}

 

Can someone please point me in the right direction?

icon

Best answer by dsj 4 March 2022, 09:51

View original

This topic has been closed for comments

2 replies

Userlevel 7
Badge +20

Hi @AndreasIsengaard ,

May be it’s due to content disposition header

 

it should be 

X-IFS-Content-Disposition: filename=Ym9wcC5kb2N4

 

Script by Mathias worked for me some times ago without a problem

Upload document via CreateAndImportDocument.svc/EdmFileSet | IFS Community

 

Cheers!

Damith

Userlevel 4
Badge +8

thank you for pointing out the obvious :)