diff --git a/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts b/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts index 9ae24d1930b..35a3109c18e 100644 --- a/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts +++ b/projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts @@ -1824,6 +1824,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni let fieldsMap; if (this.pivotConfiguration.columnStrategy && this.pivotConfiguration.columnStrategy instanceof NoopPivotDimensionsStrategy) { const fields = this.generateDataFields(data); + if (fields.length === 0) return; const rowFields = PivotUtil.flatten(this.pivotConfiguration.rows).map(x => x.memberName); const keyFields = Object.values(this.pivotKeys); const filteredFields = fields.filter(x => rowFields.indexOf(x) === -1 && keyFields.indexOf(x) === -1 &&