Skip to main content
Question

Autonumbering seems to stop import scenario

  • February 17, 2025
  • 2 replies
  • 42 views

I have created a customization that adds a tab to the Stock Item screen. The tab contains a grid with a field with autonumber  attribute. Manually everything work find I can add multiple lines to the grid, but imports only add one line and then stop. The grid has a custom dac and view. Below is part of the dac:

public class PAFactoryQuote : IBqlTable
{
  #region RefNbr
  [PXDBString(15, IsKey = true, IsUnicode = true, InputMask = "")]
  [PXUIField(DisplayName = "Ref Nbr")]
  [AutoNumber(typeof(PAQtSetup.numberingID), typeof(AccessInfo.businessDate))]
  [PXDefault(PersistingCheck = PXPersistingCheck.Nothing)]
  public virtual string RefNbr { get; set; }
  public abstract class refNbr : PX.Data.BQL.BqlString.Field<refNbr> { }
  #endregion

  #region InventoryID
  [PXDBInt(IsKey = true)]
  [PXDBDefault(typeof(InventoryItem.inventoryID))]
  [PXParent(typeof(SelectFrom<InventoryItem>.
              Where<InventoryItem.inventoryID.IsEqual<PAFactoryQuote.inventoryID.FromCurrent>>))]
      [PXUIField(DisplayName = "Inventory ID")]
  public virtual int? InventoryID { get; set; }
  public abstract class inventoryID : PX.Data.BQL.BqlInt.Field<inventoryID> { }
  #endregion

  #region VendorID
  [PXDBInt()]
  [PXUIField(DisplayName = "Vendor ID")]
  [PXDimensionSelector("VENDOR", typeof(Search<VendorR.bAccountID, Where<VendorR.vStatus, Equal<VendorStatus.active>>>),
      typeof(VendorR.acctCD),
      new Type[] { typeof(VendorR.acctCD),
          typeof(VendorR.acctName),
          typeof(VendorR.vendorClassID),
          typeof(VendorR.taxRegistrationID)},
      Filterable = true,
      SelectorMode = PXSelectorMode.TextModeSearch,
      DescriptionField = typeof(VendorR.acctName))]
      public virtual int? VendorID { get; set; }
  public abstract class vendorID : PX.Data.BQL.BqlInt.Field<vendorID> { }
  #endregion

2 replies

Samvel Petrosov
Jr Varsity II
Forum|alt.badge.img+8

Please add the Import Scenario details and some data example, it is really difficult to tell what is the issue based on what you provided.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • May 13, 2025

Hi ​@mscardina54 were you able to find a solution? Thank you!