This article gives common errors and solutions when running the Integration Theme.
Before modifying any files, try the following to ensure your browser is serving the latest version:
This will make sure any external files are updated with the latest changes.
If this resolves the issue there will be a file cached in the main browser.
In older versions of DriveWorks (before v18.1), a trailing slash in the supplied server url (serverUrl in config.js of the examples) can trigger errors, by doubling up in requests (for example //api).
Remove the slash at the very end in the config values.
If any validation errors are found, a warning will be logged on-screen (Live) or in the console (manually running the .exe)
To resolve errors, review C:\ProgramData\DriveWorks\<version>\Live\Themes\Integration\DriveWorksConfigUser.xml
When encountering issues with the Integration Theme, we recommend checking your browser's console (F12) for any error messages.
If no error message is shown, refresh the page (F5) with dev tools open to ensure any errors are being captured.
These messages help to determine root causes of any issues.
Search this page (Ctrl + F) for the error message you are presented with in the console (F12).
Partial string searches may be required (not every possible error message is listed, but most overlap).
The characters '###', listed in the messages below, refer to names that are specific to your implementation. Do not include any implementation specific naming when searching for the error.
Key
The messages below are prefixed with the following icons:
- denotes a console error.
- denotes a console warning
Cause:
The file is being requested over HTTPS where HTTPS is not supported.
Solution:
Try the following to resolve:
Cause:
The server is being requested over HTTPS where HTTPS is not supported.
Solution:
Try the following to resolve:
This protocol should match the <script> loading DriveWorksLiveClient.min.js to avoid a warning.
Cause:
A connection cannot be made to the supplied server url, being either invalid or offline.
Solution:
Try the following to resolve:
Cause:
The serverUrl declared in the config.js file is incorrect.
Solution:
Try the following to resolve:
Cause:
The protocol (http/https) used for the client library (DriveWorksLiveIntegrationClient.min.js) does not match the server url provided to the client.
Solution:
Cause:
A method has been run without a valid connection (for example createSpecification BEFORE loginGroup).
Solution:
Try the following to resolve:
Cause:
DriveWorksLiveIntegrationClient.min.js could not be loaded, so the browser does not understand new window.DriveWorksLiveClient(). This is required to run any SDK function.
Solution:
Try the following to resolve:
PWE Default: http://localhost:5000
Note: do not confuse this with 5500, which is the port for VS Code's Live Server plugin.
Live Default: http://your-machine-name:8020
Cause:
The Application Pool is not running.
Solution:
This can be done from:
Select Application Pools, then select the pool associated to the site and click Start from the Actions pane.
Launch DriveWorks Live and select IIS Mangement from the task explorer. Select the tile for the Application Pool associated to the site and click the Start button.
Cause:
The Application Pool is not running.
Solution:
This can be done from:
Select Application Pools, then select the pool associated to the site and click Start from the Actions pane.
Launch DriveWorks Live and select IIS Mangement from the task explorer. Select the tile for the Application Pool associated to the site and click the Start button.
Cause:
One or a combination of any of the following could be occurring.
Solution:
Ensure to login at least once before any other requests.
Solution:
Need to login again or clear any locally stored session (see Handy Tips above) and refresh the page.
Solution:
Fix persistent 401 Unauthorized errors (SameSite errors).
Solution:
Ensure session-id is sent as part of requests headers if making manual requests (for example via Postman).
Solution:
Ensure the site URL matches the one specified in the Config.js serverURL setting. LocalHost will not resolve to machine name.
If you are using IIS it will resolve to local host
Cause:
Solution:
Restart DriveWorks Live to check XML is valid.
See Integration Theme Settings - Connection Settings for more information.
Cause:
Invalid XML config, or .drivegroup moved (different path for individual or different Pro Server for shared) specified in DriveWorksConfigUser.xml.
Solution:
See Integration Theme Settings - Connection Settings for more information.
Cause:
Invalid Project name supplied to method.
Solution:
Try the following to resolve:
See Integration Theme Settings - Permissions for more information.
Cause:
A Specification could not be found with the Id provided.
Solution:
Try the following to resolve:
Cause:
That action (Transition/Operation) is no longer available server side - as the state of the Specification has changed.
Solution:
Try the following to resolve:
Cause:
The Constant/Transition/Operation has never been requested, or has changed server side since it was last requested, so it's eTag does not exist or no longer matches the locally stored copy.
Solution:
Cause:
A Constant with that name could not be found - either due to not existing, or access not being permitted.
Solution:
See Integration Theme Settings - Permissions for more information.
Cause:
The Constant exists and is available, but editing is not permitted (via updateConstantValue).
Solution:
Try the following to resolve:
See Integration Theme Settings - Permissions for more information.
Cause:
A Macro with that name could not be found - either due to not existing, or running not being permitted.
Solution:
See Integration Theme Settings - Permissions for more information.
Cause:
The site cannot locate the Integration Theme API endpoint.
Solution:
See To configure the Client SDK Examples for your own Group for more information.
Cause:
Resources are being loaded over HTTP when the site is using HTTPS.
Solution:
Try the following to resolve:
Cause:
Resources are being loaded over HTTP when the site is using HTTPS.
Solution:
Try the following to resolve:
Cause:
The web page will display the following when the Application Pool (in IIS) is not running or has incorrect permissions.
Solution:
Select Application Pools and then select the Application Pool created for the site from the main window.
Select Start from the Actions list on the right hand side.
Open Internet Information Services (IIS) Manager on the machine hosting the site.
Select Application Pools, right click the Application Pool created for the site from the main window, and select Advanced Settings.
Ensure the identity field is a user with valid permissions.
Cause:
The 3D Preview Box control will display the above message when the property Enable Image Mode is set set to True and the Application Pool Identity (in IIS) has incorrect permissions.
Solution:
Ensure the Application Pool Identity is a Windows User that does not have administrative privilege's.
Cause:
The Create Preview Image task will cause the above message (in a Specification Report) when the Application Pool Identity (in IIS) has incorrect permissions.
Solution:
Ensure the Application Pool Identity is a Windows User that does not have administrative privilege's.
Knowledge Base Article Ref: | KB21060901 |
---|