Checks and Payments-Error: An error occurred during processing of the field Reference Nbr. value 032616 Error: Reference Nbr. '032616' cannot be found in the system.
Checks and payments entry record creating Programmatically using .csv File
Payment Type Pmt Number CashAcct Pmt Date VendID ApplyToVendorRef ApplyToAmt TotalAmt CHECK 10184000001 ORE-OP 11/16/2021 PIOT INV2809 2185.02 2185.02
the above fields i have in csv file.. using Vendor reference number am fetching data from Bills Screen and then am trying to create checks and payments record against to that bill- am able to create header part when coming to insert in APAdjust table am facing an issue above error throwing
Error: An error occurred during processing of the field Reference Nbr. value 032616 Error: Reference Nbr. '032616' cannot be found in the system.
am also sending the code which i have written for APAdjust .. Please suggest me with the Solution
Ok @FarhanaM60 Thanks for sharing the code, will take a look and let you know.
Hi @FarhanaM60 Can you please confirm on this?
@Naveen B -APDoctype.invoice means bill.. its saving in backend as inv
@FarhanaM60 Gotcha! Thanks for clarifying!
Hi @FarhanaM60 I have verified this and I can able to create the Checks and Payments document successfully. Please find the code and screenshots for your reference.
public class APInvoiceEntryExt : PXGraphExtension<APInvoiceEntry> {
@Naveen B -Thank you for your effort .. I think you have added Button in Bills From there you have tried Right?? But i have done From processing Screen.. Yes from where we are doing is not the issue but when it is working it will be good .. But unfortunately its not working for me
Hi @FarhanaM60 Yes, that is correct.
In your processing screen, you are only doing creation Checks and Payments document OR also creating the Bills and Adjustments document before this creation Checks and Payments ?
@Naveen B -Only Checks and Payments Record
@FarhanaM60 Then definitely I don’t see any issue with the code, but also not sure why it is not working in your instance.
Hi @Naveen Boga,
I’m also trying the same concept from Processing screen, for the insertion of “Debit Adjustment” in Check and payment screen. Actually it is creating the header record, but the Adjustment entries are not getting created without any error. Below is my sample code, could you please help me to check.