-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions
- Magento 2.2.2
Steps to reproduce
- After a fresh install of version 2.2.2, a system message was received that Synchronization Failed with Magento Business Intelligence (I don't remember the exact message).
- To prevent further synchronization error messages, go to
Stores > Configuration > General > Advanced Reporting
and change Advanced Reporting Service to Disable - Press Save Config
Expected result
- The advanced reporting capabilities should be disabled.
Actual result
- The following weird error message is received:
Please select a vertical.
- The advanced reporting capabilities revert back to being enabled.
Reason and Proposed Solutions
The error is thrown from Magento\Analytics\Model\Config\Backend\Vertical::beforeSave()
method because I did not select an Industry under Industry Data. That defaults to --Please Select--
and is an empty value, so beforeSave()
behaves as it should.
Since the Advanced Reporting needs an external account and service, it should default to Disable on new installs. However, if it was Magento's intention to have it enabled for all new installs, then 1) the logic should be changed so an empty value for the Industry can be provided when Advanced Reporting Service is set to Disable and Save Config is pressed or 2) a more detailed error message should be displayed so merchants understand that an Industry must be provided, even to Disable the Advanced Reporting Service.