URLforPortal Error not making any sense

Certified Associate Developer

Hello all,

I don't post often, but this one has me stumped.  I'm getting an error in the portal for one environment (Test) with objects that work just fine in another (Dev).  I've looked at the supporting objects involved and I cannot see a delta (nor could compare and deploy).  Event the portal being referenced in Test works fine except for this one area. I would appreciate advice on what other avenues I should be looking at.  Below is the error and script from the 2 environments.

  Discussion posts and replies are publicly visible

Parents
  • If it’s working in Dev but failing in Test, it could be an environment-specific configuration issue rather than the objects themselves. I’d check:

    • Environment variables / constants – sometimes a value like a URL, credential, or feature flag is different in Test.

    • Security settings – user/group permissions in Test might be missing or different from Dev.

    • Data source connections – ensure Test is pointing to the correct database or API endpoint.

    • Version mismatches – confirm the Test environment actually has the latest deployed version of all dependent objects.

    If everything matches, try exporting the object from Dev and reimporting into Test to rule out corruption or hidden changes.

Reply
  • If it’s working in Dev but failing in Test, it could be an environment-specific configuration issue rather than the objects themselves. I’d check:

    • Environment variables / constants – sometimes a value like a URL, credential, or feature flag is different in Test.

    • Security settings – user/group permissions in Test might be missing or different from Dev.

    • Data source connections – ensure Test is pointing to the correct database or API endpoint.

    • Version mismatches – confirm the Test environment actually has the latest deployed version of all dependent objects.

    If everything matches, try exporting the object from Dev and reimporting into Test to rule out corruption or hidden changes.

Children
No Data