Solved

LocationExtAddress has not been found in the list of auto-initialized caches

  • 1 February 2023
  • 3 replies
  • 119 views

Userlevel 3
Badge

Getting the below error in one of the customizations. Code Snippet below

Error: The entry form (ID: AR303000, title: Customers) cannot be automated. 
Failed to subscribe the event PX.Objects.AR.XXXExt::LocationExtAddress_CBranchID_CacheAttached in the graph PX.Objects.AR.CustomerMaint. 
The method signature looks like an event handler, but the cache LocationExtAddress has not been found in the list of auto-initialized caches. 
Remove unused event handlers from the code.

 

 public class XXXExt : PXGraphExtension<CustomerMaint.LocationDetailsExt, CustomerMaint.DefLocationExt, CustomerMaint.DefContactAddressExt,CustomerMaint>
    {

[Branch(null, IsDetail = false, DisplayName = "Shipping Branch", BqlField = typeof(CRLocation.cBranchID), IsEnabledWhenOneBranchIsAccessible = true)]
        protected virtual void LocationDetailsExt_CBranchID_CacheAttached(PXCache sender) { }

}

icon

Best answer by Naveen Boga 1 February 2023, 07:52

View original

3 replies

Userlevel 7
Badge +11

Hi @vibindas ,

Can you try like below,

public class CustomerMaint_Extension : PXGraphExtension<CustomerMaint>
  {
    
    [PXDBInt()]
    [PXUIField(DisplayName = "Shipping Branch")]
    protected virtual void Location_CBranchID_CacheAttached(PXCache cache)
    {
    
    }
        
  }

Userlevel 7
Badge +17

@vibindas  Jini code should work but we can also do this without code level customization i.e. Changing the Display Name for the Default Branch to Shipping Branch

 

Please find the steps below.

  1. Open the Customization Package
  2. In the Customization Package Editor - Select the Customers screen (AR303000)
  3. Expand the screen
  4. Select the Fields section
  5. Choose the field i.e. CBranch
  6. Change the DisplayName
  7. Publish the package

Please find the screenshot for reference.

 

 

Userlevel 3
Badge

thanks all, issue resolved....

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved