Hi @Kumar Kundu, Sudipta,
From what I've seen from your problem, I have found similar threads that has solutions that might fix yours.
Try adding a delay to fix Import completion timing:
- The
PostImportWithFileAsyncInGroup
method returns anImport
object immediately, but the dataset metadata (including parameters) isn't populated until the import process is fully completed. If you callGetImportInGroupAsync
too early, it may return incomplete data - You can add a custom dela yor polling mechanism to check the import status until it reaches
Succeeded
before accessing dataset parameters:
await Task.Delay(500);
import = await pbiClient.Imports.GetImportInGroupAsync(groupId, importId);
Also ensure that:
- The workspace is in a Premium capacity (dataflows require this for full functionality).
- The service principal has the necessary permissions (Admin or Member role).
- The dataflow definition is valid and includes all required schema metadata.
If you are still having any issues, feel free to reach out.
Best Regards.