In Dynamics Nav 2018 I made this codeunit 50006 called Prova:
OnRun()
MESSAGE('Hello');
When I Ctrl+R or run it will display this error message:
You do not have the following permissions on CodeUnit Prova: Execute
My user has SUPER permissions.
If it's a license thing I really don't know how to check that.
How can I run this codeunit? Or check if it's a license issue?
EDIT:
I've tested to create a REPORT and run it:
OnPreReport()
PurchHeader.GET('CF-181003');
PurchHeader."Buy-from Vendor No." := 'RONALDO';
PurchHeader.MODIFY;
It ran but I got this error:
You do not have the following permissions on TableData Purch. Inv. Header: Modify
Most probably it IS a license restriction. There are two options to check that.
There's a txt file that you can get along with license flf file. In this txt file you can find all allowed ranges in readable format.
Create a page for table called License Permissions. There you will see all objects available to you. See screenshot.
Related
Here is the error we received from Microsoft Power BI Custom Visuals Team.
1120.1.2.2 Invalid SupportURL Content The SupportURL element content is missing or invalid. Please update the offer to include a completely
defined SupportURL element and re-submit your offer.
What needs to be done for the above message?
We already have the support url in the pbiviz.json
Also in the partner center
Still we got above mentioned error.
Your custom visual doesn't met the requirements for "easy identification" by not specifying SupportURL. It must be filled in pbiviz.json file, as noted in the documentation:
Before you create the pbiviz package, you must fill the following fields in the pbiviz.json file:
description
supportUrl
author
name
email
The support URL must meet the following guidelines:
The support page needs to include the following contact options and docs:
Email
Phone number
Live-chat (if possible)
Address
Defined service level agreements (SLAs).
I'm trying to make a permanent change to my SAS config file (sasv9.cfg). Specifically, I want to increase the MEMSIZE option from -MEMSIZE 2G to -MEMSIZE MAX.
The instructions from SAS on how to do this are on this page under *Overview of Changing SAS System Option Settings' ... http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#p0drw76qo0gig2n1kcoliekh605k.htm#p0273uv4qrgcrjn16vg7muluuhrz
Using SAS' text editor I am able to access the config file (sasv9.cfg) and make the changes to the appropriate line of code.
The problem is that SAS won't let me save those changes, stipulating that the 'administrator' has to approve them. I am the administrator but I don't know enough about how SAS' OS works to enable the save.
Any suggestions on workarounds to this issue would be most welcome.
You need to edit the file as an Administrator since I'm guessing you are on Windows,
Right click in notepad app and select run as an Administrator:
Then open the file sasv9.cfg through menu > file > open
Running some random code I found on the internet a few weeks ago has changed the pagesize and linesize defaults of my SAS output window. I don't remember what code it was though unfortunately. The current default pagesize is 15, which is generally way too small.
Does anyone know how to change the default?
I can change this using "options pagesize=80" or something but that only lasts for the current session. I can also change it in the GUI from Tools>Options>Output>Display but any changes won't save to my next session.
Any tips would be much appreciated! This is kind of excruciating. Thanks!
Your editor preferences are stored in a SAS catalog. Only 1 SAS session can open/write to this catalog at a single time. You can find out the location of the catalog that your SAS session is using by running this code:
proc options;run;
... And then search for SASUSER in the log.
If you launch SAS and it tries to use a SASUSER catalog that is already in use by another session, it will give you the message:
WARNING: Unable to copy SASUSER registry to WORK registry. Because of this,
WARNING: you will not see registry customizations during this session.
Are you seeing this message when you launch SAS? If so, it means that you have another instance of SAS open on your machine that has that catalog open. You have 2 options:
Close all instances of sas.exe on your machine (via task manager, be sure to check process names, not just the applications tab) then try making the change again.
Setup another shortcut to launch sas.exe. On this shortcut, specify a different SASUSER location like so:
sas.exe -SASUSER "d:\sas\profile2.cfg"
Also, I'm assuming you have the option to 'Save settings on exit' checked. Or if this isn't the case you can save your current settings by typing the command save into the command bar.
EDIT :
Some additional places to check that may override any profile settings:
Your sasv9.cfg file. Again, run proc options;run; and search for sasv9.cfg. It will give you the location of this file. If the file simply contains a list of other filenames, be sure to open up those 'included' files and check those.
Your autoexec file. If your SAS environment is specifying an autoexec file to load at launch, make sure it's not adjusting them there. Also if it is using an autoexec file, make sure you have all the loggin options turned on as the first thing that happens when SAS loads: option mprint notes source source2;.
Try right-clicking on SAS and choose 'Launch as Admininstrator'. If your profile is in a read-only location due to priveleges, perhaps your settings aren't being saved.
Look in your windows event log to see if SAS is loggin any errors there.
According to the SAS for Windows documentation, pagesize is controlled in part by the default printer. 15 is the minimum value, so it's possible that there is something wrong with your default printer and/or SAS is doing something odd (such as not finding one). If 'some random code' changed your default printer, you could simply try changing it back (see your SYSPRINT option).
I believe you can override this in your sasv9.cfg, commonly located in a path like C:\Program Files\SAS\SAS Foundation\9.4\nls\en\sasv9.cfg (varying based on what language version of SAS you use and your version, plus installation details), by simply adding -pagesize=80 or whatever you wish the default to be. You also can add options pagesize=80; to your autoexec.sas (or a new autoexec.sas if you don't have one already); see this paper or the documentation for more details on that.
I changed the regex for email addresses when registering to only allow people with certain domain names (ex #domain1.com or #domain2.com). Is there any way to update the error message that shows when someone enters a different domain name (ex #mysite.com)?
I checked all the resource files but couldn't find the error message "You must enter a valid email address."
#icidis is close, but you can use the Admin/Languages page which will give you access to the Language Editor and then you can update the Resources. If you modify the file directly you run the risk of losing those changes in a future upgrade. IF you use the Language Editor you can modify the RESX file specific to that Portal (based on portalid) or even at the HOST level which makes a file that applies to all portals, but doesn't change the "root" files so an upgrade doesn't overwrite them.
Check out this video in the DNN video library
http://www.dotnetnuke.com/Resources/Video-Library/Viewer/Video/232/View/Details/Introduction-to-the-DotNetNuke-Language-Module.aspx
The file you'll likely want I believe is \DesktopModules\Admin\Security\App_LocalResources\SharedResources
I need to provide non-techie user ability to reliable download a few large files (3Gb) from URL without revealing the source URL of the file. Ideally I need single exe (without dependencies) that will download file from URL, specified inside exe: when user click on exe it just need show prompt where to save the file, and(optionally) will provide the user with some progress bar, for instance. The target URL can be specified directly in
the resource section, so I can edit URL path with HEX editor when I need set another path.
Wget are not suitable in my case, as its command line utility and requires user to specify an URL.
You could use the URLDownloadToFile function. Implement the IBindStatusCallback interface to receive progress information.
You really can't hide the source URL. Why are you trying to do that? If an end user runs tcpdump while they are running your program, they'll see where packets are coming from and going to.
I'd just provide them with a small batch file which calls ftp.exe. Tell your end user to drop the .BAT file where the downloaded file should go, and click it.
That solves quite a few problems, e.g. you know that your end user will be able to find the directory.