How To Fix GC158 - Investment table and database inconsistent : &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: GC - Error Messages for Consolidation/Extended General Ledger

  • Message number: 158

  • Message text: Investment table and database inconsistent : &

  • Show details Hide details
  • What causes this issue?

    The book value entered in Changes in Investments does not correspond to
    the value contained in the Totals table.

    System Response

    Capital Consolidation cancelled

    How to fix this error?

    Check the book values entered in the Investments table. The key of the
    Investment table is shown in the error message.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GC158 - Investment table and database inconsistent : & ?

    The SAP error message GC158 indicates that there is an inconsistency between the investment table and the database. This typically occurs in the context of Asset Accounting (FI-AA) or Investment Management (IM) modules, where the system expects certain data to be consistent across different tables and records.

    Cause:

    1. Data Corruption: This can happen due to data corruption during transactions, updates, or system migrations.
    2. Incomplete Transactions: If a transaction was not completed properly, it may leave the investment table in an inconsistent state.
    3. Custom Developments: Custom programs or enhancements that manipulate investment data may inadvertently cause inconsistencies.
    4. Database Issues: Problems with the underlying database, such as locks or failed updates, can lead to inconsistencies.

    Solution:

    1. Consistency Check: Use transaction codes like S_ALR_87012086 or S_ALR_87012087 to run consistency checks on the investment tables. This can help identify the specific inconsistencies.
    2. Reconciliation: Perform a reconciliation of the investment data. This may involve comparing the investment table with the corresponding database entries and correcting any discrepancies.
    3. Repair Programs: SAP provides standard repair programs (like RIMODI00) that can help fix inconsistencies in investment data. Consult with your SAP Basis or technical team to run these programs.
    4. Data Correction: If specific records are identified as problematic, you may need to manually correct or delete these records, depending on the situation.
    5. Consult SAP Notes: Check the SAP Support Portal for any relevant SAP Notes that may address this specific error. There may be patches or updates that resolve known issues.
    6. Backup and Restore: If the inconsistency is severe and cannot be resolved through the above methods, consider restoring from a backup if available.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes for Asset Accounting and Investment Management, such as AS01, AS02, IM01, IM02, etc.
    • Documentation: Review SAP documentation related to Asset Accounting and Investment Management for best practices in data management.
    • SAP Community: Engage with the SAP Community forums for insights from other users who may have encountered similar issues.
    • Support: If the issue persists, consider reaching out to SAP Support for assistance, especially if it involves complex data integrity issues.

    Always ensure that you have proper backups and a recovery plan before making significant changes to your SAP system.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker