Issues with MA References in LAPMgr
There are 2 issues that may occur when dealing with references in LAPMgr.
One or more references will not import
When accessing imported references, the system crashes
One or more references will not import
This issue is generally caused by reference responses containing one or more “non-printable”/non-ASCII characters.
Open SSMS and connect to the 192.168.100.160 server
Run the following script to remove all non-printable characters.
EXEC [dev_CleanRefsToImport]
When the stored procedure has completed, the system will then list all of the fields associated with all of the references awaiting import
Review the list and look for:
“FALSE” values in the “Value OK” column
any date field with a date in the future
You must address all of the “FALSE” values before the reference can be imported.
You can use the code below to update the values replacing the <FormDataID> with the value for the field you are correcting
UPDATE tblFormData SET DataValue = <Corrected Data value> WHERE FormDataID = <FormDataID>
Correcting this issue can be complicated if the team is using the “Import All” button on the Manage References page vs the Import one, as the system does not import references in any specific order. It is suggested that the team use the Import One button until all but the problem reference(s) are left
When accessing imported references, the system crashes
This issue is generally caused by one of two issues:
There are multiple supervisor references and one of them has three separate supervisory periods, and all of the others do not.
One or more of the dates on the a reference are incorrect (the start date of a period is after the end date, the date entered is incorrect (3/31/1022 instead of 3/1/2022)
To begin
Open SSMS and connect to the 192.168.100.160\LAP database
Run the following script replacing <Review Number> with the Application Review number with the issue
EXEC dev_CheckImportedSupRefs @ReviewNum = <Review Number>
If the column “[3 Supervision period issue]” has a yes value:
Locate the reference which has 3 supervision periods
Run the following script replacing <Reference ID> with the MAReferenceID you have documented
Copy and paste the output of the above script as an internal comment in the Jira ticket.
Run the following script to backup the data, and consolidate the supervisiory periods
Once the process has completed, let MSERV know that they can continue processing the application and will need to reopen the ticket when all processing is done to restore the data.
To restore the data run the following script
You can run the stored procedure without any variable declarations and usage instructions will popup
If any other column has a yes value:
Look for any column which has a Yes value
Determine the correct value, if you are unable to determine it yourself, let MSERV know what is wrong and ask them to identify the proper date
Example: In reviewing the references for review number 1234, we have found that the first supervision ending date for the reference is an invalid date. The date entered is 2/1/2012 and is before the first supervision start date. Please provide the correct date so we may update the system
To correct the value make sure you have a) The MAReferenceID value, the ColumnName, the correct value, the update and run the following script.
It is recommended that you only run one update at a time
After completing all necessary updates rerun the stored procedure executed in step 3
If all values are correct, the open LAPMgr and log in
Load the application that has the issue with the reference(s)
Click on References/Supervision tab
At the top of the form you will see a grid of references
Beginning with the second reference on the list (do not be concerned with the reference type), click on each reference until you have clicked on the last one listed. Make sure you wait for the data to refresh on the screen before moving to the next reference.
Repeat step 13 but work from the bottom of the list to the top.
If you are able to complete steps 13 & 14 without the system crashing you have resolved the issue.