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

Admin provisioning tool can't stop DynamicsAXBatch service

$
0
0

Hi I have Dynamics 365 on my local VM. as soon as I try to do the AdminUser provisioning, it gives me the error "Can not stop the DynamicsAXBatch service on computer '.'".

Does anyone has an idea ?

Regards


Warning Nested data access loop found in run method

$
0
0

Good day, I'm doing a code migration and I'm in the following situation:

1. I have two tables, Table1 and Table2

2. I must go through all the records in Table1 and see all the records in Table2.(there is no relationship between the two tables)

3. The following warning appears


I appreciate your help to solve it with a best practice

D365FO WMS App

$
0
0

Hi,

I am new to Dynamics 365 for Finance and Operations WMS apps. Just wondering if a new process can be customised through X++ code? 

Thanks,

Getting ship assert error in Visual Studio as "index (zero based) must be greater than or equal and less than the size of argument list "

$
0
0

Getting error "index (zero based) must be greater than or equal and less than the size of argument list "

Witnessing it in latest 8.0 version, Comes up even when opening Visual Studio

Event view log:

<Event xmlns="schemas.microsoft.com/.../event">

<System>

  <Provider Name="Microsoft-Dynamics-AX-ShipAssertShipLog" Guid="{41079D1E-1E15-4D8E-BDAB-BB93BD81C9ED}" />

  <EventID>2</EventID>

  <Version>0</Version>

  <Level>2</Level>

  <Task>2</Task>

  <Opcode>0</Opcode>

  <Keywords>0x8000000200000004</Keywords>

  <TimeCreated SystemTime="2018-04-24T04:50:46.373557200Z" />

  <EventRecordID>4</EventRecordID>

  <Correlation ActivityID="{855A3EDF-DB1A-0011-4159-5A851ADBD301}" />

  <Execution ProcessID="31440" ThreadID="12528" />

  <Channel>Microsoft-Dynamics-AX-ShipAssertShipLog/Admin</Channel>

  <Computer>devfa3d6f4262-1</Computer>

  <Security UserID="S-1-5-21-1411689012-494555149-2820302288-500" />

  </System>

<EventData>

  <Data Name="EventName">ShipAssert</Data>

  <Data Name="Data">{"AssertId":"ExceptionHandled","CallStack":"Microsoft.Dynamics.AX.Framework.Diagnostics, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.AX.Framework.Diagnostics.ShipAssert!Microsoft.Dynamics.AX.Framework.Diagnostics.TelemetryEventDictionary CreateCommonFields(System.String, System.String)|59||0|\nMicrosoft.Dynamics.AX.Framework.Diagnostics, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.AX.Framework.Diagnostics.ShipAssert!Void LogFailure(System.String, System.String)|27||0|\nMicrosoft.Dynamics.Framework.Tools.Core, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.Framework.Tools.Core.Logger.AxLogger!Void LogException(System.Exception, System.String)|339||0|\nMicrosoft.Dynamics.Framework.Tools.Core, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.Framework.Tools.Core.Logger.AxLogger!Void HandleException(System.Exception)|394||0|\nMicrosoft.Dynamics.Framework.Tools.Core, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.Framework.Tools.Core.Logger.AxLogger!Void HandleExceptionWithErrorMessage(System.Exception)|19||0|\nMicrosoft.Dynamics.Framework.Tools.Installer, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.Framework.Tools.SharedServices.SharedServicesPackage!Void Initialize()|580||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!Int32 Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(Microsoft.VisualStudio.OLE.Interop.IServiceProvider)|114||0|\nMicrosoft.VisualStudio.OLE.Interop, Version=7.10.6070, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.OLE.Interop.IServiceProvider!Int32 QueryService(System.Guid ByRef, System.Guid ByRef, IntPtr ByRef)|0||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.ServiceProvider!Int32 QueryService(System.Guid, System.Type, Boolean, System.Object ByRef)|220||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.ServiceProvider!System.Object GetService(System.Type, Boolean)|105||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!System.Object GetService(System.Type)|566||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!System.Object System.IServiceProvider.GetService(System.Type)|13||0|\nMicrosoft.Dynamics.Framework.Tools.ApplicationExplorer, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.Framework.Tools.ApplicationExplorer.ApplicationExplorerControl!Void .ctor()|301||0|\nMicrosoft.Dynamics.Framework.Tools.ApplicationExplorer, Version=7.0.4841.35248, Culture=neutral, PublicKeyToken=31bf3856ad364e35|Microsoft.Dynamics.Framework.Tools.ApplicationExplorer.ApplicationExplorerToolWindow!Void .ctor()|103||0|\nmscorlib, Version=4.7.2117.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.RuntimeTypeHandle!System.Object CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)|0||0|\nmscorlib, Version=4.7.2117.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.RuntimeType!System.Object CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)|120||0|\nmscorlib, Version=4.7.2117.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.RuntimeType!System.Object CreateInstanceDefaultCtor(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)|248||0|\nmscorlib, Version=4.7.2117.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Activator!System.Object CreateInstance(System.Type, Boolean)|84||0|\nmscorlib, Version=4.7.2117.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Activator!System.Object CreateInstance(System.Type)|12||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!Microsoft.VisualStudio.Shell.WindowPane InstantiateToolWindow(System.Type)|12||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!Microsoft.VisualStudio.Shell.WindowPane CreateToolWindow(System.Type, Int32, UInt32)|104||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!Microsoft.VisualStudio.Shell.WindowPane CreateToolWindow(System.Type, Int32, Microsoft.VisualStudio.Shell.ProvideToolWindowAttribute)|54||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!Microsoft.VisualStudio.Shell.WindowPane FindToolWindow(System.Type, Int32, Boolean, Microsoft.VisualStudio.Shell.ProvideToolWindowAttribute)|78||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!Int32 CreateToolWindow(System.Guid ByRef, Int32)|208||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Shell.Package!Int32 Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(System.Guid ByRef, UInt32)|29||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame!Boolean ConstructContent()|347||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame!Boolean EnsureContentConstructed()|111||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame!Void PreloadOnScreenContent(Microsoft.VisualStudio.PlatformUI.Shell.View)|57||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame!Void set_FrameView(Microsoft.VisualStudio.PlatformUI.Shell.View)|271||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService!Void ConnectViewToFrame(Microsoft.VisualStudio.PlatformUI.Shell.View)|945||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService!Void viewManager_WindowProfileChanging(System.Object, Microsoft.VisualStudio.PlatformUI.Shell.WindowProfileChangingEventArgs)|1373||0|\nmscorlib, Version=4.7.2117.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.EventHandler`1!Void Invoke(System.Object, TEventArgs)|0||0|\nMicrosoft.VisualStudio.Utilities, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.PlatformUI.ExtensionMethods!Void RaiseEvent[TEventArgs](System.EventHandler`1[TEventArgs], System.Object, TEventArgs)|24||0|\nMicrosoft.VisualStudio.Shell.ViewManager, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.PlatformUI.Shell.ViewManager!Void set_WindowProfile(Microsoft.VisualStudio.PlatformUI.Shell.WindowProfile)|247||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService!Void set_ActiveProfile(Microsoft.VisualStudio.PlatformUI.Shell.WindowProfile)|263||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService+\u003c\u003ec__DisplayClass172_0!Int32 \u003cLoadFrameLayout\u003eb__0()|260||0|\nMicrosoft.VisualStudio.Shell.14.0, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.ErrorHandler!Int32 CallWithCOMConvention(System.Func`1[System.Int32], Boolean, Boolean)|32||0|\nMicrosoft.VisualStudio.Platform.WindowManagement, Version=14.0.25420.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a|Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService!Int32 LoadFrameLayout(System.String, System.String, System.String, System.String)|87||0|\n","Message":"System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.\r\n at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)\r\n at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)\r\n at System.String.Format(IFormatProvider provider, String format, Object[] args)\r\n at Microsoft.Dynamics.Framework.Tools.ProjectSystem.Debugger.IISExpressDebuggingHostSupplier.InitializeDebuggingHostSupplier()\r\n at Microsoft.Dynamics.Framework.Tools.SharedServices.SharedServicesPackage.Initialize()","EventName":"ShipAssert","SessionId":"E0D7E785-9B94-4293-A871-EC380D832DF2","FileName":"d:\\dbs\\sh\\rfp\\0421_200321\\cmd\\34\\source\\kernel\\diagnostics\\diagnostics\\ShipAssert\\ShipAssert.cs","MethodName":"LogFailure","LineNumber":"123"}</Data>

  </EventData>

  </Event>

Environment details:

Installed product version : Microsoft Dynamics 365 for Finance and Operations (8.0)

Installed platform version : Update15 (7.0.4841.35248)

Azure hosted one box developer

Look forward for resolving it with your suggestion.

Regards

Rahul

Cannot cancel purchase requisition

$
0
0

Hi,

When I cancel purchase requisition show this error anyone helps me.  

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.

How records are inserted in purchparmtable and purchparmline from purchtable

$
0
0

Hi Guys,

When I am creating PO, records are getting created in purchtable

PurchParmTable and PurchParmLine contains detailed information regarding posting Purchase headers and Lines.

So actually at what stage it is creating record in purchparmtable and purchparmline, Where it is written to insert records in these parm tables.

How to get content from form?

$
0
0

Hi everyone,
I want to modify one SSRS report like add one field in tmp table and insert logic in field. I don't know if this is the best solution.

public void getInventTransRefId()
{ 
   */
    
    try
    {        
        ttsBegin;

         select firstonly InventTransRefId from wmsOrderTrans
            exists join * from inventDim
            where wmsOrderTrans.inventTransRefId == "SO038675"
                    && wmsOrderTrans.routeId == "001147_012";           
        if(wmsOrderTrans)
        {
            wmsPickingList_OrderPickTmpTemplate.InventTransRefId = wmsOrderTrans.inventTransRefId;       
        }

        ttsCommit;

    }
    catch
    {
        throw error(strFmt("Error! The operation is unsuccessful!"));
    }
}

I want to change strings in where clause as get information from form :

where wmsOrderTrans.inventTransRefId == "SO038675"
      && wmsOrderTrans.routeId == "001147_012"; 



Increamental Push and Full push in D3FO

$
0
0

Hi All

Can you please let me know what is the difference between Increamental Push and Full push?

When to select Increamental Push and Full push during entity creation ?

Please give me more shed on this.

Thanks!

Integration of Weighing Scale using "COMM Port" in AX 2012 R3

$
0
0

I need a help from you all.

I am supposed to capture the weight of a Finished Good & integrate it with Microsoft Dynamics using "Comm Port".

Please help. Thanks in advance.

Facing error while synchronizing

$
0
0

Hi, I am facing the under mentioned error when I synchronize database for D365. Please help


Beginning sync step: InitialSchema.
InitialSchema finished. Time elapsed: 00:08:510.
Beginning sync step: FullIds.
FullIds finished. Time elapsed: 00:02:789.
One or more errors occurred.
Inner Exception: The field 'ProjId' on the extension 'CustAgingReportTmp.Extension' already exists. This extension cannot be applied to the base element.
Unhandled exception
More Information: Semaphore lock on uninit mutex (this=00007FFC05FCEDB0). Doing default_sem.lock() instead...
Unhandled exception
More Information: Semaphore lock on uninit default_sem mutex (this=00007FFC05FCE720). Ignored...
Unhandled exception
More Information: Semaphore unlock on uninit mutex (this=00007FFC05FCEDB0). Doing default_sem.unlock() instead...
Unhandled exception
More Information: Semaphore unlock on uninit default_sem mutex (this=00007FFC05FCE720). Ignored...
Database synchronization completed (16427 ms). Errors found.
One or more errors occurred.
Inner Exception: The field 'ProjId' on the extension 'CustAgingReportTmp.Extension' already exists. This extension cannot be applied to the base element.
Unhandled exception
More Information: Semaphore lock on uninit mutex (this=00007FFC05FCEDB0). Doing default_sem.lock() instead...
More Information: Semaphore lock on uninit default_sem mutex (this=00007FFC05FCE720). Ignored...
More Information: Semaphore unlock on uninit mutex (this=00007FFC05FCEDB0). Doing default_sem.unlock() instead...
More Information: Semaphore unlock on uninit default_sem mutex (this=00007FFC05FCE720). Ignored...
syncengine.exe exited with code -1.

AX 2009 - .NET dll referencing error

$
0
0

Hi All,

I am facing weird issue while trying to consume .NET service dll in AX 2009 code. When I am referencing .NET service method inside X++ class running on server, I am getting below error:

"Assembly containing type ".NET method name" is not referenced". On client it runs fine and also in my own AX instance it runs absolutely fine without any issues. The above problem is in TEST environment. I have copied the same dll in TEST environment server bin folder which I am using for my own AX instance where I am not getting any error.

Could anyone please point me out what I might be missing here?

Thanks,

Baber.

D365 on premise deployment for 7.3 latest update

$
0
0
LCS deployment for 7.3 on premise d365 fails at axdiagnostics and axsf

Differentiate between Clicked event and Write event

$
0
0

Hi All,

I have a scenario where I would like to know best way to differentiate between a button clicked event(called from clicked method from form, no menuitem), write event(changing values in a field from form grid control). 

Eg: The multiline discount button in Sales order triggers Salesline update from the SalesLineType\Update class.

changing Multiline discount field values from Sales Line and saving will also trigger SalesLineType\Update class,

I want to do different actions in SalesLineType\Update class based on the clicked event from button and the field value changed event from the grid. 

How best can I differentiate these actions from my class level? I do not have any menuitem triggered so using the caller.args is not possible? 

Below is the call stack from both the processes. 

Thoughts on this will be very helpful. 

Thanks in advance.

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!


How to get the List of tables under the privilege permission in x++ code

Integration of R with D365 FO

$
0
0

Hello,

I have forecasted my sales and finance budget for next year in R and want to import into D365 so to plan my Master Scheduling.

How shall i integrate data forecasted in R into D365FO , i dont want to use Azure ML platform for integration.

Can i connect both the platform by API for real time updation.

Thanks.

How to add fields in Customer balances List reports

$
0
0

Dear All,

Version : Ax 2012 R3

Requirement:

Accounts receivable --> Reports-->Status -->Customer balances List 

I want add some filed in customer balances list report  for that ,I found CustProvisionalBalanceDP ,In that class for checking purpose ,I  put info and break point is not working  

Note : I unchecked  Tools-->options-->Development -->Execute business operations CIL  ,and ever changes I put increment cIL    ,I check different server is same issues for  all server         

Please  help to solve this issues  

BR

Tony

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 get current PurchOrder(id)?

$
0
0

Hi everyone,
I create one form ,which shows all PO ,SO and inventTransId :

I want when I open first /Accounts payable/Common/Purchase orders/All purchase orders and click of any Purchase order like this:

When I click PurchOrderQuery , this button open this form from first picture , I want in filed with SO,PO and inventTransId  automatically to show current PO or SO .

Give me some code.


Regards,
Vladislav

Viewing all 17532 articles
Browse latest View live


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