Forum Discussion
Khibby
Dec 06, 2023Copper Contributor
What is the filename referenced in this script?
The guy that wrote this script is no longer with the company. When I run it I get a message from Project, "The map with the specified name does not exist. Verify the name is correct, and try again....
- 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
Khibby
Copper Contributor
So when I run it and Project send the error: "the map with the specified name does not exist" it is referencing "BI Export". What is "BI Export"? Is it an excel file?
LainRobertson
Dec 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!