Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AIF Document Services... Field not included in Document Schema

(0) ShareShare
ReportReport
Posted on by 2

Hi there,

I have created a document service based on a query which includes the table, DirPartyLocation.

When I generate the document service using the AIF wizard, the field 'IsPostalAddress' is not included in the document schema and the subsequent data contract class doesn't not contain the parameter method for this field.

Does anyone know what would cause this field to be missing? All the other fields are included in the schema. I noticed that in the foundation model, the visibility property of this fields is set to 'No', however I updated this to 'yes' but still got the same behaviour.

The query is using dynamics fields, therefore the 'IsPostalAddress' field is included in the query.

Any ideas anyone?

Thanks in advance,

Nick

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: AIF Document Services... Field not included in Document Schema

    Thanks,

    In my case the solution turned out to be simply refreshing the services. The second note on this MSDN page was my first clue:

    msdn.microsoft.com/.../aa873749.aspx

    Jed

  • Suggested answer
    Dick Wenning Profile Picture
    Dick Wenning 8,705 on at
    RE: AIF Document Services... Field not included in Document Schema

    the field property on the table is set to visible non, so it will disappear.

    Perhaps you can override the initFieldAccessOverrides on the axdclass.

    it is normally used for overrule allowedit only on create to overrule

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: AIF Document Services... Field not included in Document Schema

    Nick and Jed, try adding a parm method for IsPostalAddress in the AxDirPartyLocation class.

    I faced a similar problem and blogged it at janeteblake.wordpress.com/.../using-the-excel-add-in-to-update-custom-fields

    Good luck

    Janet

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: AIF Document Services... Field not included in Document Schema

    Hi Nick,

    Have you been able to find a solution to this issue. I am facing the exact same problem.

    Thanks,

    Jed

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans