Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

How to initialize parameters in sys operations?

$
0
0

Hi,

I want to initialize some default parameters in sys operation in run time before the UI interface is displayed to the user. Could someone please let me know where and how to pass the contract parameters to set the values?

Thanks!!


Consume Rest Api Web Service in Dynamics Ax 2012 R2?

$
0
0

Hi All,

I am working on consuming external rest web service in ax. I found many blogs/posts related to consuming soap web service in ax via visual studio. But for consuming rest web service i found only this blog http://dynamics.folio3.com/consuming-rest-apis-dynamics-ax-2012/ , i followed that blog throughly,still am facing issues when i try to consume the rest service.

Can anyone help me. Thanks in advance.

Batch job to be run only in day time.

$
0
0

Hi Everyone,

How to run a batch job in day time only (any specific time).

Ex, i am going to run a batch job(TestBatch) with recurrence as no end date and hours count as 3.
The batch job(TestBatch) should run between the day time (ex: 10am to 6pm).

How can i achieve this in 2012 R2.


Thanks in advance,

Boobalan.

Custom rate engines give error 'Dynamics.AX.ApplicationSuite.124.netmodule' on D365FO

$
0
0

We have custom transportation rate engines that worked perfectly in AX2012.

We brought them over to D365. We cannot get it to work in D365.

The error I get when I step through the code is:

Message "Could not load file or assembly 'Dynamics.AX.ApplicationSuite.124.netmodule' or one of its dependencies. The system cannot find the file specified." string

Microsoft has provided this link on how to create transportation  rate engines: https://docs.microsoft.com/en-us/dynamics365/unified-operations/supply-chain/transportation/create-new-transportation-management-engine#deploy-the-tms-engine-as-a-package

Nowhere in there does it mention anything special on the build or what version the project needs to be build in. Note that the rate engine project is a mixture between X++ and a C# class library.

When it builds, it generate warnings that I have ignored up till now, but searching for an answer on the error makes me think that I need to look closer at the warning messages.

Here are some:

*****

2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Dynamics.AX.ApplicationFoundation", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Dynamics.AX.ApplicationPlatform", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

3> No way to resolve conflict between "Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.Data.OData, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "Microsoft.Data.Edm, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.Data.Edm, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "Microsoft.Data.Edm, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "Microsoft.Data.Services.Client, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "Microsoft.Data.Services.Client, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "Microsoft.Data.Services.Client, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "System.Spatial, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "System.Spatial, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "System.Spatial, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" arbitrarily.

3> No way to resolve conflict between "Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" and "Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed". Choosing "Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" arbitrarily.

3> Consider app.config remapping of assembly "Microsoft.Data.OData, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Microsoft.Data.OData.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "6.0.0.0" [] to Version "9.0.0.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Newtonsoft.Json.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "Microsoft.Data.Services.Client, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Microsoft.Data.Services.Client.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "System.Spatial, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\System.Spatial.dll] to solve conflict and get rid of warning.

3> Consider app.config remapping of assembly "Microsoft.Data.Edm, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "5.6.0.0" [] to Version "5.6.4.0" [C:\Users\User5189d4976dc\Documents\Visual Studio 2015\Projects\TMC_3832_TmsSharedParcelEngineData\TMC.ThirdParty.Parcel\bin\Debug\Microsoft.Data.Edm.dll] to solve conflict and get rid of warning.

3>C:\Program Files (x86)\MSBuild\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets(75,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Data.OData" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Data.Services.Client" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Spatial" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Microsoft.Data.Edm" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" /></dependentAssembly></assemblyBinding>

*****

What I read about these errors, is that it means that AX is on one version and that Visual Studio compile sit against another. It looks to me that AX is X86. By default the projects are compiled as Debug/Any CPU. It looks like I need to change it to Debug/X86. I did that but the build gave even more warnings. So I changed it to Debug/X64, but still the warning messages.   

 

So I don't know if I am on the right track to fix my run time exception error.

Can anybody shed some light for me on this error ("Could not load file or assembly 'Dynamics.AX.ApplicationSuite.124.netmodule' or one of its dependencies. The system cannot find the file specified." ) please with a possible solution on how to fix it?

How can we define Unique Product Variant Weights?

$
0
0

Hi there,

We are trying to configure our products by using the product dimensions.

for example::

Main Product: Samsung S433A TV

Size options: 42", 50", 60"

Color options: Black, Silver

Assuming every size and color option is valid combination - we have six different product variants possible for this particular Samsung TV.

Samsung S433A TV - Size: 42" - Color: Black

Samsung S433A TV - Size: 50" - Color: Black

Samsung S433A TV - Size: 60" - Color: Black

Samsung S433A TV - Size: 42" - Color: Silver

Samsung S433A TV - Size: 50" - Color: Silver

Samsung S433A TV - Size: 60" - Color: Silver

We can also configure unique cost and selling prices using a trade agreement. However, we are unable to define unique gross weight and volume information. The weight & volume info for 42" TV, 50" TV and 60"TV are significantly different. From what it seems like AX only allows one gross weight per product master. Please advise how we can configure these details.

How to publish customization from Sandbox to Production in Dynamics 365 For Finance and Operations?

$
0
0

Hi..

i have fixing report and form in Sandbox, in Production environment, i don't have VM for fixing my report and form.

so, how to fixing customization in server Production?

Thanks all.

Upgrade Ax 2012R3 to D365

How I can get packslipid from the SalesFormLetter class?

$
0
0

I like change the packingslip status, but i need the packingslipid.

I hope you can help me.

Thanks in advance!


D365FO Demo machine for partners

$
0
0

Hi I am a consultant and MS partner and wanting to get a D365 demo machine for learning purposes.  If I log into my lcs, I only get the option to deploy AX2012 demo environments, I don't get any of the options to create/deploy a D365 project as mentioned in all of the articles.  I'm also a member of the Microsoft partner network, and get an azure subscription as part of the action pack, but this is under a different account - I can't find any route to a D365 environment here either. I managed to get a trial, but these are only intended as a look and feel I think. Can anyone point me in the right direction. Thanks

Recommended books for D365FO programmers

$
0
0

Hi All,

Please can anyone recommend a text book for Dynamics AX 365 programming. I know Microsoft has added new features such as Chain of Command etc.. I couldn't find any on Amazon.

Thanks

Mike

DB Synch fails after I add new fields to table extension

$
0
0

Hello,

I have added several new fields to extension of "SalesInvoiceHeaderFooterTmp" table.

I build it and when trying to Synch, I'm getting error:

"Table Sync Failed for Table: Table Sync Failed for Table: SalesInvoiceHeaderFooterTmp Error: System.InvalidOperationException: Database execution failed: Violation of PRIMARY KEY constraint 'I_65518FIELD'. Cannot insert duplicate key in object 'dbo.SQLDICTIONARY'. The duplicate key value is (3330, 60001, 1, 0).

The statement has been terminated."

I just added several string fields, did not do any other modifications.

How can I solve it?

Thanks.

Hiding Time part from DateTime field

$
0
0

Hi

I modified a query to include a datasource on a list page, now the datasource is available for users to add fields from that datasource onto the grid. The problem is that there is a field "ValidFrom" which is of type DateTime users want the field that they just added to the grid to only show Date not the Time part. How should I go about it ?

Process to debug not found and 503 whenever trying to build/rebuild or debug

$
0
0

Whenever  I build/rebuild my solutions in vs , for some reason i start getting 503 service unavailable on Ax .

The only way to fix that is iisreset.

Also at times when I want to debug, i keep getting error message that "Process to debug cannot be found"

This is resolved by completely closing down VS and then restarting it.

Is there any way I can config the system so that I get rid of frequent 503 & process to debug not found error.

Note all basic settings like run as admin, line , word wrap etc are already in place.

Steps to download AX7 VM

$
0
0

Hello,

Can someone point me where I can find the steps to download a successful AX 7 VM? I have not seen it in LCS as an option of the versions I could deploy in Azure.

Thank you!

Download and compress files through exception during batch job in D365

$
0
0

Hi Experts,

We are generating check PDF through manual execution it will ask to save and download file. but in case of batch processing,  code in downloadAndCompressFiles class SrsReportRunController tries to navigate to download url and it through exception. Can any one suggest what would be the solution for this ?

In normal scenario if any report wants to download or save it later point of time through batch job how can we achieve that ? there is no such option in Batch job except Log.

Please let me know your thoughts on this, any suggestion will be greatly appreciated. 

Regards

Guru


Financial dimension as display

$
0
0

How to use Dimension [1], Dimension [2], Dimension [3] .. as display(X++)?

Thanks in advance for your help

Enterprise portal in ax365

$
0
0

Good Morning,

I am trying to find Enterprise portal in ax365.

Please guide me where can i get to access enterprise portal.

Please provide some guide or material.

Any help would be greatly appreciated.

Regards.

Have a Great Day.

Configuration of email in Ax

$
0
0

I am trying to generate email from Ax but system giving me following error

Full generation of CIL done many times

Compiling of Application also done 

Microsoft.Dynamics.Ax.Xpp.ClrErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ClrErrorException' was thrown.
at Dynamics.Ax.Application.SysEmailBatch.Run() in SysEmailBatch.run.xpp:line 326
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
at BatchRun::runJobStatic(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.taskThreadEntry(Object threadArg)

Thanks in Advance 

Recommended books for D365FO programmers

$
0
0

Hi All,

Please can anyone recommend a text book for Dynamics AX 365 programming. I know Microsoft has added new features such as Chain of Command etc.. I couldn't find any on Amazon.

Thanks

Mike

How to Display the image in SSRS Reports

$
0
0

Dear all,

Presently, i have a trouble and i don't know why.

I had design a ssrs report. When i Preview report in Visual Studio .NET it shows the image OK.

Then i add AOT and deployed and run that reports in AX not show images. 

I tried many way but still not work. Please help me.

Many thanks.

Regards.

Viewing all 17532 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>