Question 50
A Dynamics 365 Business Central development project faces this issue: A warehouse upload should reject unknown product codes before updating its inventory staging records. Which action best addresses the requirement?
Explanation
Correct Answer
This resolves the scenario's main defect: Parsing success alone does not establish that imported values satisfy business rules. A practical validation is: An invalid product code is rejected or quarantined without corrupting accepted records.
Incorrect Answers
This option serves the scenario “A partner supplies XML namespaces that differ from the names expected by an existing XMLport”. Namespace and node mismatches can make a well-formed XML document fail mapping. The present scenario is distinguished by “Add validation in the XMLport import path and table logic with controlled error handling”.
This alternative addresses the separate case “An XMLport exports a decimal amount with the wrong formatting for a third-party processor”. Data exchange must honor precision and representation contracts beyond AL field types. The deciding requirement here is “Add validation in the XMLport import path and table logic with controlled error handling”.
The option would apply to “A company moves import processing from the UI into a scheduled job but wants to preserve the same file schema”. Exchange objects can be reused beyond an interactive upload when the same contract applies. This question instead requires “Add validation in the XMLport import path and table logic with controlled error handling”.