Resolving field conflicts in custom reports after upgrading to 21.3 or later
To resolve field conflicts
- Export custom reports from your source system.
- Import the reports into your target system.
Any field conflict errors that might occur are displayed, such as in the following example: - Edit the view and expand the form that has field conflicts.
The following image shows the missing fields in red in the Primary Case form in the Case View. - Click each field and remap it to the correct field, and save it.
- Run the report query and replace the deprecated fields.
To resolve the BMC Helix Innovation Suite Foundation data references in affected custom reports
Run the following query to get a list of reports with BMC Helix Innovation Suite Foundation data references:
select distinct rh.reportid,rh.reportname,rv.viewid,rv.viewname,rv.viewdescription,rft.columnname,rft.refrltshptypecode,rft.validationfunctionname from reportheader rh
left join reportview rv on (rv.parentviewid = rh.viewid)
left join reportfieldtemplate rft on (rft.viewid = rv.viewid)
where rh.reportstatuscode = 'OPEN' and rv.viewname like '`AR System Schema`.`com.bmc.arsys.rx.foundation%'The list of reports with reference to com.bmc.arsys.rx.foundation are displayed.
- Open the report in which you find references to BMC Helix Innovation Suite Foundation data.
For a complete list of the fields that are changed, see Mapping-of-BMC-Helix-Business-Workflows-fields-to-Foundation-records.
Find the references for com.bmc.arsys.rx.foundation.
SELECT DISTINCT
`com.bmc.dsm.case-lib:Case`.`Display ID` AS C1,
CASE
WHEN `com.bmc.dsm.case-lib:Case`.`Category Tier 1` = `com.bmc.arsys.rx.foundation:Operational Category 1`.`ID` THEN `com.bmc.arsys.rx.foundation:Operational Category 1`.`Categorization Name`
ELSE 'No Category'
END,
CASE
WHEN `com.bmc.dsm.case-lib:Case`.`Category Tier 2` = `com.bmc.arsys.rx.foundation:Operational Category 2`.`ID` THEN `com.bmc.arsys.rx.foundation:Operational Category 2`.`Categorization Name`
ELSE 'No Category'
END
FROM `AR System Schema`.`com.bmc.dsm.case-lib:Case`
LEFT OUTER JOIN `AR System Schema`.`com.bmc.arsys.rx.foundation:Operational Category` AS `com.bmc.arsys.rx.foundation:Operational Category 1`
ON (
`com.bmc.dsm.case-lib:Case`.`Category Tier 1` = `com.bmc.arsys.rx.foundation:Operational Category 1`.`ID`
)
LEFT OUTER JOIN `AR System Schema`.`com.bmc.arsys.rx.foundation:Operational Category` AS `com.bmc.arsys.rx.foundation:Operational Category 2`
ON (
`com.bmc.dsm.case-lib:Case`.`Category Tier 2` = `com.bmc.arsys.rx.foundation:Operational Category 2`.`ID`
)
GROUP BY
`com.bmc.dsm.case-lib:Case`.`Display ID`,
CASE
WHEN `com.bmc.dsm.case-lib:Case`.`Category Tier 1` = `com.bmc.arsys.rx.foundation:Operational Category 1`.`ID` THEN `com.bmc.arsys.rx.foundation:Operational Category 1`.`Categorization Name`
ELSE 'No Category'
END,
CASE
WHEN `com.bmc.dsm.case-lib:Case`.`Category Tier 2` = `com.bmc.arsys.rx.foundation:Operational Category 2`.`ID` THEN `com.bmc.arsys.rx.foundation:Operational Category 2`.`Categorization Name`
ELSE 'No Category'
ENDAccording to the Case Record Definition table in Mapping-Foundation-fields-for-custom-reports-after-upgrading-to-21-3-or-later, the category values are stored in the Case Record Definition form. The existing category values must be removed from the com.bmc.arsys.rx.foundation:Operational Category form.
- To remove the category values from the com.bmc.arsys.rx.foundation:Operational Category form, open the form in the edit mode.
- From the left bottom of the form, click Edit View.
- Review the reports that will be modified when you edit the view, and click Edit.
Delete the com.bmc.arsys.rx.foundation:Operational Category join.
- Save and publish the view.
On the Edit Report page, remove the category 1 references from the report as follows:
Report with BMC Helix Innovation Suite Foundation data referenceCASE
WHEN `com.bmc.dsm.case-lib:Case`.`Category Tier 1` = `com.bmc.arsys.rx.foundation:Operational Category 1`.`ID` THEN `com.bmc.arsys.rx.foundation:Operational Category 1`.`Categorization Name`
ELSE 'No Category'
ENDReport after removing the category tier 1 reference to BMC Helix Innovation Suite Foundation dataCASE
WHEN `com.bmc.dsm.case-lib:Case`.`Category Tier 1` is not null THEN `com.bmc.dsm.case-lib:Case`.`Category Tier 1`
ELSE 'No Category'
END- Repeat the steps for references in other reports to BMC Helix Innovation Suite Foundation data.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*