The UI Formatter in the Web Services module references a nonexistent REST message.

Steps to Reproduce


  1. Navigate to Application Configuration > Web Services > Business Rules or System Configuration > Business Logic > Business Rules.

  2. Click the New button to create a new business rule.

  3. Make sure the Web services checkbox is checked.

  4. Click Additional Actions (Context Menu) and select Configure Form Layout.

  5. In the Form view and section area, select Web Services.

  6. Remove Business Rule Outbound REST Formatter from the selected slush bucket and add it back to the Selected section.

    This triggers the sys_ui_macro business_rule_outbound_rest_formatter.

    Two errors appear in the logs:

    • REST Msg Outbound - RESTMessageClient : Error constructing REST Message/Method: undefined/undefined: com.glide.generators.InvalidGlideRecordException:
    • REST Msg Outbound - RESTMessageClient : Error constructing REST Message/Method: incident_test/post: com.glide.generators.InvalidGlideRecordException:



This problem is purely a message on the log files. The functionality and Web Services continue to work correctly.

To solve the problem:

  1. Go to UI Macro, and find business_rule_outbound_rest_formatter.

  2. Remove the following code:

    <g:evaluate jelly="true" >
    var restClient = new sn_ws.RESTMessageV2('incident_test', 'post'); 
    var rest_vars = restClient.getVariables();
    var rest_var_count = rest_vars.length; 

    The three variables restClient, rest_vars and rest_var_count are actually redefined in the containing macro business_rule_outbound_rest, so the code is not required.

Related Problem: PRB665356

Seen In

Eureka Patch 11 Hot Fix 2
Geneva Patch 3
Geneva Patch 3 Hot Fix 2
Geneva Patch 3 Hot Fix 9
Geneva Patch 4
Geneva Patch 5
Geneva Patch 5 Hot Fix 1
Geneva Patch 5 Hot Fix 5
Geneva Patch 6
Geneva Patch 7
Helsinki Patch 2

Fixed In

Helsinki Patch 3

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-03-12 06:15:43