Skip to main content
Solved

ODATA_PROVIDER_ERROR - CreateAndImportDocument.svc


AndreasIsengaard
Sidekick (Partner)
Forum|alt.badge.img+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?

Best answer by dsj

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

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 836 replies
  • Answer
  • March 4, 2022

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


AndreasIsengaard
Sidekick (Partner)
Forum|alt.badge.img+8

thank you for pointing out the obvious :)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings