D365 Finance & Operations and Dynamics AX Forum

Error on AIF OutBound - standard invoice with bespoke fields

  • 1.  Error on AIF OutBound - standard invoice with bespoke fields

    Posted Jan 25, 2019 12:23 PM
    Edited by David Coulson Jan 25, 2019 01:06 PM
    Hi Folks,

    Ref. Error on AIF OutBound - standard invoice with bespoke field - AX 2012 R2 CU7, SQL Server 2012

    When sending an invoice (AIF) we get the below.error.

    Type 'http://schemas.microsoft.com/dynamics/2008/01/sharedtypes:AxdUnion_AxdType_Str_AxdType_ExtCodeValue' is not declared.

    thumbnail image

    ExtCodeValue is a valid (albeit custom) EDT

    We also get the error from Data Policies/View Schema.

    This happens in Live (and UAT from the point it was restored from live). It doesn't happen on my DEV machine which hasn't been restored for a month or so).

    I've tried all the usual, compiles, refreshes, restores, manual deploys, refresh of services.

    The service is SalesSalesInvoiuceService (EndPoint 'Read'),class is salessalesinvoiceservice - both are foundation, but,  the EET field is bespoke. The invoicing has been working since we went live 3 1/2 years ago and justs topped on 2/1/2019 - 22:26 was the last successful run and next invoices to pick up were 4/1/2019 @ 13:46 and it has failed ever since.

    No code deploys were at the point things went wrong - we do our own.

    I'm never quite sure how the 'Shared Types' are mapped to AX or how the XML picks up the correct fields, sorry, AIF isn't my area of specialty.

    Any ideas please or how to trace it ?

    Appreciate the assistance. I've spent over a day trying to trace as to not send EDI invoices out for nearly a month is quite serious.

    Rather interestingly I'm struggling to get to the MS resource also, but, the field is bespoke and is working on my Dev. VM.

    Thanks Dave

    David Coulson
    Graham & Brown

If you've found this thread useful, dive deeper into User Group community content by role