Skip to content

[Bug] Generated service for the systemuser table references a non-existent method uploadFileToRecord #344

@aabols

Description

@aabols

Describe the bug

When adding the systemuser table to the app, the generated service SystemusersService.ts includes an upload method that references client.uploadFileToRecord(...), which doesn't exist. This breaks build.

Steps to Reproduce

  1. pac code add-data-source -a dataverse -t systemuser
  2. npm run build
  3. Error: src/generated/services/SystemusersService.ts:77:52 - error TS2339: Property 'uploadFileToRecord' does not exist on type 'DataClient'.

Expected behavior

Expected to not have any methods in the service that aren't supported.

Actual behavior

The missing method breaks build.

Screenshots or Error Messages

npm run build results in:

> power-apps-template-starter@0.0.0 build
> tsc -b && vite build

src/generated/services/SystemusersService.ts:77:52 - error TS2339: Property 'uploadFileToRecord' does not exist on type 'DataClient'.

77     const result = await SystemusersService.client.uploadFileToRecord(
                                                      ~~~~~~~~~~~~~~~~~~


Found 1 error.

Environment information

  • pac version: 2.7.4+g06bb2eb
  • power-apps-vite version: 1.0.2
  • vite version: 7.3.1
  • react version: 19.2.4

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions