Skip to main content
Question

Error: Trandate cannot be empty

  • November 16, 2022
  • 5 replies
  • 149 views

HI,

  When I try to add a SOLine Item having a Non-Inventored item through customization. I am getting Error: Trandate cannot be empty

While debugging the code Trandate has value in the SOLine row. What may be the reason for this issue?

 

 at PX.Data.PXDBDefaultAttribute.RowPersisting(PXCache sender, PXRowPersistingEventArgs e)
   at PX.Data.PXCache.OnRowPersisting(Object item, PXDBOperation operation)
   at PX.Data.PXCache`1.PersistUpdated(Object row, Boolean bypassInterceptor)
   at PX.Data.PXCache`1.Persist(PXDBOperation operation)
   at PX.Data.PXGraph.Persist(Type cacheType, PXDBOperation operation)
   at PX.Data.PXGraph.Persist()
   at PX.Objects.SO.SOOrderEntry.PersistImpl()
   at PX.Objects.SO.SOOrderEntry.Persist()
   at PX.Objects.Extensions.ProcessAffectedEntitiesInPrimaryGraphBase`4.Persist(Action basePersist)
   at PX.Objects.Extensions.ProcessAffectedEntitiesInPrimaryGraphBase`4.Persist(Action basePersist)
   at PX.Objects.Extensions.PaymentProfile.PaymentProfileGraph`2.Persist(Action base)
   at PX.Objects.SO.GraphExtensions.SOOrderEntryExt.CreatePaymentAPIExt.Persist(PersistDelegate baseMethod)
   at PX.Data.PXSave`1.d__2.MoveNext()
   at PX.Data.PXAction`1.d__38.MoveNext()
   at PX.Data.PXAction`1.d__38.MoveNext()
   at PX.Data.PXAction`1.PressImpl(Boolean internalCall, Boolean externalCall)
   at PX.Data.PXAction`1.Press()
   at DevTechServiceordercustomization.DevTechSOOrderEntryExtension.serviceDetail(PXAdapter adapter) in E:\Projects\InfoSourcing\DevTechServiceordercustomization\DevTechServiceordercustomization\AEF\SOOrderEntryExt.cs:line 148
   at PX.Data.PXAction`1.RunHandler(PXAdapter adapter)
   at PX.Data.PXAction`1.d__38.MoveNext()
   at PX.Data.PXAction`1.d__38.MoveNext()
   at PX.Web.UI.PXBaseDataSource.tryExecutePendingCommand(String viewName, String[] sortcolumns, Boolean[] descendings, Object[] searches, Object[] parameters, PXFilterRow[] filters, DataSourceSelectArguments arguments, Boolean& closeWindowRequired, Int32& adapterStartRow, Int32& adapterTotalRows)
   at PX.Web.UI.PXBaseDataSource.ExecuteSelect(String viewName, DataSourceSelectArguments arguments, PXDSSelectArguments pxarguments)

 

Regards,

R.Muralidharan

5 replies

darylbowman
Captain II
Forum|alt.badge.img+13

Could you post a small portion of the code you are using to do this?


  • Author
  • Freshman I
  • 4 replies
  • November 16, 2022

SOLine newline = Base.Transactions.Cache.CreateCopy(Base.Transactions.Cache.Insert()) as SOLine;
                            newline.InventoryID = ext.UsrServiceitem;
                          
                            newline = Base.Transactions.Update(newline);
                            Base.Save.Press();


darylbowman
Captain II
Forum|alt.badge.img+13

It appears like you’re attempting to copy a brand new transaction, which I could see being somewhat problematic. Try this instead:

SOLine newLine = Base.Transactions.Insert(new SOLine());

 


  • Author
  • Freshman I
  • 4 replies
  • November 19, 2022

I have tried the same. still facing the problem. I am not able to understand it is going to cretepayment module


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2776 replies
  • January 18, 2023

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings