Quantcast
Viewing all 72043 articles
Browse latest View live

SSRS Reports showing blank

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

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.

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.

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

PO Total Discount% Issue - D365

Dear All,

At PO Level, I want to Apply the Total Discount%.

After I Configure all the below setups, 

1- enable the total discount checkmark on the released product/purchase fast tab should be marked.

2- activated on Procurement & Sourcing --> Setup -->Price/Discount --> Activate Price/Discount

3- deactivated the Calculate total discount on posting at Procurement and Sourcing Parameters Level.

When I start the PO Workflow, the Total Discount% is Overwriting with "0". 

Is there any other setup I need to configure it in the System.

Customization in Customer Aging Report D365

Hi All,

I want to make changes to the out of the box Customer Aging Report in D365.
Currently the out of the box functionality only shows aging for parents and regular customers (with no parent child relationship). It does not show aging for children because technically the parent will receive payment.

However, I want to do customization so as to be able to send an aging report to the children with their aging details as well.

Any ideas about adding changes in code?

TIA

problems with SysQuery

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));
       

Property ChangeCase for a StringEdit field is not taking effect.

Requirement: On runtime, only selected users are allowed to encode item IDs with small letters, by default all are in capital. Thus, I added a checkbox that users can tick to enable typing in small letters to the item ID string edit field, else the checkbox will be hidden/disabled - thus unauthorized users will not be able to type in small letters.

Here is my code on the checked() method of the checkbox and by  breakpoint results (see in red font), I know I was able to change the property; but still no luck. What do you think am I missing?

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

PS. I just recently added the validate() function to check it still works, but it doesn't.

Any help would be appreciated! Thanks!


Retail Store Database Error

Good Afternoon,

A cashier tendered a trillion dollar transaction by accident at one of our retail stores and now the async client will not upload the .rpf file. I went through almost every tabled and tried to correct the large amount but still getting the error below. Has anyone ever ran into this and how did you resolve?

Process upload jobs encountered Exception. Error Details: System.OverflowException: Conversion overflows.
at System.Data.SqlClient.SqlBuffer.get_Decimal()
at System.Data.SqlClient.SqlBuffer.get_Value()
at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlReadRequestRunner.Run(SqlConnection connection, SqlTransaction transaction)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlSourceRequestHandler.ProcessReadRequests(SqlConnection connection, SqlTransaction transaction)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlSourceRequestHandler.ProcessSourceRequestHeader(ISCSourceRequestHeader sourceRequestHeader)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.PackRequestResultsToFile(SessionManager sessionMgr, ISCSourceRequestHeader header, String fileName)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.ProcessUploadJob(Job activeJob)System.OverflowException: Conversion overflows.
at System.Data.SqlClient.SqlBuffer.get_Decimal()
at System.Data.SqlClient.SqlBuffer.get_Value()
at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlReadRequestRunner.Run(SqlConnection connection, SqlTransaction transaction)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlSourceRequestHandler.ProcessReadRequests(SqlConnection connection, SqlTransaction transaction)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlSourceRequestHandler.ProcessSourceRequestHeader(ISCSourceRequestHeader sourceRequestHeader)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.PackRequestResultsToFile(SessionManager sessionMgr, ISCSourceRequestHeader header, String fileName)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.ProcessUploadJob(Job activeJob)

Thank you, 

Extract Customer invoices on PDF Format

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.

Image may be NSFW.
Clik here to view.

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++

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

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

Hi,

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

Image may be NSFW.
Clik here to view.

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

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

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

Hi All

Getting a time out error for Retail job 1040.

Image may be NSFW.
Clik here to view.

can someone please help in resolving this issue.

Kind Regards,
Vinod Rao

AX2009 developer license from Partner portal

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

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

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

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

Viewing all 72043 articles
Browse latest View live


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