[Bug] Power BI connector generated client fails TypeScript type check (Goals operations)
@eschavez ya está trabajando en esto.
Desde el 23/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Describe the bug
After adding the Power BI connector (shared_powerbi) as an action-mode data source, the generated client fails tsc --noEmit with two errors, both in Goals (scorecard) operations. The app only calls ExecuteDatasetQuery, but the generated files include all 24 operations, so the type check fails and the app can't pass a pre-publish type check. Regenerating (refresh data source) produces the same output.
Errors:
generated/models/PowerBIModel.ts(299,14): error TS2552: Cannot find name 'GoalValueOrNoteUpsertedstatus'. Did you mean 'GoalValueOrNoteUpserted'?
generated/services/PowerBIService.ts(153,5): error TS1016: A required parameter cannot follow an optional parameter.
GoalValueOrNoteUpserted.checkIns[].statusreferences a typeGoalValueOrNoteUpsertedstatusthat is never emitted (looks like an inline enum/string schema that the generator names but doesn't define):
// The status of the goal at the time of check-in.
status?: GoalValueOrNoteUpsertedstatus;
GetGoalputs a required$expandafter the optionalpbi_source. Per the Power BI REST docs (Goals – Get By ID),expandis an optional query parameter:
public static async GetGoal(
groupid: string,
scorecardId: string,
goalId: string,
pbi_source?: string,
$expand: string
): Promise<IOperationResult<FetchedGoal>>
Steps to Reproduce
- Create a code app / managed app (React + Vite + TypeScript template).
- Add data source: connector
shared_powerbi, action mode (no table). - Run
tsc -p tsconfig.app.json --noEmit(or the template'stypecheckscript). - Observe the two errors above. Refresh/regenerate the data source: same result.
Expected behavior
Generated files type-check without manual edits. Either emit the missing GoalValueOrNoteUpsertedstatus type (or fall back to string), and generate $expand as optional ($expand?: string) or order required parameters before optional ones.
Environment information
- Package:
@microsoft/managed-apps0.5.11 (app built with App Builder in Microsoft 365 Copilot) - TypeScript ~5.8.3, Vite 7
- Connector:
shared_powerbi(Power BI, Microsoft), action mode - Production build (
vite build) succeeds; only the type check fails.
Workaround
None without hand-editing generated files (which are overwritten on refresh). Fixing the two lines locally (status?: string; and $expand?: string) makes the type check pass.
Related
Originally filed as microsoft/PowerAppsCodeApps#510 and redirected here.
- Lenguaje dominante
- TypeScript
- Estrellas
- 27
- Forks
- 8
- Merge medio
- 5 h 29 min
- PR fusionados (30 d)
- 4
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/managed-apps
-
[Bug] SQL Server (`shared_sql`) action operations are always routed to `/procedures` with an unresolved path template, so Insert row (V2), Execute a SQL query (V2), Get tables (V2) etc. all return 404Posiblemente ocupada @tonystevenj la tomó hace 4 días. Abiertobug product team investigating
microsoft/managed-apps#45 · 1 comentario · 1 asignado ·
-
[Bug] Table-mode create/update sends a JSON body without a Content-Type header, so the SQL Server connector rejects inserts with 415 "media type 'text/plain' is not supportedPosiblemente ocupada @tonystevenj la tomó hace 4 días. Abiertobug product team investigating
microsoft/managed-apps#44 · 1 comentario · 1 asignado ·
-
[Bug] Cannot block Tenant wide CLI pathPosiblemente ocupada @ergonza93 la tomó hace 4 días. Abiertobug
microsoft/managed-apps#43 · 1 comentario · 1 asignado ·
-
[Bug] `ms app clone` fails on macOSPosiblemente ocupada @sokhenglim1 la tomó hace 3 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
microsoft/managed-apps#42 · 1 comentario · 1 asignado ·
-
[Bug] Device-code sign-in fails with post_request_failed: invalid_client in CLI 0.27.0–0.29.0Posiblemente ocupada @jiankai82 la tomó hace 4 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
microsoft/managed-apps#39 · 3 comentarios · 1 asignado ·
Todos los issues de microsoft/managed-apps
Issues similares
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --displayPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
pingdotgg/t3code#24900 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
inu-appcenter/UNIDorm-web#411 ·
Los mantenedores suelen responder en 1 día
-
🐛 bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
ranxianglei/billion-context#4720 ·
Los mantenedores suelen responder en 1 día
-
area:arcade game p3-medium ready-for-agent type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
fderuiter/deruiter.dev#2840 ·
Los mantenedores suelen responder en 1 día