There are times when you may encounter the following error message, “Fld Error: Key Number Does Not Exist”. This can appear when attempting to compile a 4GL program in Lawson, it is possible that the key needs to be added to kndef.
Note that this error message will likely present itself in the XXXX.scr.err file.
To resolve this error, simply follow the steps outlined below:
Login to LID
Run command kndef to define the missing key
cd LAWDIR/(productline)/sdlib
rm *
srgen (productline) (source)
qcompile (productline) (source) (program)
recompile any other invoked programs
Your error message should now disappear and the program should run normal.
https://www.nogalis.com/wp-content/uploads/2023/11/Compile-Error-Key-Number-Does-Not-Exist.jpg470470Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2023-11-28 08:57:572023-11-21 12:54:31Compile Error Key Number Does Not Exist
Lawson Expense Management can occasionally lead to a duplicate invoice or another issue. If you’re running the EX542 and it goes into status 1 or 2 (in process or error) in EX20.1 and EX20.2 for your expense report. Then you’ll likely see an error saying “Invoice Already Exists”.
To resolve this, you may need elevated privileges. If you believe you have the access, follow the steps below.
Go to EX20.1, inquire on your ER number.
Change the status to 9 and click Change.
Go to EX20.2, inquire on your ER number (locate the ER with the error field “Invoice Already Exists”
Change the status to 9 and then remove the error field. Click Change.
Re-run EX542 and see if it completes properly.
That it! If you’re still having issues and Infor is not able to assist, it might be worth looking into Lawson Managed Services (MSP). Reach out to a Nogalis representative to see if they can assist and or to provide your organization 24/7 Lawson support from an entire team of consultants at a fixed rate instead of having to hire a full-time position.
tokendef: Using tokendef to add a user menu with a couple of different forms as menu options in Portal.
Trying to use ‘tokendef’ to add a user menu with a couple different forms as menu options, specifically for AP90.1 and AP90.2. In Portal the menu launches (the menu name appears at the top), but the menu options do not display. An XML error may also be encountered in Portal when trying this.
Resolution:
To setup this up correctly, menu names that are going to be used in Portal, must be in a XXXX.01 format, where ‘X’ is a letter or number.
After creating a new menu using tokendef you will need to run an IOSCacheRefresh otherwise, you will get an error stating bookmark not found in Portal when trying to access the new menu.
https://www.nogalis.com/wp-content/uploads/2023/11/Using-tokendef-to-add-a-user-menu-with-a-couple-of-different-forms-as-menu-options-in-Portal.jpg470470Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2023-11-21 08:27:052023-11-20 09:28:48Using tokendef to add a user menu
At times your user may get the error “Requestor does not exist” when logging into Lawson Portal and selects the Shopping link for Requisition Center.
This is because a valid Requestor must exist in Manage Identities in the Lawson Security Administrator (LSA) application. To verify this, follow these steps:
1) Login to the LSA Application
2) Select User Management
3) Select Manage Identities and verify the correct Requestor is populated
4) Upon entering RQC/Shopping and the User’s Profile in Shopping where you see the user’s Requester, if it’s not showing the correct Requester, have the user click on the “New” button in the bottom-right-hand corner of the screen.
Note: After any changes are made in LSA, upon re-entering RQC XML, you need to go into the Utilities link (rqc/html/utility.htm) and click on the RQC IOS Cache Refresh button before accessing the Shopping link again in RQC.
https://www.nogalis.com/wp-content/uploads/2023/11/Lawson-Portal-Requestor-does-not-exist.jpg470470Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2023-11-14 08:22:432023-11-10 15:25:47Lawson Portal: Requestor does not exist error when logging in to Portal and selecting the shopping link for RQC
Error: ‘Access/Excel(DAO) connection is no longer supported…’
Report based on Excel, Access, or a Text file fail to refresh in Crystal Reports.
Could successfully refresh the report in previous version of Crystal Reports.
When refreshing a report connecting to MS Excel, or MS Access, or a Text file in Crystal Reports, it fails with the error:
“Failed to load database information.
“Details: Access/Excel(DAO) connection no longer supported,
use another alternative if possible, e.g. ODBC/JDBC.”
Followed by: “Failed to load database information.”
Steps To Reproduce:
In Crystal Reports 2016 or below, create a new report.
In the Database Expert, under “Create New Connection” double click on “Access/Excel (DAO)”
Select the MS Excel, or MS Access file to report from.
Refresh the report, and it successfully display data.
Save the report.
In Crystal Reports 2020, open the same report, and refresh it.
It generates the error: “Failed to load database information. Details: Access/Excel(DAO) connection no longer supported,…”
Cause
The report connect to Excel, Access, or a Text file using Microsoft Data Access Objects (DAO), which used Microsoft JET Engine.
This 32bit only connectivity technology have been deprecated by Microsoft.
Previous versions of Crystal Reports were 32bit applications, and could still use the deprecated Microsoft DAO technology to connect to Excel, Access or a Text file, as a legacy connection type.
Crystal Reports 2020 is a 64bit application, and therefore it is no longer possible to connect to Excel, Access, or a Text file using DAO, since there is no 64bit version of this deprecated Microsoft Technology.
Resolution:
Use an ODBC connection to connect to one of the following data sources in Crystal Reports:
MS Excel
MS Access
Text file
For MS Excel, and MS Access, you can also use an OLEDB Connection.
To use an ODBC Connection:
Launch the 64bit Microsoft ODBC Data Source Administrator. (C:\Windows\System32\odbcad32.exe)
In the 64bit Microsoft ODBC Data Source Administrator, under the tab “System DSN”, click “Add…”
Select the ODBC Driver corresponding to the type of document you want to report from:
– For MS Excel, select : Microsoft Excel Driver (*.xls,*.xlsx,*.xlsm,*.xlsb)
– For MS Access, select : Microsoft Access Driver (*.mdb, *.accdb)
– For a Text file, select : Microsoft Access Text Driver (*.txt, *.csv)
Note
If you do not see the ODBC Drivers, then it is either because you have a 32bit version of MS Office installed, or do not have a 64bit MS Office installed. To download and install the 64bit version of the Microsoft Office ODBC drivers, go to the Microsoft website, and search for: “Microsoft Access Database Engine”, then download and install the 64bit Microsoft Access Database Engine.
Then click “Finish”
Add an ODBC DSN Name and select the MS Excel, MS Access, or Text file you want to report from, and click “OK”
In Crystal Reports, open your report based on MS Excel, MS Access or a Text file.
Under the menu “Database”, select “Set Datasource Location”
In the “Replace with” section, expand “Create New Connection”, and double click on “ODBC (RDO)”
Select the ODBC DSN created in the previous steps to report from MS Excel, MS Access, or aText file.
Note: For MS Excel, if the Excel sheets are not visible, then:
Right click on the “Connection”, and in the contextual menu, select “Options”
In the “Options” window, check the option “System Tables”, and click “OK”
Back to the “Database Expert” window, right click on the connection, and select “Refresh”
The MS Excel sheets will now display. Select the desired MS Excel sheet.
Once connected, in the section “Replace with”, select the new ODBC connection, and in the section “Current Data Source”, select the current connection, and click the button “Update”
Once the connection is updated, click “Close”
Back to the report, save the report.
To use an OLEDB connection
In Crystal Reports, open your report based on MS Excel or MS Access.
Under the menu “Database”, select “Set Datasource Location”
In the “Replace with” section, expand “Create New Connection”, and double click on “OLE DB (ADO)”
Select the Microsoft Office Access Database Engine Provider.
Note
If you do not see the OLEDB Provider, then it is either because you have a 32bit version of MS Office installed, or do not have MS Office installed. To download and install the 64bit version of the Microsoft Office ODBC driver and OLEDB Provider, go to the Microsoft website, and search for: “Microsoft Access Database Engine”
Change the Office Database type to: Excel, or Access
Select the MS Excel, or MS Access file.
Leave the User ID and Password blank.
Once connected, in the section “Replace with”, select the new OLEDB connection, and in the section “Current Data Source”, select the current connection, and click the button “Update”
Once the connection is updated, click “Close”
Back to the report, save the report.
https://www.nogalis.com/wp-content/uploads/2023/11/Access-Excel-connection-is-no-longer-supported.jpg470470Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2023-11-10 08:23:062023-11-09 16:28:01Error: ‘Access/Excel connection is no longer supported
If you have added environment users in Lawson, and you are not seeing the new users in listusermap, there’s an easy fix for that.
You will need to run it with the command -a. This will refresh the cache and show all users in NT order.
listusermap -a
If you would like to run other commands, here are some other tips for the listusermap usage:
-a – list all users,
-c – list from cache (Default),
-n – clean up cache,
-u – find user,
-p – find account,
-h – find historical user (NTxxxxxxxx),
-o – show historical user names in list,
-k – list archived user cache
https://www.nogalis.com/wp-content/uploads/2023/11/Refresh-user-list-in-LID.jpg470470Angeli Mentahttps://www.nogalis.com/wp-content/uploads/2013/04/logo-with-slogan-good.pngAngeli Menta2023-11-07 10:04:472023-11-06 16:00:37Refresh user list in LID