KB Article #190928
Typo in MetadataProfile condition “Trading Engine: ConsumptionFileNameExtension”
Problem
1. Create a Metadata Profile named “MDP_TestFilenameExtension” with the condition “Trading Engine: ConsumptionFileNameExtension equals .mdptest” (The metadata service used can be anything, doesn’t matter)
2. Disable all other metadata profiles to avoid interference during test
3. Drop a file named “testfile.mdptest” in a filesystem TradingPickup (in Standard mode)
- Expected outcome: The test file is matched with the “MDP_TestFilenameExtension” medata profile
- Actual outcome: The test file is not matched with the “MDP_TestFilenameExtension” medata profile – BAD!
Resolution
1. Modify the file “$CORE_SOLUTIONS/config/b2bx/server/metadata_attributes.cfg” and change the “Trading Engine: ConsumptionFileNameExtension” entry to “Trading Engine: ConsumptionFilenameExtension” and then restart B2Bi
2. Open the “MDP_TestFilenameExtension” and delete/re-add the “Trading Engine: ConsumptionFilenameExtension equals .mdptest” condition (notice that attribute name casing is now correct after metadata_attributes.cfg was changed)
3. Drop a file named “testfile.mdptest” in a filesystem TradingPickup (in Standard mode)
- Expected outcome: The test file is matched with the “MDP_TestFilenameExtension” medata profile
- Actual outcome: The test file is now correctly matched with the “MDP_TestFilenameExtension” medata profile – all good!
*OR to use "Trading Engine: ConsumptionFilename" "ends with" the respective extension.