Consider the below extension page:
page 60000 AAA_PurchaseInvoiceAPI{ PageType = API; Caption = 'AAA PurchaseInvoiceAPI', Locked = true; APIPublisher = 'aaa'; APIGroup = 'group1'; APIVersion = 'v5.1'; EntityName = 'purchaseinvoice'; EntitySetName = 'purchaseinvoices'; SourceTable = /Purchase Header/; SourceTableView = where(/Document Type/ = filter(Invoice)); DelayedInsert = true; ODataKeyFields = SystemId; layout { area(Content) { repeater(GroupName) { field(DocumentType; Rec./Document Type/) { Caption = 'DocumentType', Locked = true; } field(DocumentNo; Rec./No./) { Caption = 'DocumentNo', Locked = true; } field(DueDate; Rec./Due Date/) { Caption = 'DueDate', Locked = true; } field(BuyFromVendorNo; Rec./Buy-from Vendor No./) { Caption = 'BuyFromVendorNo', Locked = true; }### SOME MORE FIELDS... field(SystemId; Rec.SystemId) { Caption = 'SystemId', Locked = true; } } } }
### SOME MORE FIELDS
}
Response =
{/error/:{/code/:/Internal_RecordNotFound/,/message/:/The Purchase Header does not exist. Identification fields and values: Document Type='Invoice',No.='' CorrelationId: d18af886-d80f-4970-9b11-e2e4f53623ab./}}
Tried several approaches:
1. verified the no series setup
2. created a purchase credit memo header successfully
3. verified no extensions other than mine works in the environment
Not sure what else can I try. please assist