I have a Page that I built for use with PowerBI. it's an API PageType. This has been working for several months now but all of a sudden, I'm getting a compile error AL0320 on several page parts. The error states that the referenced page (also an API PageType) must specify a 'SourceTable'. However, in all cases the referenced page does specify a SourceTable. The error is noted on the SubPageLink parameter of the following parts:
part(dimensionSetLines; "APIV2 - Dimension Set Lines")
{
Caption = 'Dimension Set Lines';
EntityName = 'dimensionSetLine';
EntitySetName = 'dimensionSetLines';
SubPageLink = "Parent Id" = Field(Id), "Parent Type" = const("Sales Invoice");
}
part(salesInvoiceLines; "APIV2 - Sales Invoice Lines")
{
Caption = 'Lines';
EntityName = 'salesInvoiceLine';
EntitySetName = 'salesInvoiceLines';
SubPageLink = "Document Id" = Field(Id);
}
part(pdfDocument; "APIV2 - PDF Document")
{
Caption = 'PDF Document';
Multiplicity = ZeroOrOne;
EntityName = 'pdfDocument';
EntitySetName = 'pdfDocument';
SubPageLink = "Document Id" = Field(Id), "Document Type" = const("Sales Invoice");
}
part(attachments; "APIV2 - Attachments")
{
Caption = 'Attachments';
EntityName = 'attachment';
EntitySetName = 'attachments';
SubPageLink = "Document Id" = Field(Id), "Document Type" = const("Sales Invoice");
}
part(customer; "APIV2 - Customers")
{
SubPageLink = "No." = Field("Sell-to Customer No.");
}
part(paymentTerms; "APIV2 - Payment Terms")
{
SubPageLink = "id" = field("Payment Terms Id");
}
Any help is appreciated!
UPDATE: I rolled back to an older version of my code using Microsoft__Exclude_APIV2__21.0.46256.47234 and this resolved the compilation error on my page. However when I did another AL:Download Symbols and got version Microsoft__Exclude_APIV2__21.2.49946.51811 the error returned. Seems to be something related to this newer version of the dependency.