Error while generating the IDOC schema in BizTalk 2016

PranayaAnugu-8268 1 Reputation point
2021-03-24T11:17:05.533+00:00

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

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
358 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leo Erlandsson 1,656 Reputation points
    2021-03-29T06:23:45.183+00:00

    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

    0 comments No comments