waldo’s blog

Microsoft Dynamics NAV

Intervat 8.0: Mind the namespaces! (5)

Here’s another update for Intervat 8.0 for an inconsitency in report 11307 regarding the namespace. These have been defined as text constants and these text constants have been translated, what caused the output with BE-FR (FRB) language have a wrong namespace.

How do you fix this?

  • Remove thee textconstants:
    • Text014@1010004
    • Text018@1010002
    • Text019@1010003
    • Text020@1010005
  1. Add a global variable: DocNameSpace@1010003 : Text[50];
  2. Make sure that everywhere in the document, Text018 is replaced with DocNameSpace.
  3. Before:

    LOCAL PROCEDURE AddHeader@1010007(…);
    BEGIN
    INTERVATHelper.AddAttribute(XMLCurrNode,’VATDeclarationsNbr’,'1′);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xsi:schemaLocation’,Text020);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xmlns’,Text018);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xmlns:common’,Text019);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xmlns:xsi’,Text014);
    END;

    Â
     

    After:

    LOCAL PROCEDURE AddHeader@1010007(…);
    BEGIN
    DocNameSpace := ‘http://www.minfin.fgov.be/VATConsignment‘;
    INTERVATHelper.AddAttribute(XMLCurrNode,’VATDeclarationsNbr’,'1′);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xsi:schemaLocation’,DocNameSpace + ‘ NewTVA-in_v0_7.xsd’);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xmlns’,DocNameSpace);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xmlns:common’,'http://www.minfin.fgov.be/InputCommon’);
    INTERVATHelper.AddAttribute(XMLCurrNode,’xmlns:xsi’,'http://www.w3.org/2001/XMLSchema-instance’);
    END;

This is an official update, which should already have been communicated to all partners. But .. I didn’t receive this communication myself officially (only the fact that it should have … unofficially) .. so to be sure y’all have it .. here you go!

Disclaimer

To be official .. I’m not responsible for any info of this post .. check your contact at Microsoft (PAM or TSAM) to be sure. [:)]

Links

I’m starting to have quite some updates on intervat. Let’s summarize what I have written about it:

February 16th, 2012 Posted by waldo | Dynamics NAV, Updates | 3 comments

3 Comments »

  1. Why not just change the FRB-caption of TextConstant Text014 in this report instead of making these code changes?

    Comment by Luc Van Dyck | February 16, 2012

  2. I didn’t create the fix ;-) .. just passing Microsoft’s info.
    :-)

    Comment by waldo | February 16, 2012

  3. I know. It’s strange how they solved this bug.

    Comment by Luc Van Dyck | February 16, 2012

Leave a comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word