Forum Discussion

inquisitore's avatar
inquisitore
Copper Contributor
Aug 18, 2025

Alert - external linkn

Hi all,

I'm using Windows 11 version 24H2, and whenever I launch Microsoft Project Pro 2019  (with an auto-macro enabled), I get the following warning, in english it sounds like:

"This project contains links to one or more data sources that may be unsafe and have been disabled.
Do you want to enable these data sources? Only do this if you trust the source of the file."

I've already checked the Trust Center settings, enabled all macros, and reviewed everything under Options > Trust Center > Trust Center Settings, but nothing changes.

It appears before running vba code, so displayalert = false (or similar) does not work.

I also removed all VBA code and deleted every task to make sure no external links were hiding anywhere — but the warning still appears every time.

There are no obvious external links (in tasks or in code), so I'm a bit stuck.

Any idea where else I should look or how to get rid of this alert?

Thanks in advanc

 

6 Replies

  • inquisitore's avatar
    inquisitore
    Copper Contributor

    SOLVED
    I move all the tasks and vba code in a new file (and, using the LIBRARY, all the stuff like view, ....)
    I figured it out like this, but the mystery’s still unsolved ... 

    Thanks to all

    • John-project's avatar
      John-project
      Silver Contributor

      inquisitore,

      You're welcome and thanks for the feedback. I'm glad you got it resolved.

      John

  • Inquisitore,

    Try reviewing and deleting unnecessary Custom Fields, Views, Tables, Reports, and Macros both in the project and in the Global.mpt, as even if there are no tasks, they may still retain references or links to external sources.
    I look forward to your response.

    Ignacio

  • Hello Inquisitore

    Many times, the warning comes from a residual link in the metadata, try the following:

    Save the file as Project XML (.xml).

    Close Project.

    Open the newly saved XML.

    Save again as .mpp.

    This process usually "cleans up" invisible or broken links.

    I hope you find it helpful.

    Ignacio

    • inquisitore's avatar
      inquisitore
      Copper Contributor

      No it does not work, the project is without tasks, I erased all tasks to check if problem persists.

      • John-project's avatar
        John-project
        Silver Contributor

        Inquisitore,

        I thought Ignacio had a great suggestion, sorry it didn't work.

        I have the same configuration you have,  but for reference, what is your version of Project? The latest is: version 2507 (Build 19029.20184). If that is not your version I suggest you update.

        I take it you can open the file, you just get the unfriendly message. Is that correct? If so, open the file and go to, developer > Code group > Visual Basic. In the VBE window open the Project Explorer and double click on "ThisProject (name)". Does anything appear in the code window? If so, select and delete it.

        If necessary, would you be able to send me your file? I can give you m

        John

Resources