You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

No line is imported after you import an XBRL Taxonomy file in Microsoft Dynamics NAV 2009 with hotfix 2499932 applied

This article applies to Microsoft Dynamics NAV for all countries and all language locales.
SYMPTOMS
Assume that you apply hotfix 2499932 in Microsoft Dynamics NAV 2009. When you import XBRL Taxonomy files, no line is imported as expected.
For more information about hotfix 2499932, click the following article number to view the article in the Microsoft Knowledge Base:
2499932 Labels and presentations in XBRL taxonomies are not imported as expected in Microsoft Dynamics NAV 2009
This problem occurs in the following products:
  • Microsoft Dynamics NAV 2009 R2
  • Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
  • Microsoft Dynamics NAV 2009

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Dynamics NAV 2009 service pack or the next Microsoft Dynamics NAV version that contains this hotfix.

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.


Installation information

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Note Before you install this hotfix, verify that all Microsoft Navision client users are logged off the system. This includes Microsoft Navision Application Services (NAS) client users. You should be the only client user who is logged on when you implement this hotfix.

To implement this hotfix, you must have a developer license.

We recommend that the user account in the Windows Logins window or in the Database Logins window be assigned the "SUPER" role ID. If the user account cannot be assigned the "SUPER" role ID, you must verify that the user account has the following permissions:
  • The Modify permission for the object that you will be changing.
  • The Execute permission for the System Object ID 5210 object and for the System Object ID 9015 object.


Note You do not have to have rights to the data stores unless you have to perform data repair.

Code changes

Note Always test code fixes in a controlled environment before you apply the fixes to your production computers.
To resolve this problem, follow these steps:
  1. Change the code in the Properties in the XBRL Import Taxonomy Spec. 2 codeunit (422) as follows:
    Existing code
    ...TaxonomyNode := TaxonomyDocument.documentElement;IF NOT TaxonomyNode.hasChildNodes THENERROR(Text005,TABLECAPTION,"Line No.");targetNamespace := GetAttribute('targetNamespace',TaxonomyNode);"xmlns:xbrli" := GetAttribute('xmlns:xbrli',TaxonomyNode);IF "xmlns:xbrli" = '' THEN"xmlns:xbrli" := GetAttribute('xmlns:xbrl',TaxonomyNode);IF "xmlns:xbrli" = '' THEN...
    Replacement code
    ...TaxonomyNode := TaxonomyDocument.documentElement;IF NOT TaxonomyNode.hasChildNodes THENERROR(Text005,TABLECAPTION,"Line No.");// Add the following line.DocumentPrefix := GetDocumentPreFix(TaxonomyNode);targetNamespace := GetAttribute('targetNamespace',TaxonomyNode);"xmlns:xbrli" := GetAttribute('xmlns:xbrli',TaxonomyNode);IF "xmlns:xbrli" = '' THEN"xmlns:xbrli" := GetAttribute('xmlns:xbrl',TaxonomyNode);IF "xmlns:xbrli" = '' THEN...
  2. Change the code in the Global Variables in the XBRL Import Taxonomy Spec. 2 codeunit (422) as follows:
    Existing code
    ...targetNamespacePrefix@1009 : Text[250];xsdPrefix@1018 : Text[250];xbrliPrefix@1019 : Text[250];XLinkPrefix@1017 : Text[250];LinkPrefix@1007 : Text[250];LOCAL PROCEDURE ImportLinkbase@11(XBRLSchema@1000 : Record 399;LinkBaseType@1001 : 'Label,Presentation,Calculation,Reference';LinkBaseName@1002 : Text[250]);VARXBRLLinkbase@1003 : Record 400;RBAutoMgt@1004 : Codeunit 419;...
    Replacement code
    ...targetNamespacePrefix@1009 : Text[250];xsdPrefix@1018 : Text[250];xbrliPrefix@1019 : Text[250];XLinkPrefix@1017 : Text[250];LinkPrefix@1007 : Text[250];// Add the following line.DocumentPrefix@1020 : Text[30];LOCAL PROCEDURE ImportLinkbase@11(XBRLSchema@1000 : Record 399;LinkBaseType@1001 : 'Label,Presentation,Calculation,Reference';LinkBaseName@1002 : Text[250]);VARXBRLLinkbase@1003 : Record 400;RBAutoMgt@1004 : Codeunit 419;...
  3. Change the code in the HandleDocument function in the XBRL Import Taxonomy Spec. 2 codeunit (422) as follows:
    Existing code 1
    ...TaxonomyNodeList.reset;TaxonomyNode := TaxonomyNodeList.nextNode;NoOfNodes := TaxonomyNodeList.length;Progress := 0;NewProgress := 0;// Delete the following lines.i := 0;WHILE NOT ISCLEAR(TaxonomyNode) DO BEGINIF TaxonomyNode.nodeName= STRSUBSTNO('%1element',xsdPrefix) THEN// End of the lines.HandleElement(TaxonomyNode,0,-1);i := i + 1;NewProgress := ROUND(i / NoOfNodes * 10000,1);IF (Progress = 0) OR (NewProgress >= Progress + 100) THEN BEGINProgressBox.UPDATE(2,NewProgress);...
    Replacement code 1
    ...TaxonomyNodeList.reset;TaxonomyNode := TaxonomyNodeList.nextNode;NoOfNodes := TaxonomyNodeList.length;Progress := 0;NewProgress := 0;// Add the following lines.i := 0; WHILE NOT ISCLEAR(TaxonomyNode) DO BEGINIF TaxonomyNode.nodeName IN[STRSUBSTNO('%1element',xsdPrefix),STRSUBSTNO('%1element',DocumentPrefix),STRSUBSTNO('element')] THEN// End of the lines.HandleElement(TaxonomyNode,0,-1);i := i + 1;NewProgress := ROUND(i / NoOfNodes * 10000,1);IF (Progress = 0) OR (NewProgress >= Progress + 100) THEN BEGINProgressBox.UPDATE(2,NewProgress);...
    Existing code 2
    ...END;TaxonomyNode := TaxonomyNodeList.nextNode;END;SortPresentationOrder(0,0,'');// Update from existing data, if anyProgressBox.UPDATE(1,STRSUBSTNO(Text008,XBRLSchema."XBRL Taxonomy Name"));ProgressBox.UPDATE(2,0);Progress := 0;NewProgress := 0;...
    Replacement code 2
    ...END;TaxonomyNode := TaxonomyNodeList.nextNode;END;SortPresentationOrder(0,0,'');// Add the following lines.IF TempXBRLLine.COUNT = 0 THENEXIT;// End of the lines.// Update from existing data, if anyProgressBox.UPDATE(1,STRSUBSTNO(Text008,XBRLSchema."XBRL Taxonomy Name"));ProgressBox.UPDATE(2,0);Progress := 0;NewProgress := 0;...
  4. Change the code in the ImportPresentation function in the XBRL Import Taxonomy Spec. 2 codeunit (422) as follows:
    Existing code 1
    ...TempXBRLSchema.GET(TempXBRLLine."XBRL Taxonomy Name",TempXBRLLine."XBRL Schema Line No.");FromSchemalocation := TempXBRLSchema.schemaLocation;XMLNode :=LinkbaseDocNode.selectSingleNode(STRSUBSTNO(// Delete the following line.'%3presentationLink/%3loc[@%4href="%1#%2"]',FromSchemalocation,TempXBRLLine.Name,LinkPrefix,XLinkPrefix));IF NOT ISCLEAR(XMLNode) THEN BEGINfromLabel := GetAttribute(XLinkPrefix + 'label',XMLNode);IF XBRLSchema."xmlns:xbrli" = 'http://www.xbrl.org/2001/instance' THEN // spec. 2.0XMLNodeList :=...
    Replacement code 1
    ...TempXBRLSchema.GET(TempXBRLLine."XBRL Taxonomy Name",TempXBRLLine."XBRL Schema Line No.");FromSchemalocation := TempXBRLSchema.schemaLocation;XMLNode :=LinkbaseDocNode.selectSingleNode(STRSUBSTNO(// Add the following line.'%3presentationLink/%3loc[@%4label="%2"]',FromSchemalocation,TempXBRLLine.Name,LinkPrefix,XLinkPrefix));IF NOT ISCLEAR(XMLNode) THEN BEGINfromLabel := GetAttribute(XLinkPrefix + 'label',XMLNode);IF XBRLSchema."xmlns:xbrli" = 'http://www.xbrl.org/2001/instance' THEN // spec. 2.0XMLNodeList :=...
    Existing code 2
    ...ELSETempXBRLLine.SETRANGE("XBRL Schema Line No.");END;IF TempXBRLLine.FIND('-') THEN BEGINTempXBRLLine."Parent Line No." := XBRLTaxonomyLine2."Line No.";// Delete the following line.TempXBRLLine."Presentation Order No." := Order;TempXBRLLine.MODIFY;END;TempXBRLLine.COPY(XBRLTaxonomyLine2);TempXBRLLine.SETCURRENTKEY("XBRL Taxonomy Name","Line No.");END;...
    Replacement code 2
    ...ELSETempXBRLLine.SETRANGE("XBRL Schema Line No.");END;IF TempXBRLLine.FIND('-') THEN BEGINTempXBRLLine."Parent Line No." := XBRLTaxonomyLine2."Line No.";// Add the following line.TempXBRLLine."Presentation Order No." := ROUND(Order,1,'=');TempXBRLLine.MODIFY;END;TempXBRLLine.COPY(XBRLTaxonomyLine2);TempXBRLLine.SETCURRENTKEY("XBRL Taxonomy Name","Line No.");END;...
  5. Change the code in the ImportCalculation function in the XBRL Import Taxonomy Spec. 2 codeunit (422) as follows:
    Existing code
    ...TempXBRLSchema.GET(XBRLTaxonomyLine."XBRL Taxonomy Name",XBRLTaxonomyLine."XBRL Schema Line No.");FromSchemalocation := TempXBRLSchema.schemaLocation;XMLNode :=LinkbaseDocNode.selectSingleNode(STRSUBSTNO(// Delete the following line.'%3calculationLink/%3loc[@%4href="%1#%2"]',FromSchemalocation,XBRLTaxonomyLine.Name,LinkPrefix,XLinkPrefix));IF NOT ISCLEAR(XMLNode) THEN BEGINfromLabel := GetAttribute(XLinkPrefix + 'label',XMLNode);IF XBRLSchema."xmlns:xbrli" = 'http://www.xbrl.org/2001/instance' THEN // spec. 2.0XMLNodeList :=...
    Replacement code
    ...TempXBRLSchema.GET(XBRLTaxonomyLine."XBRL Taxonomy Name",XBRLTaxonomyLine."XBRL Schema Line No.");FromSchemalocation := TempXBRLSchema.schemaLocation;XMLNode :=LinkbaseDocNode.selectSingleNode(STRSUBSTNO(// Add the following line.'%3calculationLink/%3loc[@%4label="%2"]',FromSchemalocation,XBRLTaxonomyLine.Name,LinkPrefix,XLinkPrefix));IF NOT ISCLEAR(XMLNode) THEN BEGINfromLabel := GetAttribute(XLinkPrefix + 'label',XMLNode);IF XBRLSchema."xmlns:xbrli" = 'http://www.xbrl.org/2001/instance' THEN // spec. 2.0XMLNodeList :=...
  6. Change the code in the GetDocumentPreFix function in the XBRL Import Taxonomy Spec. 2 codeunit (422) as follows:
    Existing code
    ...CLEAR(OutStr);EXIT(s);END;EVENT TaxonomyDocument@1020013::ondataavailable@198();BEGINEND;EVENT TaxonomyDocument@1020013::onreadystatechange@-609();...
    Replacement code
    ...CLEAR(OutStr);EXIT(s);END;// Add the following lines.PROCEDURE GetDocumentPreFix@1170000000(TaxonomyNode@1000 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{2933BF80-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v3.0'.IXMLDOMNode") : Text[30];BEGINIF STRPOS(TaxonomyNode.nodeName,':') > 1 THENEXIT(COPYSTR(TaxonomyNode.nodeName,1,STRPOS(TaxonomyNode.nodeName,':')));END;// End of the lines.EVENT TaxonomyDocument@1020013::ondataavailable@198();BEGINEND;EVENT TaxonomyDocument@1020013::onreadystatechange@-609();...

Prerequisites

You must have one of the following products installed to apply this hotfix:
  • Microsoft Dynamics NAV 2009 R2 with hotfix 2499932 applied
  • Microsoft Dynamics NAV 2009 Service Pack 1 (SP1) with hotfix 2499932 applied
  • Microsoft Dynamics NAV 2009 with hotfix 2499932 applied

Removal information

You cannot remove this hotfix.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 2668392 - Last Review: 02/17/2012 02:25:00 - Revision: 1.0

  • Microsoft Dynamics NAV 2009
  • kbqfe kbmbsmigrate kbsurveynew kbmbscodefix KB2668392
Feedback
eta');m.name='ms.dqp0';m.content='true';document.getElementsByTagName('head')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?">