Users may encounter the following error when attempting to modify a license in your LMO:
"Argument 1 cannot be null"
This error typically occurs if the license record is not valid.
Check the 'Created By' Id to see if it may have been manually created by a user or the LMA.
A correct license's created by field's syntax should be:
Created By: License Management App, Date/Time stamp
An invalid license could be:
Created By: User Name, Date/Time stamp
The LMA code creates license records and "links" the record in the Subscriber Org with the License in the LMO upon installation of a Managed Package. If you didn't have an LMO setup when the package was installed, the appropriate "link" was never created. Manually creating license records won't resolve this.
Upload a new version of the package and register it on Appexchange (so that it has the LMO). Ask those Subscriber Orgs to upgrade to this newer version of the Package. You don't have to include anything different in the newer version, it can be exact the same as the older version. You just need a new version number. Upon upgrade to this new version, the system should generate new Licenses Records for these orgs.
Partners may Refresh Licenses Using the LMA. If you're unable to use the available tool there are circumstances where Salesforce Support may be able to use a specialized tool to refresh the license. If successful, this tool will automatically create a new license record with the appropriate "Created By" value.
Please log a case in Help & Training for assistance with this issue and include the following:
Note: Any manually created records in the LMO will not function as expected and should be deleted.
000385756

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.