Developer forum

Forum » Integration » GetPDFForItem returns an empty PDF

GetPDFForItem returns an empty PDF

Roald Haahr
Reply

Hi,

We are having a problem with retrieving order PDFs from BC using the plugin 'Dynamics 365 BC22 - Dynamicweb Plug-In Unit 1.2.0.33 Runtime Package'

I have sent the following requests to BC with 'DynamicwebConnectorTestTool (2.5.0)':

  • <GetItem type="Invoice" customerID="yyy"  documentNO="xxx"></GetItem>
    • Correct result - XML representation of the order
  • <GetPDFForItem type="Invoice" id="xxx" externalUserID="yyy"/>
    • Incorrect result - base64 representation of an empty PDF
    • Expected result - base64 representation of a PDF with information about the order

Is there an error in the plugin or might it be something on the BC side that has to be done in order to get the PDFs correctly?

Kind regards
Roald


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Roald,
I have tried to reproduce it with BC clould having latest 1.2.0.33 and it was working fine to me. Also there were no changes about his request between the previous version. So are you using the BC OnPremise? What is your BC version and its Country/Region version locale? Can you see what is the error description in the OnPremise server EventViewer tool, maybe it can show some precise error message about the problem?
Sometimes the differences between language locales can be a problem, since the one on the doc site is built using default "GB" version.
BR, Dmitrij

Votes for this answer: 1
 
Roald Haahr
Reply

Hi Dmitriy,

Thank you :)

I forwarded your reply to the ERP partner and they managed to solve it on their end.

Kind regards
Roald

 

You must be logged in to post in the forum