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
- Add a global variable: DocNameSpace@1010003 : Text[50];
- Make sure that everywhere in the document, Text018 is replaced with DocNameSpace.
-
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:
- Intervat 8.0: A new update for Belgium .. you might want to take a seat..
- Intervat 8.0: A new update for Belgium (2)
- Intervat 8.0: A new update for Belgium (3 - re-release) - What now?
-
- I just got a comment today that this might not be necessary .. so take that into account.
-
Intervat 8.0: Mind the namespaces! (5)
- (it’s this current post
)
- (it’s this current post
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
I didn’t create the fix
.. just passing Microsoft’s info.

Comment by waldo | February 16, 2012
I know. It’s strange how they solved this bug.
Comment by Luc Van Dyck | February 16, 2012