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

Data is not populated in Posting Invoice form in particular sales order in AX 2012 R3

$
0
0

Hi,

I have faced issue during Sales Order Invoicing. Data is not populated in Posting Invoice form. Packing slip has been done and Sales order is now Delivered status.

I have debugged the process and found in Class - SalesFormLetterParmData > CreateParmTable - Recid got 0

Kindly please suggest what could be the reason ? It's happening only for particular sales order.

Please give me more shed on this.

Thanks!


what's the usage of linkactive() method

$
0
0

can anyone explain to me the usage of method linkactive() in datasource i need clear explanation please

Populate the lookup field value based on other column lookup fields if checkbox is yes

$
0
0

Hi all,

I'm new to AX,

My question is, in the SalesTable Form, i have 2 customised fields(Destination port and Fumigation number) both are lookup fields.

If the destination port(fumigation is yes/checked) then the Fumigation number is set to FUM-Yes, 

If the destination port(fumigation is no/unchecked) then the Fumigation number is set to FUM-No, 

i tried to use modified event of the field, but i'm not getting the correct logic. can someone help me with code.,

Thank you!

Default unit of measure for customers

$
0
0

in my implementation each released product has a default unit of measure CT and alternate unit of measure CFZ. 

In one CT there are multiple CFZ and the ratio is defined in the conversion unit definition of each product

My customers send purchase order either in CT or in CFZ. Of course any given customer sends the purchase order always with the same unit of measure.

To make life easy for my order entry team I would like to predefine the unit of measure in the new order form based on the customer.

Is this possible?

Let me know

Thanks

Regards

Closed date is Incorrectly updated. [Inventory Management DB Consistency] AX2012

$
0
0

HI All,

Recently I have been running the database consistency check feature from AX2012

And I found something curious when checking the inventory module. It says: "Closed date is incorrectly updated".

So my question is:

How can this happen or why it happens like that?

 how can I fix it?

is it critical?

thanks a lot for your time. Your help is always greatly appreciated

Pricing Issue - Inter-company sales order vs. purchase order

$
0
0

Dear Mates,

We have two companies in our AX environment (R3). One is a vendor account while other one is the customer.

Using inter-company setup, we can share cost unit pricing b/w both companies using sales order & purchase order.

Can any one help us out to share sales prices from one company to become the purchase purchase for other company via intercompany sales order - purchase order.

Looking forward...

How is the Closing period adjustment column calculated

$
0
0

Good day,

Is anyone familiar on how the Closing period adjustments column in General Ledger > Trial Balances calculated?

Would appreciate if anyone can send me a MS documentation about this column.

Thank you.

Vendor Balance showing incorrect

$
0
0

Hi,

My Vendor Balance does not match with the open Transactions. In Vendor Balance X should show 300 . But its showing 4710 . 


Not able to open visual studio projects

$
0
0

Hi Experts,

I am not able to open any visual studio project in my development environment as it is showing below error. I needs to amend a report design but the error appears for all report projects (Both standard & customized reports). I have generated full CIL compilation and tried but no luck. Any help would be appreciated.

.

Thanks

Vendor Invoice Workflow

$
0
0

Hello Experts

 

I have set up a vendor invoice workflow and experience the following problems:

- Invoices are not sent to the workflow. Status says "Not applicable"

- If I submit them manually, the workflow doesn't start.

Thanks for any advice

How to Create General journal header with multiple lines through the X++ code and post the journal entry in AX 2009

$
0
0

Hi everyone, 

Can I ask some suggestion on how to create a general journal header with multiple lines through x++ code? I saw some samples from blogs but I can't find one that has example for multiple ledger journal lines creation. I tried to use the code samples from the blogs but it is just overwriting the first line. Need your help and suggestion on this problem.

how to check modified field table level in runtime

$
0
0

i wanna check if the field modified table level in runtime using X++ code
i didn't write any code in modified field table level i just wanna check if a specific field changed i tried 

if ( _TableBuffer.ModifiedField(TableNum(Table,Field)) )


but it's not work

any help please

WebAPI : NTLM authentication in Ax2012 R3

$
0
0

Hi,

I'm actually trying to call a WebAPI from code.

The API is running on a IIS which has Windows Authentication activated

I've tried to call it in a job with the code below :

static void TestApi(Args _args)
{
    str                             url;
    str                             byteStr;
    System.Net.HttpWebRequest       request;
    System.Net.HttpWebResponse      response;

    System.Byte[]                   byteArray;
    System.IO.Stream                stream;
    System.IO.Stream                dataStream;
    System.IO.StreamReader          streamReader;
    System.Net.ServicePoint         servicePoint;
    System.Net.WebHeaderCollection  httpHeader;
    CLRObject                       clrObj, ex;
    System.Text.Encoding            utf8;
    xml responseXml;
    ;

    byteStr = strfmt('%1:%2', "toto", "tata");
    new InteropPermission(InteropKind::ClrInterop).assert();
    httpHeader = new System.Net.WebHeaderCollection();
    url = "http://atl-svax016.atelier.lan:8080/api/DMDLOG/Information/CHG-0000004536";
    clrObj      = System.Net.WebRequest::Create(url);
    request     = clrObj;
    request.set_Method("GET");
    request.set_KeepAlive(true);
    request.set_ContentType("application/json");
    utf8        = System.Text.Encoding::get_UTF8();
    byteArray   = utf8.GetBytes(byteStr);
    byteStr     = System.Convert::ToBase64String(byteArray);
    httpHeader.Add("Authorization", 'NTLM ' + byteStr);
    

    try
    {
        request.set_Headers(httpHeader);
        response = request.GetResponse();
        dataStream = response.GetResponseStream();
        streamReader = new System.IO.StreamReader(dataStream);
        responseXml  = streamReader.ReadToEnd();
        info(responseXml);
    }
    catch (Exception::CLRError)
    {
        ex = ClrInterop::getLastException();
        if (ex != null)
        {
            ex = ex.get_InnerException();
            if (ex != null)
            {
                error(ex.ToString());
            }
        }
        else
            throw error ("Error while connecting API");

    }

    streamReader.Close();
    dataStream.Close();
    response.Close();
}

But when I execute it i get the error below : 

As you can see i'm not authorized to call it even though i'm passing my credentials.

I have tried to call the API from PostMan with NTLM authentication and the same credentials and it works fine.

Has anyone experienced similar issues? What could be the problem?

Looking forward to hear any advice,

kind regards

AX 2012 Initial DataCube Processing

$
0
0

All,

I am having an issue with processing the initial set of datacubes in AX 2012. I have went through the MS documentation to set up SSAS (Sql Server Analysis Services) and went through the cube setup wizard in AX.

The issue is when I go to process the cubes I get the following error messages and I don't know what is causing it.

any support would be greatly appreciated!

Settlement is not required for posting !

$
0
0

Hi Friends, I have one challenge on Posting.

As per standard Journal (AP -> journal ->payment Journal), create journal name -> create lines -> settlement -> post.

please see below,

I will create new journal as ('Advance journal'), here no need to settlement, he can do directly post.

Requirement is either normal case I need to do settlement and the post or-else 'Advance Journal' case I need to do directly post (not required settlement).

looks like, either I need to write code on 'while posting' or-else write init method on form. currently I am using AX 2012 R3.

please suggest me, how to do this.

Reagrds,

Vinilkumar.


How to set the warning message and display when user reset status for production which has been post material

$
0
0

Hi,

We want to avoid to reset status for the production order which already has the posting.

So could we give the warning message when user are doing this reset status or we have other way.

Thanks.

Kit Item and sales line explosion functionality

$
0
0

I need help to handle with the following complex case:

The case is that we have some Kit items and each Kit item consists of some components like the following example:
Product "A" is a Kit item consists of 2 sub-items "B" and "C".
In the packing slip, I want to deliver the sub-items "B" and "C" because "A" is not existing in my warehouses.
But in the invoice, I want to post the invoice for only "A" and I don't want to show B or C in the invoice, because the customer don't know the components but he make a deal with me to buy only the Kit item.
So, my question is "Is there a standard solution that let me making the packing slip for the components and make the invoice for the parent item in the same sales order?

I read some articles about phantom BOM but when I tried it and exploded the BOM components, this allow me to make the packing slip for the components but I can't make the invoice for the parent!

I'm looking for you help.

Thanks in advance

Mostafa

Emailing external customer account statement to customer accordingly.

$
0
0

I m new for this system, currently my company can print out Customer account statement by batches in pdf. However i need eamil manually to customer every month. We got thousand of customers, is it possible to to sending out through AX system without any add-in?

Means that i can just email it out directly without print into PDF and email out.

Narration or Description of AP Vendor Invoice journal not flowing to TDS account automatically in AX2012 R3

$
0
0

We are posting many vendor invoice journals in AP module with description.

The description is flowing into the Main account / offset account but same not flowing to TDS account automatically.

Please help us if you have come across such an issue.

Remote party has closed the transport stream on calling RESTful API via managed code AX2012

$
0
0

Hello,

I am trying to do a Proof of concept call of RESTful API on our customer DEV server (AX 2012 R3).

Following this suggestion I created a managed DLL to call the web service. I based it on this tutorial, calling a public RESTful API (due to environment I am limited to .Net Framework 4.5)

using System;
using System.Collections.Generic;
using System.Net;
using System.IO;

using System.Runtime.Serialization;

namespace ConsumeRestApiTest
{
    public class TestWebAPI
    {
        public static String request()
        {
            ServicePointManager.Expect100Continue = true;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri("https://api.github.com/repos/restsharp/restsharp/releases"));
            request.Method = "GET";
            request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36";
            request.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
            var content = string.Empty;

            using (var response = (HttpWebResponse)request.GetResponse())
            {
                using (var stream = response.GetResponseStream())
                {
                    using (var sr = new StreamReader(stream))
                    {
                        content = sr.ReadToEnd();
                    }
                }
            }

            return content;
        }
    }
}

Now, directly on the server where environment is located, when I call the code, everything works fine, API is called and response is returned. Just for the sake of completeness, here is the code calling .Net DLL from C#.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestSuite
{
    class Program
    {
        static void Main(string[] args)
        {
            String str = ConsumeRestApiTest.SPLTestWebAPI.request();

            Console.WriteLine(str);
        }
    }

However, when I try to add this DLL to AX and call 

request()
method I am getting a following error (innermost Exception I was able to dig up):

System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.TlsStream.CallProcessAuthentication(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)

Here is code calling the DLL:

static void testRestfulApi(Args _args)
{
    CodeAccessPermission permission;
    System.Collections.IEnumerable ienumerable;
    ConsumeRestApiTest.SPLTestWebAPI test;
    System.Exception ex;
    str rslt;
    ;

    permission = new InteropPermission(InteropKind::CLRInterop);

    permission.assert();

    try
    {
        rslt = ConsumeRestApiTest.SPLTestWebAPI::request();
    } catch(Exception::CLRError)
    {
        ex = ClrInterop::getLastException();
         if (ex != null)
         {
            ex = ex.get_InnerException();
            if (ex != null)
            {
                error(ex.ToString());
            }
        }
    }
    info(rslt);
}

From my web search, most suggestions were about TLS/SSL issues, but since my encryption and networking knowledge is limited I cannot say if this is something AX is doing (perhaps I am missing some setup) or if this is something in AX-OS interaction or anything else.

Anyone have any suggestions?

Viewing all 73760 articles
Browse latest View live