Hi @11manish,
Thanks for your response.
I’d like to clarify a few important points in my scenario:
- The Office Script used in the client environment is different from the Dev script — it is created separately in the client environment.
- During solution import, I am providing the correct Script ID via environment variables, pointing to the client environment script.
- So this is not about references carrying over from Dev — I am explicitly rebinding it in the target environment.
Also, an important observation:
- The same setup (using environment variables for Script ID, File, and Library) works perfectly in the Development environment
- The issue only occurs after deployment to the managed (client) environment
Additionally:
- The script is created using a service account, and the same account is used for:
-
Deployment
-
Connections
-
Flow ownership
So permission or ownership mismatch is unlikely.
What’s more:
The error still occurs while saving the flow, with: GetSingleScript → 404 (Script not found)
This suggests the issue is not just with environment variables or solution references.
It seems more like:
- The Excel Online connector is unable to resolve script metadata correctly in the managed environment
- Or there is some backend validation/caching issue during the save operation
Has anyone experienced a case where:
- Script is visible and selectable in UI
- But fails during save/enable with Script not found?
Any deeper insights or workarounds would be really helpful.
Thanks!