XML Payload error related to update set, possibly related to sys_ui_policy

Menna Kearns
Tera Guru

Going through skipped items after an upgrade, and have several I cannot resolve conflicts on and I am not sure what I should be looking for.

 

Steps to reproduce:

1. Click on upgrade item to resolve conflicts. Error: "Unable to find root for XML payload."

 

2. Using Field Watcher from an example incident form I was able to find the corresponding UI Policy for one of the fields ("closed_by") with the above issue. All fields with this XML issue share the same UI Policy.


3. From there the XML payload can be found in the most recent update set (State is “Current”).

 

4. Root note is <record_update sys_domain="global" table="sys_ui_policy">

XML Payload:

 

<?xml version="1.0" encoding="UTF-8"?><record_update sys_domain="global" table="sys_ui_policy"><sys_ui_policy action="INSERT_OR_UPDATE"><active>true</active><conditions table="incident">stateIN700,7,8^active=false^NQstate=6^EQ<item display_value="700,7,8" endquery="false" field="state" goto="false" newquery="false" operator="IN" or="false" value="700,7,8"/><item endquery="false" field="active" goto="false" newquery="false" operator="=" or="false" value="false"/><item display_value="Resolved" endquery="false" field="state" goto="false" newquery="true" operator="=" or="false" value="6"/><item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/></conditions><description/><global>true</global><inherit>true</inherit><isolate_script>false</isolate_script><model_id/><model_table/><on_load>true</on_load><order>900</order><reverse_if_false>true</reverse_if_false><run_scripts>true</run_scripts><script_false><![CDATA[function onCondition() {
	try{
		var roFields = g_scratchpad.defaultClosedReadOnlyFields;
		var array = roFields.split(",");
		for (var i=0; i < array.length; i++) {
			g_form.setReadOnly(array[i],false);
		}		
		// Only allow recategorization of closed tasks by Admins
		g_form.setReadOnly('u_category',false);
	}
	catch(e){
		g_form.addInfoMessage("An error occurred:  " + e.message);
	}

}]]></script_false><script_true><![CDATA[function onCondition() {
	try{
		var roFields = g_scratchpad.defaultClosedReadOnlyFields;
		var array = roFields.split(",");
		for (var i=0; i < array.length; i++) {
			g_form.setReadOnly(array[i],true);
		}		
		// Only allow recategorization of closed tasks by Admins
		if(!g_user.hasRole('admin')){
			g_form.setReadOnly('u_category',true);
		}
	}
	catch(e){
		g_form.addInfoMessage("An error occurred:  " + e.message);
	}

}]]></script_true><set_values/><short_description>Make fields read-only when Closed, Cancelled, or Resolved - INCIDENT</short_description><sys_class_name>sys_ui_policy</sys_class_name><sys_created_by>glide.maint</sys_created_by><sys_created_on>2007-10-03 17:46:49</sys_created_on><sys_customer_update>false</sys_customer_update><sys_domain>global</sys_domain><sys_id>66f94c730a0a0b0900aaaf5b88527230</sys_id><sys_mod_count>3</sys_mod_count><sys_name>Make fields read-only when Closed, Cancelled, or Resolved - INCIDENT</sys_name><sys_overrides/><sys_package display_value="UI Policy Rules" source="com.glide.ui_policy">837945300f222100988f0bcce1050e56</sys_package><sys_policy/><sys_replace_on_upgrade>false</sys_replace_on_upgrade><sys_scope display_value="Global">global</sys_scope><sys_update_name>sys_ui_policy_66f94c730a0a0b0900aaaf5b88527230</sys_update_name><sys_updated_by>sarah.kiswani</sys_updated_by><sys_updated_on>2020-12-01 16:54:14</sys_updated_on><table>incident</table><u_invisible/><u_mandatory/><u_read_only/><u_visible/><ui_type/><view/></sys_ui_policy></record_update>

 

 

0 REPLIES 0