Skip to main content

Notifications

Announcements

No record found.

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 192

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

  • Martin Dráb Profile Picture
    Martin Dráb 231,329 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
    PavanBujji 192 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
    Martin Dráb 231,329 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,329 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans