Description

While running the snapshot, it crashes with the error "Error while executing procedure", please find the screen shot below.

Observed in CAST AIP
Release
Yes/No
8.3.x(error)
8.2.x , x<2(tick)
8.1.x, X< 1(tick)
8.0.x(error)
7.3.x(error)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS3(error)
CSS2(tick)
Step by Step Scenario

Below is the step-by-step scenario leading to the problem:

  1. Package and deliver the application.
  2. Set as current version.
  3. Run the Snapshot, it crashes with the error "Error while executing procedure".
Impact of the Problem

The impact of the problem on the analysis or the dashboard is: The snapshot will not be finished as it crashes while computing the snapshot and we will have missing information in the dashboard.

Action Plan
  1. Check if the name of the full content module exceeds 64 characters. If the full content module exceeds 64 characters it gets truncated which leads to wrong comparison.
    If this is the case apply the following Solution to solve the issue
    1. Purge the previous failed snapshot : for this, you need to click on "Take snapshot' and the following pop-up will appear. Make sure you uncheck the checkbox to delete the failed snapshot.
    2. Connect to AIC Portal and change your app name to a shorter name.
    3. Open CAST-MS, click on "save" button, so that the new app name is saved in database.
    4. In Modules tab (Expert mode), delete the existing full content module
    5. In Cast-MS synchronize Analysis service and Dashboard service.
    6. Leave CAST-MS and go to your install folder.
    7. Open a CMD, "Cast-MS-CLI.exe PrepareSnapshot -connectionProfile <yourConnectionProfileName> -appli <TheShorterName>.
    8. Reopen Cast-MS, tab Modules you can see that a new full content module with the shorter name exists.
    9. Leave Cast-MS, go back to AIC Portal and change back the application name to the long name.
    10. Open CAST-MS , save , synchronize your services, you are ready to take a successful snapshot
  2. If you have renamed your module and you are still facing this issue then check if there is a missing link between application and module in Central Database.
    1. Get the ID of the application using the page - SQL Queries - CAST Central Base - Queries on applications - How to get the ID of the application
    2. Run the below query on Central Database -

      Query1
      select count(*) from dss_links DL1 join dss_objects DOS
      on DL1.next_object_id = DOS.object_id
      and DOS.object_type_id = 20000
      and DL1.previous_object_id = <Application_id>

      Example

      Query1 Example
      select count(*) from dss_links DL1 join dss_objects DOS
      on DL1.next_object_id = DOS.object_id
      and DOS.object_type_id = 20000
      and DL1.previous_object_id = 3
       
      Result - 5

      Run the below query on Central Database

      Query2
      select count(*) from dss_link_info DL1 join dss_objects DOS
      on DL1.next_object_id = DOS.object_id
      and DOS.object_type_id = 20000
      and DL1.previous_object_id = <Application_id>
      and DL1.snapshot_id = <snapshot_id>

      To get the snapshot_id refer the page - SQL Queries - CAST Central Base - Queries on snapshots - How to get the ID and name of a snapshot for a given application

      Example 

      Query2 Example
      select count(*) from dss_links_info DL1 join dss_objects DOS
      on DL1.next_object_id = DOS.object_id
      and DOS.object_type_id = 20000
      and DL1.previous_object_id = 3
      and DL1.snapshot_id = 5;
       
      Result - 4

      The result of Query1 should match the result of Query2.

      Here, in our case it is not matching. If it does not match then it means that the there is a missing link between application and module in Central Database.

    3. If the link is missing then use Cast AIP 8.2.2 or a higher version. This issue is fixed in 8.2.2.

  3. If you are using 8.2.2 or a higher version and you are still facing this issue then contact CAST Technical Support with Relevant input
Notes/comments
 Ticket  # 6125
Related Pages