Skip to main content
Solved

Error in 'Create Purchase Orders' screen

  • December 5, 2024
  • 3 replies
  • 65 views

Sales Order - > Create Purchase Order

In the Create Purchase Order screen , click ‘Process ALL’

Error: Inserting 'Purchase Order' record raised at least one error. Please review the errors.
Error: 'Owner' cannot be empty.

 

   

   at PX.Data.PXUIFieldAttribute.CommandPreparing(PXCache sender, PXCommandPreparingEventArgs e)
   at PX.Data.PXCache.AttributeHandlersSquasher`1.<>c__DisplayClass2_0`1.<To>b__0(PXCache cache, TArgs args)
   at PX.Data.PXCache.OnCommandPreparing(String name, Object row, Object value, PXDBOperation operation, Type table, FieldDescription& description)
   at PX.Data.PXCache`1.PersistInserted(Object row, Boolean bypassInterceptor)
   at PX.Data.PXCache`1.Persist(PXDBOperation operation)
   at PX.Data.PXGraph.Persister.Persist(Type cacheType, PXDBOperation operation)
   at PX.Data.PXGraph.PerformPersist(IPersistPerformer persister)
   at PX.Data.PXGraph.TransactionalPersist()
   at PX.Data.PXGraph.RetryTransaction(Action persistBody, Int32 maxRetries)
   at PX.Data.PXGraph.Persist()
   at PX.Objects.PO.POOrderEntry.Persist()
   at PX.Objects.Extensions.ProcessAffectedEntitiesInPrimaryGraphBase`4.Persist(Action basePersist)
   at PX.Objects.PO.GraphExtensions.POOrderEntryExt.PurchaseToSOLinksExt.Persist(Action baseMethod)
   at PX.Objects.PO.POOrderEntryExternalTax.Persist(Action baseImpl)
   at PX.Data.PXSave`1.<HandlerInternal>g__Persist|3_2()
   at PX.Data.PXSave`1.<HandlerInternal>d__3.MoveNext()
   at PX.Data.PXAction`1.<Press>d__39.MoveNext()
   at PX.Data.PXAction`1.<Press>d__39.MoveNext()
   at PX.Data.PXAction`1.PressImpl(Boolean internalCall, Boolean externalCall)
   at PX.Objects.PO.POCreate_Extension.CreatePOOrders(List`1 list, Nullable`1 PurchDate, Boolean extSort, Nullable`1 branchID)

Best answer by Manikanta Dhulipudi

Hi ​@sravikumar 

While Creating a Purchase order from the" Create Purchase order" screen throws an error " Owner cannot be empty".

 

Solution: To create a Purchase order user must be an employee.

 

Navigate to Employee screens create an employee and Link the user account to Employee> User info to resolve this issue.

 

View original
Did this topic help you find an answer to your question?

3 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 693 replies
  • December 5, 2024

Hi ​@sravikumar ,

The error indicates that some required data is either missing or an invalid value is being inserted while creating the purchase order. Please open the Purchase Order screen and attempt to insert the same data to identify the exact issue.


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13

Hi ​@sravikumar 

While Creating a Purchase order from the" Create Purchase order" screen throws an error " Owner cannot be empty".

 

Solution: To create a Purchase order user must be an employee.

 

Navigate to Employee screens create an employee and Link the user account to Employee> User info to resolve this issue.

 


Forum|alt.badge.img+1
  • Jr Varsity I
  • 62 replies
  • December 5, 2024

Hi ​@sravikumar ,
Please check in your code you need to handle all objects null value may be error is coming due to null value.

 


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