Warning: Multiple links found for relationship within module

Hi,

I’m trying to get the module relationships through the API. Below is the code I’m using:

$result = $this->rest_request( 'get_relationships', array(
            'session' => session('id'),
            'module_name' => 'Contacts',
            'module_id' => 'a63ac315-03e9-1fe0-65cb-55d64851a1f8',
            'link_field_name' => 'lr001_loan_request',  //LR001_Loan_Request 
            'related_module_query' => '',
            'related_fields' => array('id'),
            'related_module_link_name_to_fields_array' => array(),
            'deleted' => 1,
        ));

I’m trying to get the details of a custom module(LR001_Loan_Request ) which is related to the Contacts module.

The above code results in an empty array. In the SuiteCrm logs I found this error:

[ERROR] Warning: Multiple links found for relationship pfs00_pfs_contacts_1 within module PFS00_PFS
[ERROR] Warning: Multiple links found for relationship pfs00_pfs_contacts_1 within module Contacts

Can you please let me know what I’m doing wrong?