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

insufficient inventory transactions with status purchased in D365FO

$
0
0

Hello:

I´m trying to post a Pending Vendor Invoice but I get the following error: Insufficient inventory transactions with status purchased. I have checked the receipt quantity and prices and all look ok. I have read in other forums that this error in other versions was solved by deleting in the Inventtrans table tjhe line was redundant. Is there another way to solve it since in D365FO we do not have access to AOT?


What files have the X++ code (after X++ go to CIL)

$
0
0

I am looking for specific folder where I can see the DLL files who holds the X++ and EDT if possible.

Does someone knows the answer?

Changing status of a PO

$
0
0

Hello,

We are trying to change the status of a PO from open to closed. Occasionally, we will have a small remaining balance on the PO and we would like to close it so that no further amounts can be applied to it by mistake.

Let me know if you need further information.

Thank you,

Kelly

Unable to delete journal lines

$
0
0

Hello - 

I have uploaded an invoice journal into AX 2012 by using Atlas 6.0.  The entry appears in my open journals queue, and will post as is, but if I try to modify the entry (in this case, I tried to delete 2 corresponding and balanced lines - one Debit Ledger line and one Credit Vendor line), i receive an error saying 'number sequence 0 does not exist', and when I re-examine the journal entry, I can see that the the Debit Ledger line remains while the Credit Vendor line has been successfully deleted, resulting in an unbalanced total Journal Entry.  Any ideas how to fix this issue?  Thank you all for your assistance.

Dan

SSRS Reports showing blank

$
0
0

Hi everyone,

We have an issue in our AX 2012 R3 CU9 PROD environment where out of the box reports (no modifications) will sporadically start to show as null or miss values. There are no filters or anything that would prevent the reports from running.

1. Expense Report (Blank)

2. Per Diem Per Employee (Blank)

3. Base Data > Projects (Blank)

4. General Journal entry (Missing 'Approved by')

They will work fine for days or weeks, then randomly will just start to miss data. The ONLY thing we have been able to do to correct is to bring down all AOS' and bring them back up, this will clear the issue. We are trying to find the source of the problem or find a way to resolve this mid-day without bringing down all of the services. We have tried:

1. Running cache clear on all AOS'

2. Restarting the SSRS service/server

3. Running a clear cache job provided by MS

4. Re-deploying the report

We have tried engaging Microsoft and in the traces it looks like the query is becoming corrupted somehow. They are having trouble narrowing down the problem because we only see this in our PROD instance, not in test. It also happens so sporadically and we can't have these reports down for long so we can only troubleshoot in PROD.

PO re-assign

$
0
0

Hello, 

Can anyone tell me how to re-assign a PO approval in AX 2012?

Thanks, 

Jonathan 

i need PO created date time on purchpurchaseorderreport instead of purchase order confirmation date on the report.

$
0
0

Hi,

i need a field createdatetime from purchtable on the PO confirmation report which is purchpurchaseorderreport.

Regards,

Imran Ali Memon

we are unable to reverse the production orders in which scrap is generated.

$
0
0

HI,

we have configured our BOM in way that it also generate scrap and when we try to reverse those production orders we always get error. can anyone please help how to fix this issue?

Regards,

Imran Ali Memon


problems with SysQuery

$
0
0

Hi I created a class in which I use a SysQuery. The init looks like this:

void initQuery()
{
    Query                   query = new Query();
    QueryBuildDataSource    qbdsOrders, qbdsOrderLines, qbdsInventTable, qbdsCustomers;
    ;

    //Aufträge
    qbdsOrders      = query.addDataSource(tablenum(SalesTable));
    qbdsOrderLines  = qbdsOrders.addDataSource(tablenum(SalesLine));
    qbdsOrderLines.joinMode(JoinMode::InnerJoin);
    qbdsOrderLines.relations(true);
    qbdsInventTable = qbdsOrders.addDataSource(tablenum(InventTable));
    qbdsInventTable.relations(false);
    qbdsInventTable.addLink(fieldnum(InventTable, ItemId), fieldnum(SalesLine, ItemId));
 
    SysQuery::findOrCreateRange(qbdsOrders, fieldnum(SalesTable, CreatedDate));
    SysQuery::findOrCreateRange(qbdsOrders, fieldnum(SalesTable, SalesStatus));
    SysQuery::findOrCreateRange(qbdsOrders, fieldnum(SalesTable, CustAccount));
    SysQuery::findOrCreateRange(qbdsOrders, fieldnum(SalesTable, SalesOriginId));

    SysQuery::findOrCreateRange(qbdsOrderLines, fieldnum(SalesLine, SalesStatus));

    //Kunden
    qbdsCustomers       = query.addDataSource(tablenum(CustTable));
    SysQuery::findOrCreateRange(qbdsCustomers, fieldnum(CustTable, AccountNum));
    SysQuery::findOrCreateRange(qbdsCustomers, fieldnum(CustTable, CreatedDate));
    SysQuery::findOrCreateRange(qbdsCustomers, fieldnum(CustTable, LineDisc));
    SysQuery::findOrCreateRange(qbdsCustomers, fieldnum(CustTable, Blocked));
    SysQuery::findOrCreateRange(qbdsCustomers, fieldnum(CustTable, CountryRegionId));
    SysQuery::findOrCreateRange(qbdsCustomers, fieldnum(CustTable, EndDisc));
    SysQuery::findOrCreateRange(qbdsCustomers, fieldnum(CustTable, MOCTotalVolume));

    queryrun = new SysQueryRun(query);
}

now I call 2 methods in the run-method of my class to work with the data.

method one wants to process the data from the custtable part of the query and the second method I use for the SalesTable,SalesLine and InventTable data.

CustTable returns with no values (even if they are in the table in my ax.

For SalesTable there is something found but for salesline I get a runtime error.

Here my code to get SaleTable, SalesLine and INventtable:

 while(this.queryrun().next())
    {
        salesTable  = this.queryrun().get(tableNum(SalesTable));
        salesLine   = this.queryrun().get(tableNum(SalesLine));
        inventTable = this.queryrun().get(tableNum(InventTable));
       

Extract Customer invoices on PDF Format

$
0
0

Hi All, 

I need a job to extract all Customer invoices, get them on PDF format, 

When i click Preview/Print, it's crash after 150 PDFs

Is there any way to extract all Customer invoices on PDF format, and get them saved on System Folder.

I've tried the following code, but it's not working.

I need each Customer invoice in separated folder , AND  the name of the invoice  = name of PDF File

static void Invoices2PDF(Args _args)
{
    CustInvoiceJour custInvoiceJour;
    SalesInvoiceJournalPrint salesInvoiceJournalPrint;
    Set set = new Set(Types::Record);
    SRSPrintDestinationSettings srsPrintDestinationSettings;
    while select custInvoiceJour
        where custInvoiceJour.dataAreaId == "303"
    {
        // Add record
         set.add(CustInvoiceJour::findRecId(custInvoiceJour.recId));

        // Set printer settings
        srsPrintDestinationSettings = new SRSPrintDestinationSettings();
        srsPrintDestinationSettings.fileFormat(SRSReportFileFormat::PDF);
        srsPrintDestinationSettings.fileName(strFmt(@'C:\temp\301\%1',custInvoiceJour.InvoiceId,".pdf"));
        //filename =strfmt('C:\\Temp\\Invoices\\%1%2',_custInvoiceJour.InvoiceId,".pdf");
        srsPrintDestinationSettings.printMediumType(SRSPrintMediumType::File);
        srsPrintDestinationSettings.numberOfCopies(1);
        srsPrintDestinationSettings.overwriteFile(true);
        // Initalize
        salesInvoiceJournalPrint = SalesInvoiceJournalPrint::construct();
        salesInvoiceJournalPrint.parmPrintFormletter(NoYes::Yes);
        salesInvoiceJournalPrint.parmUsePrintManagement(false);
        salesInvoiceJournalPrint.parmPrinterSettingsFormLetter(srsPrintDestinationSettings.pack());
        // Print
        salesInvoiceJournalPrint.printJournal(set);
        info(strFmt("Well saved on folder"));
    }
}

D365F&O : create new mobile workspace by x++

$
0
0

Hi,

I'm looking to documentation that show us how to develop new mobile workSpace by X++ " Purchase requisition workspace". 

I was looked in AOT but i can't find how a default mobile workspace was developped by Microsoft.

Are you already creating new mobile workspace by x++ ?

Regards

POS cannot create a customer's shipping address

$
0
0

Good morning all.

I am facing a problem with POS on Dynamics AX R3 CU11. When creating a SO on POS, everything is fine until I want to create a new shipping address. The system lets me to fill everything in but says that Customer couldn't be saved centrally after hitting Save on the new shipping address.

I was digging into it and found out that it fails on finding the newly created address in the DirPartyPostalAddressView. Whatever is passed as parameters, this method always returns null as it cannot find the record. 

It's code is

public static DirPartyPostalAddressView find(DirPartyRecId _party, LogisticsLocationRecId _location, utcdatetime _validFrom = DateTimeUtil::utcNow(), utcdatetime _validTo = _validFrom)
{
DirPartyPostalAddressView postalAddressView;

select firstonly postalAddressView
where postalAddressView.Party == _party &&
postalAddressView.Location == _location &&
postalAddressView.ValidFrom <= _validFrom &&
postalAddressView.ValidTo >= _validTo;

return postalAddressView;
}

At first, I suspected it's because some mismatch of UTC datetime and it is not returning the record because of it. But it did not work even when I removed the ValidFrom/ValidTo conditions. It just looks like the view is not getting materialised or the last created record is not getting there yet. (I even tried to commit any transaction before calling this method - no luck, the address is physically created but it is not getting into the view.)

And the strange thing - if I call the same method of RTS directly from a job in AX, it perfectly works (even with running it under the user of RTS web service). So it is happening only when it is physically called from the web service.

Call stack is basically:

DirPartyPostalAddressView.find (line 5)
DirPartyLocationEntity.createAddressForParty (line 36)
DirParty.createOrUpdatePostalAddress (line 28)
RetailTransactionServiceCustomer.createAddress (line 144)
RetailTransactionService.createAddress (line 80)

Thanks a lot for any help/ideas. 

AXBuild.exe is stopped working

$
0
0

Hi,

I am facing an issue while doing the compile using axbuild.exe.

Any ideas to what happened ? and what to do further.

Thanks,

Riswan.

Registering AX Server 2012r3 with domain controller 2012 affect the reports of AX

$
0
0

I'm running AX 2012R3 in my domain 2012 sharepoint server is installed on application server, everything was working fine but after some time i got error trust relation ship with domain broken on AX Application server, i registered my application server with domain again and i got error on reports. it affect the services of report server or any URL after registering with domain 2012, if it so please guide me for this. 

InitFrom... method in Extensions

$
0
0

Hi

I created an extension to the purchline table (new field) and I want to set a value during the initFromProject method. Therefore I created a class where I added the post-eventhandler for the initFromProjTable Method

How can I now access the projTable parameter passed to the base method?


Retail Job 1040 getting timed out

$
0
0

Hi All

Getting a time out error for Retail job 1040.

can someone please help in resolving this issue.

Kind Regards,
Vinod Rao

AX2009 developer license from Partner portal

$
0
0

Hi All,

Please share the location path/URL to generate developer license for AX2009 from partner program. I know its support is discontinued but I need to work for a customer who has AX2009 and need to do some development related to it.

Thanks,

Where do we see the Sales Order Hold Status in AX 2009

$
0
0

Hi All,

As per customization ,I need to put the order as Hold status in AX 2009 which is coming from Front end Orders . But i didn't see any Hold status in Sales order level in AX 2009.

Can any one explain regarding in this ?.

Thanks & Regards,

Pavan G.

State not found and County not found AIF exceptions when creating Sales Order via C# library

$
0
0

I have an inbound port defined on an AX 2012 R3 CU13+ instance 2 for Sales Order functionality.  I have X++ code that calls a C# library which interacts with the inbound port on instance 2 to create a sales order.  This instance 1 is also AX 2012 R3 CU13+ and I can create the sales order fine if I leave out the state and county assignments.  I realize that the Polish address that I am attempting to set (just in this case) does not have an address format that supports setting the county and state however, is there a way to find out this ahead of time?

Here is the code in my C# library that sets up the address record.

var salesTableAddressRec = new AxdEntity_TableDlvAddr()
{
City = "Kalinowo",
County = "Carlow",
State = "Ireland",
Street = "Mazurowo 30/1",
ZipCode = "19-314",
CountryRegionId = "POL"
};

I should also mention that at first I was creating the sales order at one point inside my x++ code and just calling the C# library code for the service reference only and the address did not complain to me about this.  We decided to use C# for the actual code so I need to see if there is a way to determine before setting the values (they will be passed in to the C# library via parameters instead of hard-coded) what address components are required and which ones are not, for that particular entity.

Any help would be appreciated as I don't want to go back and re-write the code in X++, it is much more difficult doing it there for some things.

Backdating leave days

$
0
0

How do I backdate leave days? Where do I go to save the file in csv format?

Viewing all 73760 articles
Browse latest View live