Getting error while installing custom app : Account Shipping Charge

We have created custom app to accomodate one client’s requirement along with ERPNext basic features.

This is working fine in local when we started development.
Local version :

ERPNext: v15.38.1 (version-15)
Frappe Framework: v15.44.1 (version-15)

While creating new site on different environment along with other running site,
we are getting above error installing custom app after erpnext.

  1. Created new site.
  2. Installed ERPNext.
  3. After that I am trying to install “custom_app” app and getting error.

The Taxes and Charges Account Tax - MTJ does not belong to the company My Trending Jumping

Another steps:

  1. Created new site.
  2. Installed ERPNext.
  3. Executed bench start command and setup company profile with name of “My Trending Jumping”.
  4. After that I am trying to install “custom_app” app and getting error.

Account Shipping Charge - MTJ: Parent account Indirect Expenses - MTJ does not exist

Can someone guide on this?

It looks like your custom app is trying to reference specific accounts ( Taxes and Charges Account Tax - MTJ and Shipping Charge - MTJ) that do not exist in the newly created site.

If you are using these accounts in your custom apps then add fixtures in your custom app ,or else you have to create it manually before installing custom app on new site.

In Account doctype check these records are exists or not