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

Update table index using table extension

$
0
0

I create a table extension to add extra fields to a standard table . I need to include these new fields in the index that is already created on the table with allow duplicate no , how can I update the index since I cannot add any fields also I cannot update index properties , is there any work around using table extension not customization ?


Dynamics AX7 Webservice authentification

$
0
0

Hey,

I created a simple webservice in ax that returns a string. The WSDL is available. Now Iam trying to consume this webservice via a C# program.

I used this guide: https://ax.help.dynamics.com/en/wiki/dynamics-ax-7-services-technical-concepts-guide/ and the following code samples: https://github.com/Microsoft/Dynamics-AX-Integration/tree/master/ServiceSamples/SoapConsoleApplication

The Problem is that we are using the contoso image for developing. Is there any way for a simple authentification without the Azure Active Directory?

We don't have this option right now but we need to test the services.

Best regards

Alex

Batch Job's status remain in Available status

$
0
0

While running Download Job - Jobs are shown with Available status that never went into Applied status.

Using Dynamics365 - While running job, job history does show effected rows but when reaching to Download Session page, it shows with Available status. Any hint to fix ?

ODATA SERVICE Authentication Issue / Accessing Entity Data

$
0
0

Hi all,

I'm currently using the Dynamics Github Service Examples to see if I could consume the OData end points.  I'm currently having an issue where I'm trying to enumerate through the returned data set but i'm reaching an exception where it gives me a status code of 403 unauthorized.  

Does anyone know what might be causing that?  I'm thinking I'm missing a setting or something.  

Other pertinent info:

The app is registered in AAD as a Web App / API.  I've given it the following permissions:

Microsoft Dynamics ERP

- Delegated Permissions:  all 3

Windows Azure Active Directory

- Delegated Permissions: only 1 - Sign in and Read user Profiles

I'm passing through a set of credentials as well as the client key.

Not sure what i'm missing but i would be eternally grateful if someone could give me some hints as to what i'm missing.

Thank you!

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?

On-prem deployment - Partition is below target replica or instance count

$
0
0

Hi,

I am having this issue with my local cluster. I checked the partition is not an issue I have more than 10GB available on all nodes in cluster. I am trying to deploy MS Dynamics 365FO on the local cluster according to this doc: https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/deployment/setup-deploy-on-premises-pu12#plansvcacct and i am stuck on the last step where i have deploy to the local server.

Error in the SF:

_______________________________________

Error event: SourceId='System.FM', Property='State'. Partition is below target replica or instance count. fabric:/AXSF/AXService -1 1 76897cf8-fba9-4968-9517-ab9d80816b5e IB AOS_83 Up 131703551926567717 IB AOS_91 Up 131703551796481193 IB AOS_80 Up 131703551939536215 (Showing 3 out of 3 replicas. Total available replicas: 0) For more information see: http://aka.ms/sfhealth

___________________________________


Error on each node:


Unhealthy event: SourceId='System.RA', Property='ReplicaOpenStatus', HealthState='Warning', ConsiderWarningAsError=false. Replica had multiple failures during open on AOS_80. API call: IStatelessServiceInstance.Open(); Error = System.Exception (-2146233088) DB sync failed. at Microsoft.Dynamics.AXService.Database.Synchronizer.SyncDB() at Microsoft.Dynamics.AXService.Database.Synchronizer.Synchronize() at Microsoft.Dynamics.AXService.AXService.<>c__DisplayClass9_1.<.ctor>b__0() at Microsoft.PowerApps.Runtime.Common.LatencyRecorder.RecordLatencyEvent(ILogger logger, String eventName, Action action, IDictionary2 additionalProperties, IDictionary2 additionalMetrics) at Microsoft.Dynamics.AXService.AXService..ctor(StatelessServiceContext context, ILogger logger) at Microsoft.Dynamics.AXService.Program.<>c.b__0_0(StatelessServiceContext context) at Microsoft.ServiceFabric.Services.Runtime.StatelessServiceInstanceFactory.System.Fabric.IStatelessServiceFactory.CreateInstance(String serviceTypeName, Uri serviceName, Byte[] initializationData, Guid partitionId, Int64 instanceId) at System.Fabric.ServiceFactoryBroker.<>c__DisplayClass9_0.b__0(IStatelessServiceFactory factory, ServiceInitializationParameters initParams) at System.Fabric.ServiceFactoryBroker.CreateHelper[TFactory,TReturnValue](IntPtr nativeServiceType, IntPtr nativeServiceName, UInt32 initializationDataLength, IntPtr nativeInitializationData, Guid partitionId, Func3 creationFunc, Action2 initializationFunc, ServiceInitializationParameters initializationParameters) For more information see: http://aka.ms/sfhealth

_______________________________________________________

Errors in the diagnostic store for the node where its failing:

2018/05/07-15:39:21.914,Info,4524,FabricDeployer.FabricDeployer,Running deployer with UpdateInstanceId /fabricBinRoot:C:\Program Files\Microsoft Service Fabric\bin /fabricDataRoot:C:\ProgramData\SF /fabricLogRoot:C:\ProgramData\SF\Log /cm:C:\ProgramData\SF\AOS_83\Fabric\ClusterManifest.current.xml /oldClusterManifestString: /im:C:\ProgramData\SF\AOS_83\Fabric\Fabric.Data\InfrastructureManifest.xml /instanceId:131701810926192303 /targetVersion:6.1.480.9494 /nodeName:AOS_83 /nodeTypeName: /runAsType: /runAsAccountName: /runAsPassword: /serviceStartupType: /output: /currentVersion: /error:C:\ProgramData\SF\AOS_83\Fabric\work\41-3164 /bootstrapMSIPath: /machineName: /fabricPackageRoot: /jsonClusterConfigLocation: /enableCircularTraceSession: /continueIfContainersFeatureNotInstalled: /skipDeleteData:
2018/05/07-15:39:21.945,Info,4524,ImageStoreClient.ManagedFileLock,Obtained writer lock for C:\ProgramData\SF\lock
2018/05/07-15:39:21.945,Info,4524,FabricDeployer.FabricDeployer,Executing UpdateInstanceId /fabricBinRoot:C:\Program Files\Microsoft Service Fabric\bin /fabricDataRoot:C:\ProgramData\SF /fabricLogRoot:C:\ProgramData\SF\Log /cm:C:\ProgramData\SF\AOS_83\Fabric\ClusterManifest.current.xml /oldClusterManifestString: /im:C:\ProgramData\SF\AOS_83\Fabric\Fabric.Data\InfrastructureManifest.xml /instanceId:131701810926192303 /targetVersion:6.1.480.9494 /nodeName:AOS_83 /nodeTypeName: /runAsType: /runAsAccountName: /runAsPassword: /serviceStartupType: /output: /currentVersion: /error:C:\ProgramData\SF\AOS_83\Fabric\work\41-3164 /bootstrapMSIPath: /machineName: /fabricPackageRoot: /jsonClusterConfigLocation: /enableCircularTraceSession: /continueIfContainersFeatureNotInstalled: /skipDeleteData:
2018/05/07-15:39:22.117,Info,4524,FabricDeployer.FabricDeployer,Running operation System.Fabric.FabricDeployer.UpdateInstanceIdOperation
2018/05/07-15:39:22.148,Info,4524,FabricDeployer.FabricDeployer,AclClusterLevelCerts: Enter
2018/05/07-15:39:22.148,Info,4524,FabricDeployer.FabricDeployer,AclClusterLevelCerts: processing FindByThumbprint,43E5DDB7BE39DDCD37B3EF508FD597AAD709F475,My
2018/05/07-15:39:22.164,Info,4524,FabricDeployer.FabricDeployer,AclCert success: FindByThumbprint,43E5DDB7BE39DDCD37B3EF508FD597AAD709F475,My
2018/05/07-15:39:22.164,Info,4524,FabricDeployer.FabricDeployer,AclClusterLevelCerts: FindByThumbprint,43E5DDB7BE39DDCD37B3EF508FD597AAD709F475,My processed
2018/05/07-15:39:22.179,Info,4524,FabricDeployer.FabricDeployer,Skipping container network set up since we are not on Azure.
2018/05/07-15:39:22.601,Info,4524,FabricDeployer.FabricDeployer,The current machine IP addresses are: fe80::ec51:5049:948e:e189%5, 192.168.145.83, 127.0.0.1, ::1
2018/05/07-15:39:22.695,Info,4524,FabricDeployer.FabricDeployer,ServiceFabricEtlFileQueryable section was not found and is being added.
2018/05/07-15:39:22.711,Info,4524,FabricDeployer.FabricDeployer,ServiceFabricEtlFileQueryable section was not found and is being added.
2018/05/07-15:39:23.148,Info,4524,ImageStoreClient.ManagedFileLock,Obtained writer lock for C:\ProgramData\SF\AOS_83\Fabric\work\UnreliableTransportSettings.ini
2018/05/07-15:39:23.164,Info,4524,ImageStoreClient.ManagedFileLock,Released writer lock on C:\ProgramData\SF\AOS_83\Fabric\work\UnreliableTransportSettings.ini
2018/05/07-15:39:23.226,Info,4524,FabricDeployer.FabricDeployer,Generating the fabric package file at C:\ProgramData\SF\AOS_83\Fabric\Fabric.Package.current.xml
2018/05/07-15:39:23.257,Info,4524,FabricDeployer.FabricDeployer,Host Settings file generated at C:\ProgramData\SF\FabricHostSettings.xml
2018/05/07-15:39:26.711,Info,4524,FabricDeployer.FabricDeployer,Dynamic port range not specified in cluster manifest. Start port : 0. Using default dynamic port range for server.
2018/05/07-15:39:26.726,Info,4524,FabricDeployer.FabricDeployer,Executing command: logman stop FabricCounters
2018/05/07-15:39:29.143,Info,4524,FabricDeployer.FabricDeployer,Executing command: logman delete FabricCounters
2018/05/07-15:39:29.670,Info,4524,FabricDeployer.FabricDeployer,Performance counter sampling interval: 00:01:00 seconds.
2018/05/07-15:39:29.686,Info,4524,FabricDeployer.FabricDeployer,Executing command: logman create counter FabricCounters -cf C:\Windows\TEMP\tmp2BDC.tmp -f bin -si 60 -o "C:\ProgramData\SF\Log\PerformanceCountersBinary\fabric_counters_636612899696865084" -v nnnnnn -max 50 -cnf 2700
2018/05/07-15:39:30.249,Info,4524,FabricDeployer.FabricDeployer,Executing command: logman start FabricCounters
2018/05/07-15:39:31.853,Info,4524,FabricDeployer.FabricDeployer,Infra node <AOS_80> params.NodeName <AOS_83>
2018/05/07-15:39:31.853,Info,4524,FabricDeployer.FabricDeployer,Infra node <AOS_83> params.NodeName <AOS_83>
2018/05/07-15:39:31.853,Info,4524,FabricDeployer.FabricDeployer,Found node IPAddressOrFQDN <192.168.145.83>
2018/05/07-15:39:31.853,Info,4524,FabricDeployer.FabricDeployer,DockerDnsHelper current node IPAddressOrFQDN <192.168.145.83>
2018/05/07-15:39:31.869,Info,4524,FabricDeployer.FabricDeployer,Starting DockerDnsHelper.SetupAsync
2018/05/07-15:39:31.869,Info,4524,FabricDeployer.FabricDeployer,Executing DockerDnsHelper.SetupAsync, attempt 1 of 3
2018/05/07-15:39:31.884,Info,4524,FabricDeployer.FabricDeployer,Dism initializing...
2018/05/07-15:39:31.884,Info,4524,FabricDeployer.FabricDeployer,Dism initializing completed, opening online session...
2018/05/07-15:39:32.279,Info,4524,FabricDeployer.FabricDeployer,Dism opening online session completed, getting feature info...
2018/05/07-15:39:33.666,Info,4524,FabricDeployer.FabricDeployer,Dism feature Containers is in state: DismStateStaged
2018/05/07-15:39:33.666,Info,4524,FabricDeployer.FabricDeployer,Dism closing session...
2018/05/07-15:39:33.791,Info,4524,FabricDeployer.FabricDeployer,Dism closing session completed
2018/05/07-15:39:33.791,Info,4524,FabricDeployer.FabricDeployer,Dism shutting down...
2018/05/07-15:39:33.885,Info,4524,FabricDeployer.FabricDeployer,Dism shutting down completed
2018/05/07-15:39:33.902,Info,4524,FabricDeployer.FabricDeployer,Dism log file content:
2018-05-07 11:39:31, Warning DISM DISM Provider Store: PID=4108 TID=4048 Failed to Load the provider: C:\Windows\SYSTEM32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
[4108] [0x8007007b] FIOReadFileIntoBuffer:(1250): The filename, directory name, or volume label syntax is incorrect.
[4108] [0xc142011c] UnmarshallImageHandleFromDirectory:(793)
[4108] [0xc142011c] WIMGetMountedImageHandle:(3047)
[4108] [0x8007007b] FIOReadFileIntoBuffer:(1250): The filename, directory name, or volume label syntax is incorrect.
[4108] [0xc142011c] UnmarshallImageHandleFromDirectory:(793)
[4108] [0xc142011c] WIMGetMountedImageHandle:(3047)
2018-05-07 11:39:32, Warning DISM DISM OS Provider: PID=4364 TID=2704 Unable to set the DLL search path to the servicing stack folder. C:\Windows may not point to a valid Windows folder. - CDISMOSServiceManager::Final_OnConnect
2018-05-07 11:39:32, Warning DISM DISM Provider Store: PID=4364 TID=2704 Failed to Load the provider: C:\Windows\TEMP\F578182C-D732-4F74-A6D8-1EAAEF177735\PEProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)

2018/05/07-15:39:33.947,Info,4524,FabricDeployer.FabricDeployer,Containers feature not present. Not continuing further
2018/05/07-15:39:33.947,Info,4524,FabricDeployer.FabricDeployer,Successfully completed DockerDnsHelper.SetupAsync
2018/05/07-15:39:33.947,Info,4524,FabricDeployer.FabricDeployer,Completed DockerDnsHelper.SetupAsync
2018/05/07-15:39:33.947,Info,4524,ImageStoreClient.ManagedFileLock,Released writer lock on C:\ProgramData\SF\lock

___________________________________________________

Please let me know if you need more information. I tried to deploy 3-4 times from LCS but it always fail on this step when it deploy AXSF service.

Creating new sales order through DIXF in D365

$
0
0

I want to create a new sales order through DIXF in dynamics 365. I am using Sales order Composite entity for this. My XML file contains 1 header and 2 lines. When i import sales order, it gives error on sales order line and gives error "Sales order number does not allow editing", so kindly tell me how to create sales order through composite data entity.

dialog fields getting initialized to previous values

$
0
0

Hi All,

When I open the dialog that was created using uibuilder I'm getting the screen as below.

 Ho

As you can see the dialog is getting initialized with the values that was entered previously. What could be the cause and how can i initialize the dialog with default values.

Thanks.


Reading multiple excel files from specific folder in ax 7

$
0
0

Hi everyone,

I came across requirement where i need to read multiple excel files from a specific folder. I tried many codes but still got stuck while reading data. Actual problem am facing right now is that code only reads the first row of excel and doesn't read rest of the lines, Moreover first row even doesn't return appropriate values instead it return some garbage value. Expertise are required if any one worked before on such an issue. 

The link i have followed is :

http://daxture.blogspot.com/2017/04/ax-2012-reading-files-from-directory.html

Managing tickets in Microsoft Dynamics Lifecycle Services (LCS)

$
0
0

Dear Friends,
I have a case in Microsoft Dynamics Lifecycle Services (LCS):
1/ I want the customer can create a ticket in LCS
2/ The team member of my company can see and response this ticket, upload file to this ticket
3/ The customer can download the file from ticket
4/ I can search the history tickets
5/ The LCS can send email to notify any answer ticket.

Question:
1/ Can it support?.
Thank you.

AddRange with and and or conditions

$
0
0

I have a report that use this range 

this.query().dataSourceTable(tablenum(purchLine)).addRange(fieldnum(purchLine, deliveryDate)).value(sysQuery::range(FromDate.value(), toDate.value()));

I want to add another condition on the confirmeddlv field but it has to be an or condition.

How can i do this ?

Thank you

AX7: What made Microsoft to keep some elements Non-Extensible

$
0
0

With arrival of AX7, as we have got two approaches of development, a new development approach i.e. Extension allows us to extend AOT Elements.

For each element there is a property called isExtensible, which is either false or true.

Incase isExtensible=false, for an AOT element, that element cannot be extended.

 

 

An example let’s take a base enumeration LedgerTransTxt, which is part of Application Suite. Because of any reason such as for any of my ISV solution, I may think to extend this Base Enum, but I cannot extend it, as it is set to isExtensible=false

 

My question is simply, what made Microsoft to keep some elements extendable whereas other non-extendable?

Update table index using table extension

$
0
0

I create a table extension to add extra fields to a standard table . I need to include these new fields in the index that is already created on the table with allow duplicate no , how can I update the index since I cannot add any fields also I cannot update index properties , is there any work around using table extension not customization ?

send data to a external web service x++

$
0
0

Hi everyone.

I've been doing some research about how to send some (tentatively big amount of) data to an external web service.

I've encountered contradictory opinions about sending the information inside an XML document and I'm starting to get a bit muddled about which is the best approach for this case.

The web service should be called only once per day (of x time period... it hasn't been defined yet) sending all the information in one attempt.

so in your opinion, which option is more reliable for this case and why?

if is the xml document option, i could not find how exactly send it from x++ to the receiver aplication. i'd be really thankful if anyone can provide an example.

Code upgrade from AX 2012 R3 to AX7\D365

$
0
0

Hi,

I want to perform code upgrade from AX2012 R3 to AX7\D365 latest build. I have few questions.

  1. Can only specific model be upgraded?
  2. I have a model which contains 15 classes , 4 setup forms, 1 report. Based on this should i use LCS code upgrade utility or there is another way?
  3. What is the rough estimate for this code upgrade work?

Please guide.


Thanks


Upgrade Ax 2012R3 to D365

Open Web Page using X++ in Dynamics 365 for Operations

$
0
0

I need to open a URL on a button click. I found that infolog has urllookup method which does this. However that method isnt available in Dynamics 365 for Operations.

How can i do this ?

Thanks in advance,

Regards,

Himal

convert X++ Select Statement into aot query

$
0
0

i want to convert following X++ statement into AOT query

while select ItemId,Name,Qty,LineAmount,PurchPrice,PurchUnit,InvoiceDate
from VendInvoiceTrans join PurchMaxItemPurchasePriceTMP
where VendInvoiceTrans.ItemId == PurchMaxItemPurchasePriceTMP.ItemId &&
VendInvoiceTrans.InvoiceDate == PurchMaxItemPurchasePriceTMP.MaxInvoiceDate

How i can set a value of specific column in a lookup?

$
0
0

Good day, I want to get the value of column 3 (MainAccountId)

when selecting the line.

I get the lookup con this code...

    SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(NumberSequenceGroup), this);


    sysTableLookup.addLookupField(fieldNum(NumberSequenceGroup, NumberSequenceGroupId));
    sysTableLookup.addLookupField(fieldNum(NumberSequenceGroup, Description));
    sysTableLookup.addLookupField(fieldNum(NumberSequenceGroup, MainAccountId));


    queryBuildDataSource = query.addDataSource(tableNum(NumberSequenceGroup));


    sysTableLookup.parmQuery(query);
    sysTableLookup.performFormLookup();

Thanks in advance!!

save excel file to particular local folder in d3fo using OfficeOpenXml

$
0
0

Hi Friends,

I am trying to save excel file to local folder without prompting any message (download, ..) which I have created to through code by using OfficeOpenXml, I want to save this file to local folder (filename = "C:\\item.xls")

I am new to use DocuFileSave class to achieve this, please suggest me to save excel file to local folder.

Thanks in advance

Viewing all 17532 articles
Browse latest View live


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