WDF 2570020 – Template b1ilib.istrgCharOcc already defined in this stylesheet error during replication

WDF 2570020 – Template b1ilib.istrgCharOcc already defined in this stylesheet error during replication

Symptom

The following error occurs while replicating either master data or a transaction to the participating company:

TransformerConfigurationException: bizstore:/com.sap.b1i.system.lib/xsl/string.xsl: line 798: Template 'b1ilib.istrgCharOcc' already defined in this stylesheet. Further details: BizFlow-URI: /com.sap.b1i.dev.runtime/bfd/B1if.comp.bfd#finalize

Reproducing the Issue
Prerequisites

You are using SAP B1 version 10.0 FP 2608.

Scenario
1. Create or update a global master data or any intercompany transaction document for replication.
2. The solution will trigger the replication of the master data or transaction to the participating company.
3. Check the replication status in the Intercompany Message Log.

Expected Result

The master data or transaction should be replicated successfully to the participating company without any transformation error.

Actual Result

The "Template b1ilib.istrgCharOcc is already defined in this stylesheet" error occurs during replication.

Workaround

The attached ZIP file (Count: 1) needs to be imported via Zip Import in SAP Business One Integration Framework 2.0 by following the steps below:
1. Take a backup of the ns.xml file
  1. Log in to Integration Framework 2.0.
  2. Go to Tools → Control Center → Maintenance → BizStore Export.
  3. Under Exporting Content from BizStore, in the Selection Criteria, select the Dataset button.
  4. In Choose Dataset, select the value com.sap.b1i.dev.runtime and click Submit.
  5. Save the exported file in the relevant folder.
2. Import the attached file:
  1. Go to SAP B1if 2.0 and navigate to Maintenance.
  2. Select Zip Import.
  3. Under the BizStore Import section, in the Choose Archive field, click Choose File.
  4. Select the downloaded attached file.
  5. Click Submit.
Solution

The issue described above is related to the SAP Business One Integration Framework (B1if).

Product
Product or Product Version
B1 INTERCOMPANY INTEGRATION
SAP B1 10.0 FOR SAP HANA
SAP B1 9.3 FOR SAP HANA
SAP BUSINESS ONE 10.0
SAP BUSINESS ONE 9.3

This document refers to : 
WDF 2570001 - Overview Note for Intercompany integration solution Version 57 for SAP Business One