web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AIF Inbound XML cause Error: The value cannot be null: Parameter Name: document

(0) ShareShare
ReportReport
Posted on by

Hello together,

I want implement an AIF Inbound service for exchange data. For that I have created a table and query. With the wizard I have created the nessary private Project. Furthermore I have Setup the Inbound port and the Service object.

For testing I have created a sample XML which you can find below. If I try to Import this XML I receive the error message "The value cannot be null: Parameter Name: document".

Have someone an idea why this error occur?

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="schemas.microsoft.com/.../Message">
 <Header>
  <Action>schemas.microsoft.com/.../create&lt;/Action>
 </Header>
 <Body>
  <MessageParts xmlns="schemas.microsoft.com/.../Message">
   <AxdObiZEKOM_DEB_HIST xmlns="schemas.microsoft.com/.../ObiZEKOM_DEB_HIST">
    <AxdEntity_ObiZECOM_DEB_HIST_1 class="entity" action="create">
     <DATEI>/PDIS/OBI/TNP/6069/100152-RSSBELEGDATEN-20130326-1431.xml</DATEI>
     <DATID>127</DATID>
     <ERDAT>26.03.2013</ERDAT>
     <LFDID>11</LFDID>
     <MAHNS>0</MAHNS>
     <MANDANTID>100152</MANDANTID>
     <MANDT>242</MANDT>
     <MSERDAT>27.03.2013</MSERDAT>
     <MSERZET>110017</MSERZET>
     <TNP_BETRAG>134,89</TNP_BETRAG>
     <TNP_JE_NO>10012356</TNP_JE_NO>
     <TNP_JEDAT>26.03.2013</TNP_JEDAT>
     <TNP_JETYP>10</TNP_JETYP>
     <TNP_KUNNR>1000200456</TNP_KUNNR>
     <VBELN_VA>2000596685</VBELN_VA>
     <WAERS>EUR</WAERS>
    </AxdEntity_ObiZECOM_DEB_HIST_1>
   </AxdObiZEKOM_DEB_HIST>
  </MessageParts>
 </Body>
</Envelope>

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,855 Most Valuable Professional on at

    If I was you, I would let Visual Studio generate strongly-typed proxy classes for me and call it through them, rather than trying to build XML files by myself.

    Anyway, can you tell us where the error is thrown from?

  • Community Member Profile Picture
    on at

    Hello Martin,

    thank you for your answer. Now we get it. We have removed the underscores "_" from the table Name.

    We are not sure if this was the Problem, but without them works great.

    Best regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans