Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I am trying to import excel file but it is giving me this error
following are the code of relevant class with its compilation error
public void importAndParseAttendanceFromUtility()
int rowsAffected = 0;
//below line is giving following error "Variable has not been declared."
importObj = new ImportUtilityZKK.Import();
fileName = importObj.ReadImportConfig(curext(), sessionId(), curUserId());
if (fileName != "")
where slTimeImportTable.UserId == curUserId()
|| slTimeImportTable.SessionId == sessionId();
info("Failed to import records!");
The answer is the same as in your previous thread about the same error, which we discussed just a short while ago. Compile the code and fix compilations errors (if any).
If it's newly written code, you're forgetting compilation. If you're not developing anything, then the environment hasn't been set up correctly. You should review your deployment procedures.
By the way, could you please use shorter thread titles? Details such as the stack trace belong to the thread body, not to the title.
I have tried compiling but it is giving me same error
What was the result of the compilation? Did it find any errors?
What exactly did you compile?
I have compile SLPRLAttendanceImportScreen and i gives me error "Variable ImportUtilityZKK.Import has not been declared ".
As I said, you must fix compilation errors. You are currenctly unable to compile your code, therefore trying to run it is just a waste of time.
The type name (ImportUtilityZKK.Import) suggests that you're trying to use a .NET library. First of all, review that the name is correct. Make sure that you didn't forget any namespace. If the name is correct, it seems that you haven't installed the library into your environment.
Please tell us whether you're trying to add a DLL file or you have the library defined in a Visual Studio project added to AOT.
There used to be a working build, but did it give an error when you compile it?
Then, it is a client-side class and cannot access the ax dll file on your machine (or the machine you are connected to).
Add the related dll to the Client bin Folder and try to compile it again (you may need to restart the AOS)
The fact of the matter is that the background is a bit more complicated than I explained, if there is an machine that has been successfully compiled before, compile it there.
You shouldn't install the DLL manually if it comes from a Visual Studio project added to AOT. In such a case, you should review the deplyment targets and compile the project - the deployment (to VSAssemblies folder) will be done automatically.
That's why I asked about which case it is.
Yes, but I felt like Laraib was dealing with a completely different development, compiling the relevant class and getting this error.
Let's think it as a Visual Studio project. What Laraib should do is right click/edit on that project. Compiling/deploying the project after making sure of its deplyment targets.
But my guess is this is an old dll and probably there is no microsoft dynamics ax visual studio development tools in the environment (hot-swapping etc.)
I think Laraib is not dealing with the dll itself, just trying to get past the error. So I just focused on compiling
Of course, these are all conjectures. If it is a new development with this dll, you will have to go through these steps.
Business Applications communities