Diagnostics and Troubleshooting

This chapter covers the following topics:

Overview of Diagnostics and Troubleshooting Chapter

This section contains instructions on error corrections and troubleshooting for problems that you may encounter in configuration or administration of Oracle iStore.

For troubleshooting Oracle Configurator integration, see the chapter, Integrating Oracle iStore with Oracle Configurator.

Oracle CRM Diagnostics

Oracle CRM Diagnostics is a tool that provides system integrators, consultants, and support analysts with a robust troubleshooting aids for diagnosing and troubleshooting Oracle products.

The diagnostic tests provided as part of the Oracle Diagnostics Support Pack gather information and perform a set of tests on that information. The results include the output of information gathered, the results of the tests and appropriate actions to take. The tests provided do not alter data or setup.

The Support Packs are updated and released on a monthly basis and include the latest updates to existing tests and all new tests that are available.

For more information, see Oracle E-Business Suite Maintenance Guide.

Browser Cookies and Oracle Java Applications

Sometimes, clearing all browser cookies can solve errors that occur when accessing Oracle's Java-based applications. To do so, follow the steps relevant to the browser you are using.

Steps to Check JTT Cookie Properties

To check the JTT cookie properties:

  1. Login to the Oracle CRM Login Servlet as system administrator.

  2. Select Settings, then System, then Properties, then Advanced.

  3. Select JTF from the View drop-list to view only JTF properties.

  4. Navigate to desired property cookie_name and select it. The Key Details page appears, where the current property values are displayed in Sequence.

How to Find the JTT Session Cookie Name

You can also find the JTT Session Cookie name by doing the following:

  1. Enable cookie prompt in your browser.

  2. Clear your browser cookies.

  3. Go to your Site Home Page. You should be able to see the JTT Session Cookie name in one of the pop-up windows.

Setting up User-Level Logging

Oracle iStore allows user level logging of debug messages. This feature creates separate user log files for the JSP/Java and PL/SQL layers. You should only use this feature to diagnose problems in the application.

You can activate user-level logging by setting the profile option, IBE: Enable Debug, to Yes at the user level for a specific user.

If you want to enable log files for Oracle Order Capture, set the profile, ASO: Enable ASO Debug, to Yes at the user level. This will ensure that Oracle Order Capture-related logging messages will appear in the PL/SQL log files along with those for Oracle iStore, Oracle Order Management, and Oracle Pricing.

Important: If you have set the IBE: Debug profile option to Yes for a user, verify or set the profile option OM: Debug Log Directory at site level to a directory that is writable by the database server. Oracle iStore Customer UI user-specific logs for the PL/SQL layer are written in this directory.

Steps to Set up JSP/Java Level Logging

You may use the following steps to set up JSP/Java Level Logging:

  1. Set the profile option IBE: Enable Debug to Yes at user level for a user.

    When a user logs in to the Oracle iStore Customer UI, the application creates a user-specific log file in the same directory as the system log file. As long as the user session is valid, all log messages are written to the same log file.

    The file name has the syntax IBE_<Username>_<Random Number>.log.

  2. Note that the log directory in which Oracle iStore resides is specified in the Jserv Property file.

    Example: If Jserv.properties has:

    wrapper.bin.parameters=-Dserv.Logging.common.filename=D:\temp\ibe.log

    at runtime you will have a log filename like:

    D:\temp\ibe.log_3_1afaef486a7fd3aa8000_IBE.txt

Steps to Set up PL/SQL Level Logging

You may use the following steps to set up PL/SQL Level Logging:

  1. Set the profile option, IBE: Enable Debug, to Yes at user level for a user.

  2. Define database directories for PL/SQL file I/O.

    See My Oracle Support Knowledge Document 2525754.1, Using UTL_FILE_DIR or Database Directories for PL/SQL File I/O in Oracle E-Business Suite Releases 12.1 and 12.2.

  3. Set the profile option, OM: Debug Log Directory, at site level to one of the database directories defined for PL/SQL file I/O.

When a user logs in to the Oracle iStore Customer UI, the application writes all log messages for the user to a user-specific log file in the directory specified by OM: Debug Log Directory.

The file name has the syntax IBE_<Username>.log.

Technology Stack Debugging

You may need to perform debugging on the Oracle CRM Technology Foundation technology stack. This might be necessary if, for example, you are receiving request time-out or login errors. If you have contacted Oracle Support, your support agent may ask you to set up the technology stack debugging.

In this case, in order to enable the Oracle CRM Technology Foundation logging trails, set the framework and service logging levels to DEBUG.

Note: For performance reasons, it is recommended that you only enable debugging on the technology stack if it is required.

Receiving Diagnostic Messages

When there is an Oracle iStore application error in the sites, such as an exception, Oracle iStore delivers a diagnostic e-mail message to any e-mail address that you specify. The diagnostic message contains the exception message and the application context. You can specify the e-mail address in the profile option, IBE: Email Address to send Diagnostic Messages. See the appendix, Profile Options, for more information on the profile settings.

Site Administration UI Errors

This section contains errors which may occur when using the Oracle iStore Site Administration UI.

Understanding Browser Reload Action

In the Site Administration UI, when a user selects the Internet browser's Reload/Refresh button just after pressing the iStore Apply button, the browser does not just reload the page with the http "get" command, it repeats the last action (send the last request again). This means the browser will resubmit the form again with all the old form data. This may cause an error to display in the UI. It is recommended that the user not press the browser's Reload/Refresh button just after pressing the Apply button.

Explanation: All iStore tables have one column, object_version_number, to ensure that when a user submit a form, the data is not stale. If user submits the form again with all of the "old" form data by selecting the browser's Reload/Refresh button, sometimes an error will be shown to indicate that the object version number is not correct.

Section Hierarchy Errors

Use the following fix for the error listed below.

Cannot Find Item to Add to Section

If you want to add an existing Oracle Inventory item to a section and cannot find the item, then check the following:

Customer UI Login Errors

If a user is experiencing errors when trying to log in to a specialty site, the cause may be one of the following:

  1. You are logging in to Oracle CRM Applications at: http://<host>:<port>/OA_HTML/jtflogin.jsp instead of the Customer UI at one of the following URLs: http://<host>:<port>/OA_HTML/ibeCZzdMinisites.jsp or http://<host>:<port>/OA_HTML/ibeCZzpHome.jsp?site=<Store ID>

  2. You are trying to log in with a site manager user name instead of a customer user name. Make sure the user name has an Oracle iStore customer responsibility such as IBE_CUSTOMER.

  3. The person party setup for a user in TCA is not correct

  4. The organization associated with a B2B user is not valid

  5. The relationship between an B2B user and an organization is not valid

  6. The B2B user has no valid account in TCA.

When any of these errors occur, an error message will be displayed in Customer UI. Users can contact their system administrator to check the setup.

Display Manager Errors

Use the following fixes and workarounds for the Display Manager error messages listed below.

TemplateNotFoundException or MediaNotFoundException

This error occurs when the method DisplayManager.getURL(), DisplayManager.getTemplate(accessName), or DisplayManager.getMedia(accessName) is used.

NullPointerException (Template or Multimedia Object is Null)

This error occurs when the method Item.getTemplateFileName(), Section.getTemplateFileName(), or Display Manager.getSectionMedia(...) is used.

This error indicates that a product or section mapping to a template or media was not defined and that a site level default also was not defined.

New Template (or Multimedia) Has Been Associated with a Product/Category/Section, But Won't Show Up at Runtime

Verify the following:

Catalog Errors

To troubleshoot Catalog errors, use the checkpoints or the following fixes for specific error messages.

Checkpoints

Use the following checkpoints:

Specific Error Messages for Catalog

Use the following fixes and workarounds for the error messages listed below.

No Items in the Catalog

Check the following:

Items Do Not Have Prices

Check the following:

“Add to Cart” Buttons Do Not Appear

“Add to Cart” buttons are not displayed for items that are not orderable on the web and for items that do not have defined prices.

Please Refresh Your Shopping Cart

This error may occur when customers try to add items to a cart and the ASO: Default Quote Status profile option is not set properly. To fix the error, set the profile option to Store Draft at the iStore application level.

This profile option determines the default quote status of an iStore shopping cart. The default quote status of Store Draft is hard coded into the iStore application, but you should check the value of this profile and ensure that it is set properly. Once ordered, carts move to the Quoting status of Order Submitted. If a user requests sales assistance, the cart moves to the Quoting status of Draft. Depending upon the sales representative's actions, the cart/quote can move into other statuses as well.

Pricing Errors

To troubleshoot Pricing errors, use the following checkpoints and debugging procedures.

Checkpoints

Use the following checkpoints to troubleshoot pricing in Oracle iStore.

Generating a Pricing Debug Trace

You can generate a pricing debug trace to create detailed log files when Oracle iStore calls the Oracle Pricing engine. Oracle iStore creates two log files because it calls the Oracle Pricing engine twice, once in the catalog and once in the shopping cart. The call from the catalog goes directly to Oracle Pricing. The call from the shopping cart is performed through Oracle Quoting, resulting in additional quote-related information in the log file.

Use the following procedure to generate the pricing debug trace.

Steps

  1. Set the profile option QP: Debug to Yes at the user level for the username that you are testing.

  2. Set the profile option OM: Debug Log Directory at the site level to one of the database directories defined for PL/SQL file I/O. To find this value, perform the following SQL*Plus query:

    select value
    from v$parameter
    where name='utl_file_dir';

    See My Oracle Support Knowledge Document 2525754.1, Using UTL_FILE_DIR or Database Directories for PL/SQL File I/O in Oracle E-Business Suite Releases 12.1 and 12.2.

  3. Log in to the Oracle iStore Customer UI as the user that you are testing.

  4. Perform the pricing activity that you are trying to debug.

  5. In the operating system, navigate to the directory specified in the profile option OM: Debug Log Directory.

  6. In this directory, locate the file named <Random Number><Username>.dbg. This is the debug trace for the user and session.

  7. As you read the debug trace file, keep in mind the following common reasons for discounts not being applied:

    • Discount list header is inactive.

    • Discount list header is ineffective as of the pricing date.

    • Source system code on discount list is not correct. (Look at this for Oracle iStore orders.)

    • Discount list line is ineffective as of the pricing date.

    • Qualifiers for the discount list are not met.

    • Pricing attributes for the discount list are not met.

    • Discount list is getting eliminated by incompatibility.

    • Price break discount conditions are not met.

Search Errors

To troubleshoot Search errors, use the following checkpoints:

Notifications Errors

Use the following fixes for the errors listed below.

Notifications Are Not Delivered or Have Errors

This error occurs if you did not remove the access locks from the messages and items of the Oracle iStore-related Oracle Workflow definition before upgrading Oracle iStore. The patch or upgrade cannot overwrite the Oracle Workflow definition if you do not first remove the access locks.

Use the following procedure to back up the necessary customized messages, remove the access locks, and apply the patch or upgrade again to fix this error.

Steps

  1. Open the Oracle Workflow data store file (IBENOTIF.wft) that contains this item type.

  2. In Oracle Workflow Builder, back up the item type iStore Alerts Workflow (IBEALERT) as follows:

    • Choose File, Save As.

      The Save As window opens.

    • In the Save As window, highlight the File radio button, enter the file name, and select OK.

  3. Unlock all seeded objects, such as messages, in the database copy of the item type iStore Alerts Workflow (IBEALERT). To do so, perform the following steps for each seeded Oracle Workflow object in the item type:

    • Select the object.

    • Choose Edit, Properties.

      The Navigator Control Properties window opens.

    • In the access tab, uncheck the options Preserve Customizations and Lock at this Access Level.

    • Click OK.

  4. Save the Oracle Workflow data store file back to the database.

  5. Apply the patch or upgrade to overwrite the existing Oracle iStore-related Oracle Workflow definitions.

Approval/Rejection Notifications Not Sent

If all other Oracle iStore notifications are being sent out (including registration notifications) but:

then, verify the below setup:

  1. Login as Oracle (Forms) Applications as System Administrator and choose Workflow Administrator responsibility.

  2. Navigate to Administration, Administrator Workflow screen.

  3. Ensure that the Notification Style field is set to a value other than, "Do not send me mail", under the Global Preferences region.

Lead Import Errors

This section contains troubleshooting information for Oracle iStore's Lead Import functionality, which captures customer data from iStore orders and expired carts and makes them available in Oracle Sales Online and Oracle TeleSales.

See the chapter, Integrating Oracle iStore with Oracle Sales Applications, for details.

Leads Have No Owner

If leads retrieved in Oracle Sales Online or Oracle TeleSales have no owner, check the value of the profile option, OS: Assign New Lead. This profile option attempts to assign a sales representative as the owner of a batch of leads.

Lead Data Overlaps

If the data in your leads overlaps or shows duplicate records, you may not have synchronized the iStore Lead Import Concurrent Program Set schedule and the interval profile options which also control how often the concurrent program set runs.

Fulfillment Errors

To fix issues with Postsales, first verify that the following prerequisites were done.

Product Comparison Errors

Selecting less than two products to compare or exceeding the maximum number of products that can be compared will generate the following error messages:

Product Detail page

Exception Type: E=Error W=Warning Error / Warning Message
If no products is selected. E No items were selected. Please check the boxes next to the items you wish to compare and select at least two items.
If only one product was selected. E Only one item was selected. Please check the boxes next to the items you wish to compare and select at least two items.
If the number of products selected for comparison exceeds the maximum number of products. E You cannot select more than <X> items for product comparison.

Product Multi-Select with Section links page

Exception Type: E=Error W=Warning Error / Warning Message
If no products is selected. E No items were selected. Please check the boxes next to the items you wish to compare and select at least two items.
If only one product was selected. E Only one item was selected. Please check the boxes next to the items you wish to compare and select at least two items.
If the number of products selected for comparison exceeds the maximum number of products. E You cannot select more than <X> items for product comparison.
If you select the Compare check box for a configured item. E Configured items are not supported for product comparison.