After upgrading to 7.4.6, our customers started getting the following error message:
An incorrect child relation (census_to_census_summary) was accessed through a foundset (or a record of foundset) with datasource 'null'. The accessed relation actually has 'db:/arm_data/billing_census' as primary datasource. It will resolve for legacy reasons but please fix it as it is error prone.
The code that failed is:
- Code: Select all
var fs = databaseManager.getFoundSet( 'arm_data', 'billing_census' ).duplicateFoundSet()
fs.loadRecords( census_to_census_summary ) // FAILED ON THIS LINE OF CODE
The table 'billing_census' has lots of data, so I do not understand the 'null' ascpect of the error message. The code had been working for many years. I am at a loss how to fix this. The 'billing_census' table is related to the 'billing_summary' table using a PK and FK. What is the proper way to code this relationship?
Thanks!