Removing tables containing relation fields breaks Lime CRM

Due to problems in removing relation fields when removing a table in Lime CRM, the Lime CRM Desktop Client throws an error message and makes it impossible to use Lime CRM.

In Lime CRM Desktop Client, after logging in, you will receive the following message and won't be able to do any operations:

The system cannot locate the object specified.

Run the SQL-code below to locate and thereafter remove the faulty relation fields.

-- Find invalid relations. 
-- Please verify the found fields and make 
-- sure they are indeed not supposed to exist.
SELECT 
            idfield, name, tablename, fieldtype, relatedtable, relatedfield, relatedidfield
FROM 
            relationfieldview
WHERE 
            relatedtable IS NULL
            OR relatedfield IS NULL
            OR relatedidfield IS NULL
            OR idrelation IS NULL
            OR relationside IS NULL
 
GO
 
-- Delete each invalid relation by id
BEGIN TRANSACTION
            EXEC dbo.lsp_removefield @@idfield = <INSERT id here>
--COMMIT TRANSACTION
ROLLBACK TRANSACTION

When removing the table in LISA; the relation fields are not being removed. This has previously been ignored by the desktop client, but not in later versions.

All Lime CRM Desktop Client versions from 10.12.107 and above. The issue is solved from Lime CRM Server 12.2.0.91.

Please contact our support team if you have questions regarding any of the above.

  • Last modified: 5 years ago
  • (external edit)