Forum Discussion
What is the filename referenced in this script?
- Dec 07, 2023
This isn't a PowerShell issue but rather an issue using the msproject.application class.
My best guess - given the lack of specificity in the error - is that the error is coming from the
$Project.FileSaveAs() call on line 40, and specifically relates to the map parameter value of "BI Export".Here's some references:- Application.FileSaveAs method (Project) | Microsoft Learn
- ms office - Microsoft Project Export Map, copying the map itself - Stack Overflow
Cheers,
Lain
This isn't a PowerShell issue but rather an issue using the msproject.application class.
My best guess - given the lack of specificity in the error - is that the error is coming from the
- Application.FileSaveAs method (Project) | Microsoft Learn
- ms office - Microsoft Project Export Map, copying the map itself - Stack Overflow
Cheers,
Lain
- LainRobertsonDec 08, 2023Silver Contributor
I had a rummage around in Project and found the following area, which I got to via Fil > Info > Organizer, but I don't know if this is the only (or even the right) way:
This might be where the "BI Export" reference fits in.
But now I really am at the end of the line on this one.
Cheers,
Lain
- KhibbyDec 08, 2023Copper ContributorI have been studying this online. I believe it is a template that I need to build out and copy to the Global.MPT. I'm still researching, but I will post a the solution when I find it. Thank you for guiding me through this! I appreciate it!
- LainRobertsonDec 07, 2023Silver Contributor
I'm not sure what a "map" is in Project.
Perhaps try researching it on learn.microsoft.com or even asking in one of the Office TechCommunity forums?
Hopefully someone else here might know, but it's worth asking around in forums more closely related to Project.
I'd imagine that even if you tried opening and possibly then "saving as" the relevant Project file manually, you'll get the same error from Project itself.
Cheers,
Lain