Loading...

ER To expose Hardcoded URL in QuickApps

Title

ER To expose Hardcoded URL in QuickApps

Description

ER To expose Hardcoded URL in QuickApps

Please wait...

ER to expose the URL so that it can be changed.

Cause

When a page is copied and/or moved as a template from one site to another the following error occurs: Error message: The Web application at https://samplesite.test could not be found. Verify that you have typed the URL correctly.

More specifically, the error is due to the PageUrl element in the webpart configuration: <PageUrl xmlns="http://www.workplacearchitects/DataViewer">https://samplesite.test/pagename.aspx</PageUrl>

The error prevents changes to qListView web parts Viewed Lists settings. This also cause issues after a site has been saved as template and used to create additional sites. For example, if site A is saved as a template and used to create site B. Then the columns that is used as ParentKeyFieldName to connect child list should be changed to a newly created column in site B; The column would not be displayed in the Parent Key Field Name dropdown.

Instead, the dropdown will display only the columns from site A, which is the site the webpart was first configured. The errors only happen when the site referenced in the PageUrl element either cannot be found and/or is in another environment with a separate configuration database.

We have a temporary workaround which is to delete the PageUrl element from all pages using SharePoint designer and RegExp (<PageUrl xmlns="http://www.workplacearchitects/DataViewer[^<]+[^>]+>) to find all instances of the PageUrl element and remove it. Then we can save the site as a template and reuse it without the it breaking our solutions.

Please update the webparts so that they can either allow users to edit the PageUrl in the UI or remove it altogether since the URL that should be used is already set in the Viewed Lists Site URL!

Resolution

This ER is still under review and not yet in the product.

Defect ID

When a page is copied and/or moved as a template from one site to another the following error occurs: Error message: The Web application at https://samplesite.test could not be found. Verify that you have typed the URL correctly.

More specifically, the error is due to the PageUrl element in the webpart configuration: <PageUrl xmlns="http://www.workplacearchitects/DataViewer">https://samplesite.test/pagename.aspx</PageUrl>

The error prevents changes to qListView web parts Viewed Lists settings. This also cause issues after a site has been saved as template and used to create additional sites. For example, if site A is saved as a template and used to create site B. Then the columns that is used as ParentKeyFieldName to connect child list should be changed to a newly created column in site B; The column would not be displayed in the Parent Key Field Name dropdown.

Instead, the dropdown will display only the columns from site A, which is the site the webpart was first configured. The errors only happen when the site referenced in the PageUrl element either cannot be found and/or is in another environment with a separate configuration database.

We have a temporary workaround which is to delete the PageUrl element from all pages using SharePoint designer and RegExp (<PageUrl xmlns="http://www.workplacearchitects/DataViewer[^<]+[^>]+>) to find all instances of the PageUrl element and remove it. Then we can save the site as a template and reuse it without the it breaking our solutions.

Please update the webparts so that they can either allow users to edit the PageUrl in the UI or remove it altogether since the URL that should be used is already set in the Viewed Lists Site URL!

Leave a Reply