Layton ServiceDesk - Troubleshooting - PDF Report Not Attached to Scheduled Report Email
m (Clarified text) |
m (Minor text changes) |
||
(4 intermediate revisions by one user not shown) | |||
Line 3: | Line 3: | ||
=Overview= | =Overview= | ||
When Layton ServiceDesk is installed, the install path is written to the database. If the application is moved to another server, the path may not be updated. This results in scheduled-report emails being sent without an attachment. | When Layton ServiceDesk is installed, the install path is written to the database. If the application is moved to another server, the path may not be updated. This results in scheduled-report emails being sent without an attachment. | ||
+ | |||
+ | =Test= | ||
+ | 1. Copy the following SQL query into a new query window in Management Studio and execute it: | ||
+ | |||
+ | SELECT sys_admin_value AS "Server Path" | ||
+ | |||
+ | FROM [admin] | ||
+ | |||
+ | WHERE sys_admin_id = 'ap_serverpath' | ||
+ | |||
+ | 2. This is your configured server path. By default, it's ''<nowiki>http://servername/laytonservicedesk</nowiki>''. | ||
=Repair Procedure= | =Repair Procedure= | ||
Line 29: | Line 40: | ||
''<nowiki>http://ithelpdeskserver:80/laytonservicedesk</nowiki>'' | ''<nowiki>http://ithelpdeskserver:80/laytonservicedesk</nowiki>'' | ||
− | You must get this right. Note that the query will fail if your path is greater than | + | You must get this right. Note that the query will fail if your path is greater than 255 characters, as that is the length of the column. In this case, use the IP address, e.g. |
''<nowiki>http://10.1.1.10:80/laytonservicedesk</nowiki>'' | ''<nowiki>http://10.1.1.10:80/laytonservicedesk</nowiki>'' | ||
Line 35: | Line 46: | ||
5. Execute the query. | 5. Execute the query. | ||
− | 6. Go to ''Reporting > Schedule Reports''. Create a new schedule, or modify an existing schedule. Make the trigger ''Daily > Start time: [2 minutes in future] > Every 1 day(s)''. | + | 6. Go to '''[[Layton ServiceDesk - Reporting - Scheduling Reports|Reporting > Schedule Reports]]'''. Create a new schedule, or modify an existing schedule. Make the trigger ''Daily > Start time: [2 minutes in future] > Every 1 day(s)''. |
7. Check that the emailed report includes a PDF attachment. | 7. Check that the emailed report includes a PDF attachment. | ||
<p align="right">[[File:btn_back_up.png|link=User Guide for Layton ServiceDesk]] [[User Guide for Layton ServiceDesk|<u>Back to Contents</u>]]</p> | <p align="right">[[File:btn_back_up.png|link=User Guide for Layton ServiceDesk]] [[User Guide for Layton ServiceDesk|<u>Back to Contents</u>]]</p> |
Latest revision as of 04:42, 7 June 2019
Contents |
[edit] Overview
When Layton ServiceDesk is installed, the install path is written to the database. If the application is moved to another server, the path may not be updated. This results in scheduled-report emails being sent without an attachment.
[edit] Test
1. Copy the following SQL query into a new query window in Management Studio and execute it:
SELECT sys_admin_value AS "Server Path" FROM [admin] WHERE sys_admin_id = 'ap_serverpath'
2. This is your configured server path. By default, it's http://servername/laytonservicedesk.
[edit] Repair Procedure
1. Back up your database.
2. Copy the following SQL query into a new query window in Management Studio:
DECLARE @Path VARCHAR(255) SET @Path = 'ENTERPATHNAMEHERE' UPDATE [admin] SET sys_admin_value = @Path WHERE sys_admin_id = 'ap_serverpath'
3. Look at the URL in your browser's URL field to determine your server path. By default, it's http://servername/laytonservicedesk.
4. Replace the string ENTERPATHNAMEHERE with your path, including the port number (default :80). For example, if your path is
http://ithelpdeskserver/laytonservicedesk
then the path to enter will be
http://ithelpdeskserver:80/laytonservicedesk
You must get this right. Note that the query will fail if your path is greater than 255 characters, as that is the length of the column. In this case, use the IP address, e.g.
http://10.1.1.10:80/laytonservicedesk
5. Execute the query.
6. Go to Reporting > Schedule Reports. Create a new schedule, or modify an existing schedule. Make the trigger Daily > Start time: [2 minutes in future] > Every 1 day(s).
7. Check that the emailed report includes a PDF attachment.