Troubleshoot Intelligent Advisor Interviews In Fusion

Issues that may be encountered in an Intelligent Advisor interview connected to Oracle Fusion are listed in the following table.

Table 1. Issues with Intelligent Advisor interviews in Oracle Fusion
Issue Resolution
Authoring problems
Interview not appearing in the list of interviews available for insertion in Oracle Fusion

Firstly, check that these steps have been followed: Prerequisites for Adding an Interview to Fusion Interfaces

Secondly, check that the Oracle Fusion site is connected to the same Intelligent Advisor Hub as the deployed interview. To do this:

  1. Login to Sales and Service Cloud with security administrator permissions.

  2. In the Setup and Maintenance work area, click the Tasks panel tab, and select Review Topology.

  3. In the Diagnostic Tests tab, select the Enterprise Application Configuration subtab.

  4. In the Enterprise Application list, search for and select OPA_HUB_URL.

  5. Click the Run icon in the Validate External Enterprise Application Endpoint URL row. The Validate Enterprise Application and Module Endpoint URLs page should show a URL in the External Endpoint URL column for OPA_HUB_URL. This is the Hub that the Oracle Fusion site is connected to. Only interviews from this Hub are able to be inserted into the Oracle Fusion site.

The connected Hub can be changed by re-creating the Oracle Fusion connection following the steps in Create a Connection to Oracle Fusion, however, this should only be done if no deployments on the Hub listed in Topology Manager are in use as changing the connected Hub will break any existing connections.

Behavior problems
Oracle Fusion home page is displaying where the Intelligent Advisor interview should be Check the groovy script is correct, and make sure that it refers to a third party application that has already been created
No values are loaded Make sure that the database_id used in the groovy script that launches the Intelligent Advisor interview is correct.
Make sure that a jwt token is passed. For more information, see Create a Connection to Oracle Fusion. If the problem persists, try mapping in a Response Status and Message on the interview to check if there are any errors returned. For more information, see Troubleshoot Oracle Fusion Data Mappings.
No data or partial data is being saved There can be several possible causes of this. Try mapping in the Response Status and Message on the interview to check if there are any errors returned. For more information, see Troubleshoot Oracle Fusion Data Mappings.
Creation of an object is not working The creation of top level objects is not supported for anonymous use. For top level objects, check the user is authenticated. Child level objects can be created. Make sure you have the necessary mapped fields for the object as listed in Save Data to Oracle Fusion.
Partner entry is not loading Partner data, in most cases, uses a different user (CHANNEL_OPERATIONS_MANAGER). Check the Oracle Fusion credentials and see if the Oracle Fusion connection needs to be updated.
Attachment is not being saved In Intelligent Advisor, the Submit button needs to specify that the attachment should be uploaded and attached to the Global entity. Alternatively, check if other data is being saved. If not, try mapping in a Response Status and Message on the interview to check if there are any errors returned. For more information, see Troubleshoot Oracle Fusion Data Mappings.
Delete is not working Deletion is not supported

Interview not resuming from checkpoint

Ensure the steps described in Configure Checkpoints for Oracle Fusion have been followed correctly.

If the Intelligent Advisor interview is an action in Fusion, check that you are using a groovy script that supports checkpoints. Make sure that the object names exactly match in the isResumable and the launching groovy script.

If the problem persists, try using the alternative groovy script provided below. Note that these scripts require that the base interview URL was specified when registering the Intelligent Advisor interview as a third party application or web application.

If launching an Intelligent Advisor interview as a third party application, use the groovy script below and simply update the first five lines to fill in the values for database_id, objectName, policyModelName, jwtTokenName and thirdPartyApplicationName as per your interview and settings:

def database_id = <database_id> // for example: SrId for Service Request
def objectName = '<Object Name>' // for example: ServiceRequest 
def policyModelName = '<policy_model>' 
def jwtTokenName = '<jwt parameter name>'  // for example: jwt. As configured in Intelligent Advisor Hub Connections page.
def thirdPartyApplicationName = '<application_name>'  

def jwtToken=new oracle.apps.fnd.applcore.common.SecuredTokenBean().getTrustToken();
def isResumable = false
def userName = adf.context.getSecurityContext()?.getUserName()
def vo = newView('OPACheckpoints_c')
vo.appendViewCriteria("User_c = '${userName}' and ObjectId_c = '${database_id}' and ObjectName_c = '${objectName}' and PolicyModel_c = '${policyModelName}'")
vo.executeQuery()
if (vo.hasNext()) {
  def row = vo.next()
  def cp_data = row.getAttribute("Checkpoint_c")
  if (cp_data != null && cp_data != ""){
     isResumable = true;
  }  
}
def urlSuffix =  "/${policyModelName}?SurveyCaseId=${database_id}&ObjectName=${objectName}&PolicyModel=${policyModelName}&${jwtTokenName}=${jwtToken}";
def urlPrefix = oracle.topologyManager.client.deployedInfo.DeployedInfoProvider.getEndPoint(${thirdPartyApplicationName});
if(isResumable)
{
return urlPrefix+"/resumesession"+urlSuffix;
}
else
{
return urlPrefix+"/startsession"+urlSuffix;
}
Interview embedded on a subtab keeps restarting mid way through In Application Composer, edit the details page for the subtab and select the Enable enhanced content reset protection check box.
Appearance problems
Interview appears with a blue gutter

In Policy Modeling, change the interview theme Oracle Fusion. For more information, see Apply Oracle Fusion Styling to an Interview. Alternatively, use the Styles settings to change the gutter color to white. For more information, see Change the gutter color of the page.

For an interview embedded as a subtab in Fusion classic interfaces, increase the interview page width to fill the subtab or change the gutter color and border color to match the page background color.

Interview is too narrow on the page In Policy Modeling, change the interview theme Oracle Fusion. For more information, see Apply Oracle Fusion Styling to an Interview. Alternatively, use the Styles settings to increase the page width. For more information, see Change the page width.
Errors
"Invalid Url" is displaying where Intelligent Advisor interview should be Check the groovy script is correct
"Unable to load interview" For an interview embedded in an agent interface, the site needs to be added as a CORS host. For more information, see Configure Browser Access for Embedded Interviews.
"Error parsing response from data service" error message in interview Check that Oracle Fusion connection in Intelligent Advisor Hub has the Provide OAUTH bearer token in HTTP header on Load and Save actions option selected, and the URL Parameter is jwt.
Field attribute is read-only exception This can occur when a field in the interview is mapped out but the underlying service or user doesn't have permission to update the field. Any fields that need to be updated or modified need to be manually configured using Application Composer.
DataObject failure error This will occur when field names and API names used in a Fixed Choice List start with a number or lowercase letter. Make sure that field and API names only start with a capital letter.
"Policy model "<policy_model_name>" does not support locale: startsession" error Check that the groovy script for resuming the Intelligent Advisor interview from a previously saved checkpoint is correct. Ensure that the base interview URL was specified when registering the Intelligent Advisor interview as a third party application or web application.
Error shown when you click the Next button Check your browser settings to ensure that third-party cookies are allowed. If you are using Google Chrome version 80 and later, you will also need to disable "SameSite by default cookies" in chrome://flags.
"An error occurred trying to process your request" is displaying where the Intelligent Advisor interview should be Check the Intelligent Advisor Hub message log for details
"This interview can only be launched by a logged in agent or employee" The interview cannot work with Fusion data without required authorizations in place. Check that the interview is being accessed by a logged in Fusion user via one of the supported mechanisms or, if not, that user-based compliance is managed.
"Property FragmentVariable.@dt expects values of types [FragmentVariableDtMetadata] but got VariableDtMetaData"

The Intelligent Advisor Interview component needs to be added to the page in Page Designer, not inside a fragment. Adding the component to a fragment causes the error as fragment placement is not supported. See Extend a Visual Builder Application with Intelligent Advisor Interviews and follow the documented steps for adding the component to a page.

If you have a use case that will only work with the Intelligent Advisor Interview component inside a fragment, reach out and share your feedback.

Tip: To enable troubleshooting of data-bound Intelligent Advisor interviews, errors and warnings that occur during data loading and saving via a connector framework web service connection are logged to Intelligent Advisor Hub. These errors are available to Connections administrators in the Message log. For more information, see Troubleshoot Connector Framework Web Service Connection Interviews.