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

Close a Returnorder with some canceled lines

$
0
0

Hello

I have, for example, a Return Order in Ax2012 R3, where we have received two out of three articles. The third article has been canceled ( the "Linestatus" for that item is "Canceled" but the  Returnstatus " is ""Expected" " ) and the order has been Invoiced.

This means that the "Returnstatus " on the order is still "Open" and we want the status to be "Closed".

As we have our AX connected to another system via integration, we don´t want to delete the canceled row, to keep it for history.

How can we via a job connected to  the table "Salesline" in the AOT ensure that the entire canceled line can remain in the order, but that the Returnstatus and the order itself , gets closed?

I can via a job in AOT get the line from "Expected" to "Canceled", but the order still remains Open.

regards Andreas


Content-Type in the WebRequest cannot be changed.

$
0
0

Hello dear community,

I am currently in the process of programming a WebRequest from AX2012.
The requirement is that I pass the Content-Type as "application/json;charset=UTF-8.
Unfortunately it seems that AX ignores the .set_ContentType.

We wrote a small test service, which as an answer shows me what the original request was.

Here are some code examples.

private void requestService()
{
    System.String                   response = "";
    System.Net.HttpWebRequest       httpRequest  = null;
    System.Net.HttpWebResponse      httpResponse = null;
    System.Net.WebHeaderCollection  httpHeader = null;
    CLRObject                       clro         = null;
    System.IO.Stream                stream       = null;
    System.IO.StreamReader          streamReader = null;
    System.Byte[]                   bytes        = null;
    System.Byte[]                   byteArray    = null;
    System.Text.Encoding            encoding     = null;
    boolean                         ret          = true;
    str                             byteStr;
    byteStr                         = strfmt("%1:%2", rampParameter.Username, rampParameter.Password);

    try
    {
        new InteropPermission(InteropKind::ClrInterop).assert();
        httpHeader  = new System.Net.WebHeaderCollection();
        clro        = System.Net.WebRequest::Create(this.getRequestUrl());
        httpRequest = clro;     
        
        httpRequest.set_Method("POST");
        
        httpRequest.set_ContentType(@"application/json;charset=UTF-8");
                     
        
        encoding    = System.Text.Encoding::get_UTF8();
        byteArray   = encoding.GetBytes(byteStr);
        byteStr     = System.Convert::ToBase64String(byteArray);
        httpHeader.Add("Authorization", 'Basic ' + byteStr);
        
        httpRequest.set_Headers(httpHeader);
        bytes       = encoding.GetBytes(this.buildJsonString());
        httpRequest.set_ContentLength(bytes.get_Length());
        stream      = httpRequest.GetRequestStream();
        stream.Write(bytes,0,bytes.get_Length());
        stream.Close();


        httpResponse = httpRequest.GetResponse();
        stream = httpResponse.GetResponseStream();
        streamReader = new System.IO.StreamReader(stream);
        response = streamReader.ReadToEnd();
        CodeAccessPermission::revertAssert();
    }
    catch(Exception::CLRError)
    {
        ret = false;
        throw error(AifUtil::getClrErrorMessage());
    }
}

In the example, in line 26, I set the ContentType via the request method.
But that doesn't seem to work.
As a result I get the response:

{"Headers":{"Authorization":["Basic XXXX"],"Connection":["Keep-Alive"],"Content-Length":["65"],"Expect":["100-continue "],"Host":["iis2016-01:4747"]},"Query":{"value":"","hasValue":false},"RouteValues":{"action":"Post", "controller":"Values"},"Body":"{\"gate\":\"10\",\"direction\":\"UNLOAD\",\"start\":\"2022-09 -08T12:14:14Z\"}"}

We tested the service that we programmed, if we send a request via Postman, we get the corresponding content type back.

We then tried, instead of

httpRequest.set_ContentType(@"application/json;charset=UTF-8");

to use the following code and put the type directly in the header:

httpHeader.Add("content-type",@"application/json;charset=UTF-8");

But then we get the following Infolog error message:

"The 'content-type' header must be modified with the appropriate property or method.

Parameter name: name"

Do any of you see the error in the code? We're currently a bit clueless.
Or is that perhaps a mistake by AX?

How to get parameter from display menu Item to parameter contract sysOperation FrameWork D365 ax x++

$
0
0

i fill in this contract parameter 

 

with diplay menu item 

and I need to get value of this form and set it in Catégorie client Parameter ! 
can you have a idea for pass parameter from this form to contract parameter 

Master planning stock transfer requirement

$
0
0

Hi  All,

we have the stock transfer requirement using master planning in our project  , request you to provide some pointers on how to achieve the requirement 

Requirement details:

We have 2 warehouses WH1 and WH2 , Finished good  ( FG - BOM) item is produced in WH2 , usually bom components are manually transferred from WH2 to WH2 before a FG item is produced , currently manual process is causing issues ,sometimes the component items are not available before producing the item , hence the system is flashing a error message component item inventory is not available .

we want to eliminate the manual process and introduce an automation using manual process , where in before firming the planned production order system has to check the available component item inventory and if it is not available system should generate the planned transfer order/journal and transfer the stock from WH1 to WH2 

please let me how to define the item coverage settings inorder to achieve the above requirement 

Thanks in advance,

Naresh 

Purchase Order line is not Visible but On hand inventory shows Ordered quantity AX 2012

$
0
0

Hi Community,

I am unable to post the invoice as there is variation in Product Receipt quantity and Purchase order quantity.  My Purchase Order line does not show up the quantity line but on hand inventory status  shows the quantity as Ordered with the same purchased order number. what might be the reason?

Negative cost amount for receipts is not allowed. Ending a production

$
0
0

Hi 

We did a production and in one of my picking list the cost war wrong for one part, so we did a -1 to fix the part and we redid the consumption of one.

did the report as finished with no error but when i try to end i get Negative cost amount for receipts is not allowed.

i looked at the values in the debugger and i see that the costamountposted of my report as finished voucherphysical is negative.

How can i do to end my production.

Thanks for your help

I want to assign rec id's of one table to rec id field in temp table but gettin '0'?

$
0
0

Only recId field is getting '0' while other fields( dataAreaId and tableId) are fine. when I hover on inventTable it shows "no data selected".

Posting a Vendor Invoice journal

$
0
0

Hello Everyone,

While Posting the Direct Vendor Invoice, I am getting the below Error.  

Can anyone please guide me on what to do next to post the Invoice please?

Best Regards,

Dharma Ranjan Sahu


Dynamics AX with Azure Virtual Desktop Remote App

$
0
0

Hi, 

Has anyone used Dynamics AX with Azure Virtual Desktop (AVD) Remote App, is this supported or would you recommend using a full desktop?

Thanks

How do I get the customer number that selected by user through customer name

$
0
0

Hi, all

When user select one row in the list, Customer name will be display on it ,and I need use the Customer Number as a condition to select data from DB, Now the problem is I can not  get the number in the contract or data provider. anyone can help me ?

Best regards.

PO confirmations download

$
0
0

Hi All,

I am trying to download PO confirmations. That PO is in finalized status. I am getting below mention error. Kindly helps me.

The transactions on voucher do not balance as per 8/23/2022. (accounting currency: -0.00 - reporting currency: -0.00)

Sales leadtime for intercompany orders

$
0
0

in my installation I have 2 companies (A and B). 

Company A is a pure sales company, that purchases from B and sells. It owns stock. The vast majority of the sales orders become intercompany orders to company B

Company B is mostly a production company that sells to company A . Though it sells also to local customers.

Each company has the sales leadtime at 10 meaning that a order entered today automatically proposes as requested shipment date today+10 days.

What happens is that the intercompany orders in company B at the header level maintain the requested shipment date and the requested receive date as the original sales order of company A, though if you look at the order lines details the requested shipment date has also the sales leadtime days of company B.

If I put company A sales leadtime to 0, then the requested shipment date is the same day of the order creation date, that is not right

If I put company B sales leadtime to 0, then the intercompany orders are ok, but the sales orders created directly in company B have the requested shipment date equal to the order creation date.

Questions.

is it a correct behavior that the intercompany order header requested date is different from the order lines?

Is there a standard way to tell AX not to apply the sales leadtime to intercompany orders?

Thanks in advance for your support

Vendor code 00125 is not authorized for 108884

Batch job skips directly to next sheduled time, without errors in log and without communicating with SQL DB

$
0
0

Hello
Would be very gratefull if someone could give me any advice.
As mentioned in headline, batch job starts on time but skips directly to next scheduled time, 7 days forward.
Without communicating with SQL DB, normally this job takes approx 5min, now it it takes 1sec. Cannot find anything in logs.

Picture 1 shows job is about to start at 13.22 PM
Picture 2 shows job done, next time it will run is 7 days forward as scheduled, but  almost nothing in log message.
Normally log message dispalys additional info, now only that job has bin executed and status "waiting".
Job is not actually done, it never shows any communication with SQL DB (lover right corner)





Object 'CLRObject' could not be created calling method from Ax 2009 to C#

$
0
0

Hello:

I am new calling C# methods from Ax 2009.

I created a new method in C#. But, when I put the code 

send = new AXV5ElectronicInvoice.Send();

It send the message Object CLRObject could not be created

The C# code is simple:

public class Send
	{
		public string returnValue;
		public void SendDocument(String _User, String _Password, DocumentoElectronico documentoElectronico)
        {
			String returnValue;
			//System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;try
			{
				System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
				AXV5ElectronicInvoice.TfhkaPaWebService.Service service = new Service();
				EnviarResponse enviarResponse = new EnviarResponse();
				enviarResponse = service.Enviar(_User, _Password, documentoElectronico);
				returnValue = " ";
				//return returnValue;
			}
			catch(Exception ex)
            {
				returnValue = "Error";
				//return returnValue;            }
 
 
			
        }
What could be generate this error?.
How I catch the clrInterop message? I put try catch but the error goes directly to Info class.

Regards!

General Ledger Foreign Currency Revaluation Result

$
0
0

I'm having problems with General Ledger > Periodic > Foreign currency revaluation. It shows over 2M $ result since July where in we never had such unrealized gain/loss.

We are revaluing PHP vs USD. Screenshots of exchange rates will be provided below.

What else could be the problem? Please help we've been figuring this out for weeks. If I missed out any screenshot, please let me know. Thank you!

  • Parameter for the main acccount
  • Ledger Set-up
  • Default exchange rate (BSP)
  • Period Ledger from the main account
  • FX Vouchers from foreign currency revaluation
  • GLB Vouchers from opening transactions posted on 01/01/22, actual run date was 07/03/22. Would this affect the foreign currency revaluation?

Is it possible to design dynamics personalized footer in electronic reports - Dynamics 365 finance and operations

$
0
0

I would like to design dynamic personalized footer in electronic reports - Dynamics 365 finance and operations. is it possible?

I found following doc, which shows we can print dynamics text either center or left or right, but I want to align some text from left and right as well with personalized lines in it just like above.

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/analytics/er-embed-images-header-footer-excel-reports?context=%2Fdynamics365%2Fcontext%2Fcommerce 

https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/408612/electronic-reporting-footer'

Is it it possible?

Alternative colors in grid lines in electronic report - Dynamics 365 finance and operations

Managing Microsoft Dynamics Implementations (Sure Step) Methodology

$
0
0

Good day,

I wrote this exam in 2013.  However when I see my transcript, I do not see any record of it.  I do understand that the exam was since discontinued, but I still would like to see the record of the effort.

Is this a possibility?

Kind regards

Viewing all 175888 articles
Browse latest View live


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