Skip to content

Local/Remote Path Conversion Bug #35

Closed

Description

@hennie-l

This code line:

tempURL = collUrlNamespace("{" & parts(9) & "}{" & parts(7) _
& "}{" & parts(10) & "}")

is giving Run-time error '5' : Invalid procedure call or argument.

Activity

  1. cristianbuse commented on Nov 18, 2025

    @cristianbuse
    Owner

    If you open the file ClientPolicy_ebea68b065ce4049b59675a6553b1e3b_5086a480d4254d12acecdd4786db8dd2 can you please give me the following tag values:

    • SiteID
    • WebID
    • IrmLibraryId

    These 3 values should resemble the values:
    ebea68b065ce4049b59675a6553b1e3b
    5086a480d4254d12acecdd4786db8dd2
    68452cc779be4feeaa12a10b30879813
    but with some dashes and probably upper case.

  2. hennie-l commented on Nov 18, 2025

    @hennie-l
    Author

    I logged the part values as:

    parts(9): ebea68b065ce4049b59675a6553b1e3b
    parts(7): 5086a480d4254d12acecdd4786db8dd2
    parts(10): 68452cc779be4feeaa12a10b30879813

    ClientPolicy file tag values:

    WebID = {8E343D96-728B-4D9B-BEC6-F8FE04668149}
    SiteID = {5086A480-D425-4D12-ACEC-DD4786DB8DD2}
    IrmLibraryId = {EBEA68B0-65CE-4049-B596-75A6553B1E3B}

    Capitalization / hyphenation issue perhaps?

  3. 4lm1ghty commented on Nov 18, 2025

    @4lm1ghty

    Hello, so here we meet again. Same issue right now lol

    part(9): "40cb0958609e42a7b6ad53ea647092bb"
    part(7): "1d5d1675ef1c44f5afd345431be7ab18"
    part(10): "a86610fb707b400caed1520f7877c94b"

    WebID = {70DCF9AF-2335-41B1-B913-A864670CDEE8}
    SiteID = {1D5D1675-EF1C-44F5-AFD3-45431BE7AB18}
    IrmLibraryId = {40CB0958-609E-42A7-B6AD-53EA647092BB}

  4. cristianbuse commented on Nov 18, 2025

    @cristianbuse
    Owner

    Can you both replace part(10) with part(8) as in:

    tempURL = collUrlNamespace("{" & parts(9) & "}{" & parts(7) _
    & "}{" & parts(8) & "}")

    and see if that works

  5. hennie-l commented on Nov 18, 2025

    @hennie-l
    Author

    I tried that, then GetLocalPath() returns null;

    Logged the part values as:

    parts(8): 8e343d96728b4d9bbec6f8fe04668149

  6. 4lm1ghty commented on Nov 18, 2025

    @4lm1ghty

    I tried:

    GetLocalPath("https://company.sharepoint.com/sites/company/Freigegebene Dokumente/Forms Umfragen/", True)
    which returns:
    {40CB0958-609E-42A7-B6AD-53EA647092BB}{1D5D1675-EF1C-44F5-AFD3-45431BE7AB18}{70DCF9AF-2335-41B1-B913-A864670CDEE8}

    parts(8) returns 70dcf9af233541b1b913a864670cdee8

    edit: without the true for rebuildcache GetLocalPath returns "".

  7. added a commit that references this issue on Nov 18, 2025
  8. cristianbuse commented on Nov 18, 2025

    @cristianbuse
    Owner

    Apologies, I made a mistake yesterday. Please use the version I just pushed.

  9. hennie-l commented on Nov 18, 2025

    @hennie-l
    Author

    Looks good this side, appreciated!

  10. 4lm1ghty commented on Nov 18, 2025

    @4lm1ghty

    No worries, i appreciate the fast response times a lot! Did some testing and everything works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions