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

Missing remainder on purchase order

$
0
0

This is DAX 2009. The PO line is missing an invoice remainder amount.

For example:
Line qty = 1500
Deliver remainder = 557
Invoiced = 940
Received = 943
Invoice remainder = 2, but should be 3

Is it possible to regenerate the invoice remainder? How can we prevent this from happening?


Workflow customization action button problem

$
0
0

Hi guys,

I am doing workflow customization for sales order , when i click the sales order submit method it get submitted and appears as action button,and if we click that action button  it displays the option as follows " approve,reject,deny,request,cancel" if i click that approve button it gets completed (i.e changed from pending to completed).

My problem is again i repeating the same method when i click the submit button for the next time ,it displays the action button only with pending state.

And again i repeat this same method for  two to three time by cancelling and again submitting it gets approved.

what is the problem in it as it getting approved only after few repeat.

Add Text on Top Bar in D365FO

$
0
0

Hi All,

I have a requirement to add some text on the top of the title bar after search text box. Is there any way to achieve it? Please see the image below.

Thanks in advance.
Tabsheer

Assign the vendor invoice approval to a Project manager on a specific project

$
0
0

When there are costs incurred on a project, we enter vendor invoices on the project.

How can we setup a workflow so that once the WF is submitted it goes to the specific PM based on the project the costs incurred..? 

Read XML through X++ error

$
0
0

Hi Everyone,

Need help on below issue,

I am trying to run below code through X++ job,

static void CHI_ReadXMLTest_RR(Args _args)
{
XmlDocument xmlDoc;
XmlNode commonBOMNode, multilevelBOMNode;
XmlNodeList multilevelBOMList;
int bomInt;
XMLParseError xmlError;
str _xmlMsg = "<CommonBOM><multilevelbom></multilevelbom></CommonBOM>";";


xmlDoc = new XmlDocument();

xmlDoc.loadXML("_xmlMsg");

xmlError = xmlDoc.parseError();
if(xmlError && xmlError.errorCode() != 0)
{
throw error(strFmt("XML Error: %1", xmlError.reason()));
}

multilevelBOMNode = xmlDoc.getNamedElement('multilevelbom');
multilevelBOMList = multilevelBOMNode.childNodes();
for(bomInt = 0; bomInt < multilevelBOMList.length(); bomInt++)
{
info(strFmt("%1", bomInt));
}

}

But when I click on Run, getting below error,

XML Error: Data at the root level is invalid. Line 1, position 1.

This code has worked fine on D365. How can I fix this issue?

Please help.

And if I comment the code related to XML error which looks like below,

{
XmlDocument xmlDoc;
XmlNode commonBOMNode, multilevelBOMNode;
XmlNodeList multilevelBOMList;
int bomInt;
XMLParseError xmlError;
str _xmlMsg = "<CommonBOM><multilevelbom></multilevelbom></CommonBOM>";";


xmlDoc = new XmlDocument();

xmlDoc.loadXML("_xmlMsg");
/*
xmlError = xmlDoc.parseError();
if(xmlError && xmlError.errorCode() != 0)
{
throw error(strFmt("XML Error: %1", xmlError.reason()));
}
*/
multilevelBOMNode = xmlDoc.getNamedElement('multilevelbom');
multilevelBOMList = multilevelBOMNode.childNodes();
for(bomInt = 0; bomInt < multilevelBOMList.length(); bomInt++)
{
info(strFmt("%1", bomInt));
}

}

then after running getting error as,

XmlNode object not initialized.

Stack trace

(C)\Jobs\CHI_ReadXMLTest_RR - line 22

What is solution for this?

BOM calculations on sub items

$
0
0

Can a BOM calculation be generated (and saved as a pending calculation) automatically when a calculation on the top item is generated, or do I allways have to generate calculations from bottom up?

Changing the sequence of started production Jobs from code

$
0
0

Hi all,

I am currently creating a form which should make it possible to insert operations (ProdRoutes / Jobs) into running productions. Logic is a little bit complex, but basically a new record is inserted in ProdRoute table behind the last finished one, OprNum & OprNumNext of all following ProdRoute records (for BOM aswell) are adapted (incremented) and production is rescheduled and reestimated. This is working fine for Productions where started Jobs are also 'completed' (JobStatus).

But now it's getting a little bit tricky. In case a job has the status 'stopped' the new job should be inserted 'in front of it', while acquisitions and status of 'stopped' job should be kept.

Case example: A workman starts a job, but notices that the product is not in the condition intended for this job. He stops the job. A foreman then inserts a new job into the system, that has to be completed beforehand. When the new job is reported complete, the workman can start his job again.

Current functionality/Incrementing OprNum has no effect here, since JobId is the primary index of JmgJobTable and the stopped Job doesn't get an new JobId on reschedule. As a result, the new created Job is inserted behind the stopped one, even though it has a lower OprNum. As far as I can tell, the only way to get the desired functionality would be to reschedule the job aswell and change the RefId of all related records to the new JobId.

Since I'm still new in AX, I wanted to ask if anyone has implemented something similar and if so, how, or if anyone knows a better solution, as this approach does not seem particularly effective to me.

Best regards

Production Floor App

$
0
0

Problems With outgoing timestamp


SalesOrder and SalesLine combine in DIXF AX 2012

$
0
0

Hi,

I would like to ask some questions regarding Import of data combining Sales Order header and Sales Order Line Table. Since it is standard and I want to create a custom Entity, Is it possible to combine 2 tables using standard Sales Order and Sales Lines using the Standard Table? and how it is created? Thank you.

AX2012 CU13 unit price field not able to add value for Sales order line

$
0
0

Hello, 

Im not able to add unit price for a sales order line, however i can add net amont, is there any setting for this? i checked with my technical and findings are that there are no cutomizations.

Regards

Master scheduling error

$
0
0

Hi experts,

I am getting error when run Master scheduling for all items. Error shows an item which is not available in product master.

Allocation failure when releasing Sales Order to warehouse AX2012 R3 CU13

$
0
0

Hi Community,

URGENT request please.

We've just upgraded to AX12 R3 CU13 and suddenly a large proportion of our sales order picks are being generated with blank picking locations in the generated work.  We've been through the setup and can not find anything wrong.  I'm hoping someone could point me towards something maybe we've missed, or if anyone has a similar issue they can not fix.  Screenshots attached for reference (if anymore are needed please ask)

Work Template (warehouse 400 is our despatching warehouse)

Wave Template

Location Directive (query from Location Directive)

  

Location Directive (Query from Location Directive Action)

As you can see the Location Directive is very simple, we've stripped it back to the minimum in order to try and generate the work, but we're still getting blank locations.

I've read through the other posts on here, the Sales Order Header and Lines all have the same Site and Warehouse, which matches the directive and templates.  Example below of the work generated, the sales order and the on hand stock screen

Work Generated for SO658295

Sales order site and warehouse

On hand stock

Thanks In advance for any advice

Mark

SysOperationFramework DataContract Error The type xxxContract is not a valid data contract.

$
0
0

Hi

I created a service with Controller and Datacontract using SysOperationFramework

Running the Service in batch everything works fine,, but running it outside a batch I get the mentioned error: The type xxxContract is not a valid data contract.

Error while posting purchase orders

$
0
0

Respected team, 

  •       I'm getting an error in Dynamics AX 4.0 while posting purchase orders, the error is " inventory transactions cannot be generated for the line " Getting this error everytime we try to post a PO, any particular reason why we get this error, seems like a functional issue but I have no idea wat to do, can someone pls help cus it's really critical cus we haven't been able to the billing and post PO's kindly help thanks

Developing a new Cust Aging Report

$
0
0


Hi Experts,

I want to make a new cust aging Report can i make it as shown in above excel sheet.

Best Regards,

Shabir


How to avoid system from creating Vendor settlement transactions

$
0
0

Hi

The customer is on Ax 2012 R2.

Ax is creating vendor settlement entries which are creating problems in reconciling the GL account. Is there a way to turn this off from making any entries in future. I have attached the screenshot. 

Thanks

Harsha 

Barcode doesn't appear in SSRS Report

$
0
0

Hello Everybody

I have an issue with an SSRS Report

I try to print two barcodes inside the report.

In the preview of the report is is correct and it seems like this: 

but in the PDF file seems like this :


I have checked the fonts in Windows/Fonts and everything seems fine. BC 128 Narrow which I try to print is there. 
I have restart the AOS and SSRS Report server, I clear the caches but it seems nothing is working.....

Does anybody have any idea how this can be solved?

thank you.

How do i convert this CSV custom format to ValidTo date format in X++

$
0
0

Hi expert,

I have csv file which will send date as below format only,i.e. cannot ask user to make any changes in this format .

I also have code to convert date to Ax acceptable date which works when the format of date is as date in CSV but not for below scenario.

Please suggest how do i fix this in way that the below CSV format is converted into Ax date format currently it keeps throwing the error from dateNull() code block


CSV format

AX code for converting to Ax acceptable date format. (Validto Date.)

Please note mytable.myDate EDT is Validto Date.

My Main class
{
               myTable.myDate   = this.ConvertDates(conPeek(_record,9));

                if (myTable.myDate == dateNull())
                {
                    throw error(strFmt('%1 Error Invalid Date',DateTimeUtil::getSystemDateTime()));
                }
}   

protected date convertDates(str dateTime)
{
    try
    {
        if (strLen(datetime) > 10)
        {
            return DateTimeUtil::date(str2DateTime(datetime,321));
        }
        else
        {
            return str2date(datetime,213);
        }
    }

    catch (Exception::Error)
    {
        throw error (strfmt("@SYS63093",funcName()));
    }
}

AX 2012 R3 CU13 performance issues

$
0
0

Hello all,

From time to time, AX 2012 R3 CU13 slows down considerably. Especially during month end when journals are being posted. Journal lines can vary from 10 - 1000.

Despite the line difference, the symptom is the same. Where posting for e.g usually takes 5 - 10 minutes, during month end it can take 30 + minutes. 

Has anyone experienced similar performance issues and if so, can you all please share any recommendations. 

Really appreciate your feedback. 

Help with Services and AIF

$
0
0

Hello everybody, I'm developing an application that (among other features) needs to be able to create/insert data in Microsoft Dynamics AX 2012 through the use of the Services and Application Integration Framework (AIF).

I'm trying to develop a service to create a custom License Plate for a product on AX on the Production module. Much like the WMS web Production module does.
I am also trying to figure out how to add a  License Plate for a product in the shipment process. Again, this would emulate the process in the WMS web Outbound.

I haven't succeeded in making these webservices work, so I'd greatly appreciate any guidance that you can provide. Thanks in advance!

Viewing all 175888 articles
Browse latest View live