Skip to main content

Hello Everyone,

We have specific requirement to increase the TaxZoneID length  from size 10 to 30  from TaxZone table.
Since, this field is having dependency with many table fields, unable to modify the length and giving SQL error is ALTER TABLE ALTER COLUMN taxzoneid failed because one or more objects access this column..

 

I know that we can drop the Foreign Key relationships and make it work but I don’t think this proper way of doing in Acumatica database. Hence posting this question here and seeking for help.


Can you please help me with this?

It’s doable, but I think you are asking for trouble. I once had to do it for another field and it turned into a nightmare. You will need to override every single DAC, alter every single tab where the TaxZoneID is referenced to change the length. With every new update you will need to review all these customizations.

Is there any other way to meet your business requirement *without* making this change?

I had a look and there’s 33 tables that will need to be updated, for your reference:

APInvoice ARInvoice BAccount BCBindingExt CAAdj CashAccountETDetail CROpportunityRevision CustomerClass EPEmployee EPExpenseClaim EPExpenseClaimDetails FSAppointment FSServiceOrder GLTranDoc Location Location PMProforma PMTaxTran POLandedCostDoc POLandedCostTax POLandedCostTaxTran POOrder POTax POTaxTran SOOrder SOTax SOTaxTran TaxReportLine TaxTran TaxZone TaxZoneDet TaxZoneZip VendorClass


Thanks, @Gabriel Michaud for sharing the details.

However, even if we override these DAC files, in the database level we need to drop the Foreign keys as well right (whereever it is having the relation)?

 

 

 

 


Yup, you still need to take care of dropping and recreating the FKs...


Understood. Thanks @Gabriel Michaud 


Reply