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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Invalid document schema AIF Service related Issue AX 2009

(0) ShareShare
ReportReport
Posted on by 208

Hello All,

I am a Dot Net Developer and am working with AX 2009 now.I'm new to AX 2009 . I'm trying to integrate ( customer,Item ) to AX from Some Source   .AIF Services throws an exception like below.

Error Message: DataAccess:Invalid document schema. The following error was returned: The element 'InventTable' in namespace 'schemas.microsoft.com/.../Item' has invalid child element 'RoHSCode' in namespace 'schemas.microsoft.com/.../Item'. List of possible elements expected: 'PurchModel, RecId, RecVersion, ReqGroupId' in namespace 'schemas.microsoft.com/.../Item'. Error Source: mscorlib Error Inner Exception:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

I know , I'm not mapping those fileds ( PurchModel, RecId, RecVersion, ReqGroupId )  and don't want use those fields.

I see that ,  those fields are in AOT and observed that, those fields have configured as not a mondatory in AOT.

Is there any configuration in AX to remove those fields ?. 

How can i resolve the issue ?. Please help me in this.

Thanks,

Pavan

I have the same question (0)
  • Martin Dráb Profile Picture
    236,019 Most Valuable Professional on at
    RE: Invalid document schema AIF Service related Issue AX 2009

    I wonder what exactly you're trying to achieve. You said you wanted to "to integrate ( customer,Item)" and that's not a very detailed description.

    If you want to create an item, you're using the right service. If you want to import some kind of relations between customers and items, or you mean something else by "to integrate", you're probably not doing the right thing.

    The error message complains that you're trying to import an unknown field, RoHSCode. Either remove it or modify the service to support it.

  • PavanBujji Profile Picture
    208 on at
    RE: Invalid document schema AIF Service related Issue AX 2009

    @Martin,  I'm trying to use itemservice.svc at this moment.

  • Martin Dráb Profile Picture
    236,019 Most Valuable Professional on at
    RE: Invalid document schema AIF Service related Issue AX 2009

    Which document service are you trying to use?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 814 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 798 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 622

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans