Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Array element value from fieldId

$
0
0

Try this:

while (fieldId)
{
    dictField = dictTable.fieldObject(fieldId);

    if (fieldExt2id(fieldId) == fieldNum(RPayTblTrans, Dimension))
    {
        for(i = 1; i <= dictField.arraySize(); i++)
        {
            info(strFmt("%1 %2",  dictField.name(), rPayTblTrans.Dimension[i]));
        }
    }
    else
        info(strFmt("%1 %2", dictField.name(), rPayTblTrans.(fieldId)));

    fieldId = dictTable.fieldNext(fieldId);
}



RE: Select newly created record on a listpage grid

RE: X++ AOT Query Aggregate 'Having' Value Property Equal to Another Field

$
0
0

Thanks for your help, this did work.

I created the view that included the receiveNow field from the line and the SUM(receiveNow) from the subLine and joined that to my original query. Then I was able to add a query range at run-time using:

qbr2 = qbds2.addRange(fieldNum(myView, SumOfReceiveNow));

qbr2.value(strFmt('(%1.%2 != %1.%3)', tableStr(myView),fieldStr(MyView, receiveNow),  fieldStr(MyView, SumOfReceiveNow)));

Thanks again.

RE: X++ AOT Query Aggregate 'Having' Value Property Equal to Another Field

$
0
0

Cool, that you got it working..

Feedback appreciated.

X++ AOT Query Aggregate 'Having' Value Property Equal to Another Field

$
0
0

I'm trying to create an AOT Query replicating an SQL query where the Sum of one column is not equal to the value of another.  Can anyone help me understand the syntax for adding this in the Value property of the 'Having' node?

(in SQL)
havingsum(tableB.receiveNow) != TableA.receiveNow

RE: ODBC and Database Errors, Error accessing database connection.

ODBC and Database Errors, Error accessing database connection.

$
0
0

Since last week we get multiple SQL errors with our AX 4 SP2 and SQL Server 2008R2 environment.

Some Sessions where I run batch jobs for multiple hours on the server at night don't have any problems. Other batch-session on the same server stop within irregular intervals. Sometimes they run over 4 hours, sometimes they stop after 15 minutes.

In the AOS Logfile it seems that the errors always appear a few seconds after full hours, for example at 03:00:33, 09:00:59, 19:00:56, 22:01:34.

I don't have batch-jobs in Dynamics AX which run at that times, so I think it's a problem with the sql server, maybe when the sql server is making backups for the transaction files.

The errors also appear on some clients running Windows 10. They delete the error message in the client an continue working in the same session without any problems.

Any ideas what could be the problem or where I can start searching for errors?

AOS Logfile:

Ein Fehler ist aufgetreten:
Benutzerkennung: Admin
Uhrzeit: 09:01:10 31.10.2018
Version: Microsoft Dynamics 4.0 (Erstellungsnummer 2503.362)
Datenbank: Microsoft SQL Server
SQL-Anweisung: [Kennung=0, Wiederverwendet=Nein]
Fehlertext: [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet
SQL-Fehlercode: -101016

Eventlog:

Object Server 03: Fatal SQL condition during login. Error message: "[Microsoft][ODBC SQL Server Driver]Anmeldungstimeout abgelaufen"

Object Server 03: SQL diagnostics: [Microsoft][ODBC SQL Server Driver]Anmeldungstimeout abgelaufen. Connect information was: Userid = [], Database = [Dynamics_AX_4_DATABASE], Server = [SQLSERVER], DSN = [], Other = []

Object Server 03: The database reported (session 2 (NAME)): [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet. The SQL statement was: "SELECT  ...

Object Server 03: Dialog issued for client-less session 2: Cannot select a record in User Information (UserInfo). User ID: , .
Error accessing database connection.

Error Message in the Client:

SQL-Fehlerbeschreibung: [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet

SQL-Anweisung: SELECT ...

Ein Datensatz in ... kann nicht ausgewählt werden. Priorität: 0, . Fehler beim Zugriff auf die Datenbankverbindung.

SQL-Fehlerbeschreibung: [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet

Ein Datensatz in ... kann nicht ausgewählt werden. Priorität: 0, . Fehler beim Zugriff auf die Datenbankverbindung.

System.OutOfMemoryException when trying to copy a node in workflow

$
0
0

Hi, We are on AX2012RTM,

I am trying to add new nodes to an existing custom PO workflow to add new department. Instead of building a new department from the scratch, Trying to copy paste existing department to duplicate and so I can change few values to save work. This is giving me System.OutOfMemoryException. I have plenty(64GB memory) of resources on the machine. Tried this on another machine with 32 GB memory with same error. I noticed memory utilization going up by about 500MB when I tried to copy and comes up with this error. Is there any limitation on how much memory AX can use? I looked into server configuration for maxmemload parameter and couldn't find it. Please advice.


RE: Route Cost Categories issue

$
0
0

I have attached a screen clip of our cost categories. And I believe they are set up as "items and resources". As you can see from the list, there are different machines as well as manual labor, which indicates resources.

The account 16210 is the costing pool for "WIP Equipment", it catches all equipment costs into this one account.

The account 16190 is the "Finished Goods" account.
The account 51210 is called "Equipment Cost Allocation", and I don't think this account should be in here, or if it is its referenced incorrectly.

Now, how I need these to work in a simple example is. Lets take the item highlighted in the screen clip, the Waterjet. The Cost Price is hourly, so lets say we have an order and it requires exactly 1 hour on the waterjet and nothing else. Once the Waterjet tasks gets completed it should Debit 16210 / Credit Raw Material $170. Once posted as finished, Debit 16910 / Credit 16210 $170. Then once the sale is created move Debit Cost of Goods sold / Credit 16910 $170.

Nowhere in my analysis of how these should work include this 51210 account, and I am not sure why this account even exists. When I took over the books this was never explained to me and I would be happy removing it from the production transactions.

Hope that explanation helps,

JordanH





Route Cost Categories issue

$
0
0

Hi all, I am trying to find more information on the Route Cost Categories form and cannot seem to find anything online. You can navigate to this form by Production Control > Setup > Routes > Cost Categories.

I believe these accounts are set up incorrectly for my company but cannot find any resources to explain the different functions in this form. Specifically under the Ledger - Resources header. What is the purpose of the options "WIP Issue", "Resources Issues", and "Resource Issues, offset account" and what accounts should be assigned to these options?

In our AX, the option for "WIP Account" is assigned to our "Equipment Cost WIP" Account which should be good.
The options "WIP Issue" AND the "Resource Issue" are assigned the same account, a "Cost Allocation" account, which I believe is wrong.
And the option "Resource Issues Offset Account" is assigned to the "Finished Goods" clearing account, which I believe is wrong.

Unfortunately I cannot find any resources to explain the usage of these options or how they should be properly set up. All I know for sure is that the WIP Account is in a constant growing debit position, which is wrong, the account that is assigned to the "WIP Issue" and "Resource Issue" option is in a constant MASSIVE credit position (which is causing a negative COGS, obviously wrong).

If anyone could give me an explanation of how the options in this form work that would be a great help so I can ensure they are set up correctly.

Thanks,

JordanH

RE: Error outbound transfer journal is not supported

$
0
0

Can you share a screenshot of the complete error and also tell what exact entity you are trying to export or import using the AIF service?

Management reporter

$
0
0

Hello community,

I have three questions:

1-I've generated a report in MR with a row definition that contains  some conditions  linked to financial dimensions, but i don't know why do i get a report without any values. 

2- How can i add a financial dimension value that contains "&" as a condition in the column "link to FD" in a row  definition?

3-How can i add a user in Management reporter  security as an administrator?

Many thanks,

Imane.

RE: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

$
0
0

Hello Jignesh Patel,

Have you tried to set the Anonymous Authentication in IIS to use Application pool identity instead of a specific user?

To do this go to the IIS server, Open up IIS Manager, Click on your site, click on Authentication Icon in the IIS area of Features View, Click on Anonymous Authentication, Click Edit, select Application pool identity.

Additionally you can set the Pass-through authentication to a specific user. Use a service account that has local Administrator rights on the server.

To do this in IIS Manager, click on Basic Settings in Actions, Click Connect As, and specify the service account you want to use.

Hope this helps!

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

$
0
0

Hi,

While calling custom service from Ax 2012 R3 to Ax 2009 i'm getting this error. i have performed below steps to create and consume custom service.

I have created a custom aif service in Ax 2009 server. using the below link.

https://blogs.msdn.microsoft.com/aif/2008/12/16/creating-custom-dynamics-ax-services/

Then i have hosted AifWebService (C:\Program Files\Microsoft Dynamics AX\50\AifWebServices)folder in IIS in Ax 2009 Server. because of AifWebService components has not installed in Ax 2009 server. now i can access my created custom service using the wsdl URL.

now i have created .Net wrapper for consume the server in Ax 2012 R3. after i have added this Library to my Ax 2012 R3 server.

I'm able to get my service in Ax 2012 R3 server.

calling service through Ax 2012 R3 I'm getting this error. i have checked more links for this error but still not getting any solution.

Below is my Web.Config in Ax 2009 Server.

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBindingWindowsAuth">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" proxyCredentialType="None"/>
      <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
</system.serviceModel>


Belo is my App.Config file in Ax 2012 R3 Server.

<bindings>
	<basicHttpBinding>
		<binding name="BasicHttpBinding_IND_D3652AX09Service">
			<security mode="TransportCredentialOnly">
				<transport clientCredentialType="Windows" proxyCredentialType="None" />
				<message clientCredentialType="UserName" algorithmSuite="Default" />
			</security>
		</binding>
		<binding name="BasicHttpBinding_IIAX20092D365" />
	</basicHttpBinding>
</bindings>

i'm not sure which step i have missed.

can you please help me out this issue ?

RE: Data flow from salesparmline to custconfirmtrans

$
0
0

Hi Rustem,

I have written code above next()

Still not working.

I have attached process and tried to debug but breakoint is not hitting.

Can you please tell me how can we debug this ?

Regards.


RE: Dialog Parameter box visibility while running a SSRS report through controller class

RE: Getting Authentication Error while Active MPOS

$
0
0

HI,

  i have the same issue, then i check on subjob 1070 for RetailStoreAddressBook table. If you didn't found that table, then add it. After that add another address book in customer address book and employee address book in retail stores form to trigger 1070 job, and run 1070 job. It works for me

Getting Authentication Error while Active MPOS

$
0
0

Hello

I have just configured new store and validated all step from HQ where it gets successfully validate the message. But while active same store from CPOS.I am getting following error on CPOS active step sceen

Step 3 of 9: Getting device configuration failed.

DA1006 - The username and/or password combination failed to logon to the store.

  • The employee does not exist;

  • The employee does not belong to the logon store;

  • Wrong username or password combination;

  • No employee permission is found in the channel database;

  • The staff identifier cannot be retrieved from the givin logon type.

Application session ID

990f6ba1-cb03-99aa-fc1c-3b136ae006ec

When I check even viewer I getting the following log in eventviewer

An exception of type: 'Microsoft.Dynamics.Commerce.Runtime.UserAuthorizationException' occurred while executing Microsoft.Dynamics.Commerce.Runtime.DataServices.Messages.GetChannelProfileByChannelIdDataRequest request by Microsoft.Dynamics.Commerce.Runtime.Workflow.Composition.PipelineRequestTrigger. Error resource id: 'Microsoft_Dynamics_Commerce_Runtime_LocalLogonFailed', Exception: Microsoft.Dynamics.Commerce.Runtime.UserAuthorizationException: User could not be authorized. The user is blocked, not exists, or permission is not found.
at Microsoft.Dynamics.Commerce.Runtime.Services.StaffAuthorizationService.AuthorizeEmployeeLocalDatabase(RequestContext context, String staffId, Boolean enforceSessionOpened)
at Microsoft.Dynamics.Commerce.Runtime.Services.StaffAuthorizationService.ExecuteWorkWithLocalFallback(LogOnConfiguration authorizationConfiguration, StaffRealTimeSecurityValidationHelper staffSecurityHelper, Func`1 localDatabaseAction)
at Microsoft.Dynamics.Commerce.Runtime.Services.StaffAuthorizationService.AuthorizeStaff(StaffAuthorizationServiceRequest staffAuthorizationRequest)
at Microsoft.Dynamics.Commerce.Runtime.Services.StaffAuthorizationService.Execute(Request request)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.Execute[TResponse](Request request, RequestContext context, IRequestHandler handler, Boolean skipRequestTriggers)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.Execute[TResponse](Request request, RequestContext context, Boolean skipRequestTriggers)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.Composition.PipelineRequestTrigger.InitializeRequestContext(Request request, RequestContext context)
at Microsoft.Dynamics.Commerce.Runtime.Workflow.Composition.PipelineRequestTrigger.OnExecuting(Request request)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.RunOnExecutingTriggers(Request request, IEnumerable`1 triggers).

Can anyone please help me to get out from this issue

How to replace integration done in Ax 2012 RTM using C# classes & web service call , sql .net classes in D365

RE: Projects - Sales Tax & Capitalizing

$
0
0

Ludwig,

I have changed the ledger posting group main account type to an asset and re-created the project and PO transactions. Upon running the estimate calculation for the new project, I get the same exact results as I did when the main account type was a liability.

Viewing all 175888 articles
Browse latest View live


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