question

PranayaAnugu-8268 avatar image
0 Votes"
PranayaAnugu-8268 asked LeoErlandsson answered

Error while generating the IDOC schema in BizTalk 2016

Hi,

I'm getting the below error in BizTalk 2016 while trying to retrieve the IDOC schema from SAP using 'Add Generated Items' in my project.

The connection to SAP application server was successful but when I select the required IDOC and try to retrieve, I'm getting Object reference not set to an instance of an object error.

The account I'm using to connect to SAP application server has SAP_ALL access.

Can I please get advice on the reason for this issue.

81028-image.png



Thanks,
Pranaya


biztalk-server
image.png (8.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeoErlandsson avatar image
0 Votes"
LeoErlandsson answered

Hi,

Please ensure that the consumed WSDL has a target namespace set (edit the WSDL).

You will probably need to download the WSDL and not consume the WSDL directly from the SAP Service.

See e.g.: biztalk-2010-error-consuming-wcf-service-metadata-object-reference-not-set-to-an-instance-of-an



Br,
Leo

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.