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)

AX 2012 R2 useless AIF error message

(0) ShareShare
ReportReport
Posted on by 380

Hi,

I have created my own document service totally based on custom tables. Then I created an inbound port using the FileSystemAdapter pointing to a directory on the AOS.

Now I can put an XML into this directory and let the AIF pick it up.

I now have the message in the AIF message queue:

Direction: Inbound

Status: Error

Error message: Function 'Global::typeId2ExtendedTypeId' must be called with an extended data type.

Stack trace

\Classes\AifWcfSendAdapter\sendMessage                                   line 65

\Classes\AifGatewaySendService\sendMessage                           line 34

\Classes\AifRequestProcessor\callAosServiceOperation             line 62

\Classes\AifRequestProcessor\processRequest                           line 32

\Classes\AifInboundProcessingService\processRequest            line 34

...

Line 65 of AifWcfSendAdapter.sendMessage():

responseMessage = wcfClient.ProcessRequest(requestMessage, configFilePath, endpointConfigurationName, addressOverride, throwOnFaultResponse);

wcfClient is of type Microsoft.Dynamics.IntegrationFramework.Adapter.WcfClient

So, something goes wrong in there.

Has anybody faced the same error and found a solution?

Thanks in advance,

Andy

*This post is locked for comments

I have the same question (0)
  • Tommy Skaue Profile Picture
    Moderator on at

    Either the WCF binding is flawed or incomplete, or the CIL is not compiled completely.

    Make sure the WCF binding configuration is updated and refreshed and make sure CIL is compiled.

  • andy007 Profile Picture
    380 on at

    Tanks for the answer.

    - I did a complete CIL generation

    - how do I ensure the WCF binding config is updated/refreshed?

  • Tommy Skaue Profile Picture
    Moderator on at

    If you are using a client dependent on the bindings in your Local Dynamics Configuration, it would be a matter of opening Administrative Tools\Microsoft Dynamics AX 2012 Configuration, open the Connection Tab and hit Refresh. If it is disabled, simply create a new user defined connection setting.

    If you are dependent on the Business Connector, you would do the similar operation but switch Configuration Target in the same utility.

    If this is Visual Studio project, you could try to reload the Service Reference.

  • andy007 Profile Picture
    380 on at

    Ok, tried that too. Didn't help.

    But thanks for your suggestions.

  • Tommy Skaue Profile Picture
    Moderator on at

    Are the fields in these custom tables all actually defined with Extended Data Types?

  • andy007 Profile Picture
    380 on at

    Yes they are. I also checked / changed the Ax- and Axd-classes.

    Well I guess I'll open a support call.

  • Verified answer
    andy007 Profile Picture
    380 on at

    Yeah. I got it. Thanks to the guys in this thread: community.dynamics.com/.../199013.aspx I tried Net Reflector (trial version) to find the cause of the problem.

    There was an error in an upgraded method (wrong usage of extendedtypenum() / extendedtypeid()). Never would have thought about this one...

  • Tommy Skaue Profile Picture
    Moderator on at

    The compilation process did not flag this error?

    My next suggestion to you would be to make sure the WCF-bindings were refreshed.

    You would have to do the same if for instance the AOS Service Account was changed.

    There is a a guide here:

    technet.microsoft.com/.../87aaf2fa-1190-4036-9d39-c1252c48da88(AX.60).aspx

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans