Hello,
If someone can tell me which dbo table to use when connecting Excel with AX through SQL to extract Item Purchase price per unit?
Thanks
Branislav
Hello,
If someone can tell me which dbo table to use when connecting Excel with AX through SQL to extract Item Purchase price per unit?
Thanks
Branislav
Dears,
I'm new to CRM features and I'm working on data interchange with external systems to create Leads, Prospect, Opportunities and Contacts. Please I need example jobs/code for Creating Leads, Prospect, Opportunities and Contacts.
Thank you.
Hello!
I hope you can enlighten me on this.
I am trying to call all 'case categories' and 'category types'. Basically what you see here:
I'm trying to get something similar to the 'Case category' field to appear. But when trying it I get the following error:
Unable to cast object of type 'Dynamics.AX.Application.FormStringControl' to type 'Dynamics.AX.Application.FormReferenceControl'.
I understand that the error occurs when trying to convert the 'String' to the data type that belongs to 'Case category'. But I have created my field with the same properties as the original, and in the 'Category types' I have no problem calling it. I want to know if anyone knows how I could solve this.
Hello all,
Im trying to replicate the form on the left from the below screenshot.
But when I add the same query on the other form, it shows multiple tables in the data source compared to the original form which only shows 1 table after the query.
They both have the same properties set. What can be the cause of this?
Hi,
AX 2012 R3
getting following error when posting vendor invoice
Bad repsonse. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuditInvoiceReversalFromDatabaseGenerator': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute batch.
Steps
Open PO
Go to the ‘invoice’ tab and ‘Generate Invoice’…
On the invoice form, enter an ‘invoice #’, ‘description’ and ‘date’, then try to “Post”...
I debug the code and reach the point where it is calling service. Ii am not sure how to debug further .. or fix this issue. please help.
like
\Classes\SysOperationServiceController\runOperationWithRunAs
private void runOperationWithRunAs()
{
container returnValue;
// running on the server interpreter or in BC.NET. Try to marshall to an
// IL session
returnValue = SysOperationRPCFrameworkService::runServiceOperation(classIdGet(this), this.pack());
// Unpack return value and call after operation. After operation is called in the caller's session
this.unPackServiceReturnValue(returnValue);
}
>>>
\Classes\SysOperationRPCFrameworkService\runServiceOperation
public static container runServiceOperation(ClassId controllerClassId, container packedController)
{
// Use the runas API to transition to a CLR session
new XppILExecutePermission().assert();
return SysDictClass::invokeStaticMethodIL(classStr(SysOperationServiceController), staticMethodStr(SysOperationServiceController, runServiceOperation),[controllerClassId, packedController]);
}
I'm trying a general journal (DC) but it gives me this error.
I am trying to cancel this product reception, but the cancel button is disabled. then I try to modify it and leave it at zero so that it cancels itself.
but I get this error
Last month per user request I added a new field to the Customer Details table CustTable to record the final country of destination, for shipments delivered to a port forwarder.
The address on the Customer Master stores the address of the Freight Forwarder, say in FL, in the US.
The new field is of extended data type AddressCountryRegionId, which gives it the nice lookup to select a valid country.
However, once the international country was selected, unbeknownst to us, it eliminated the State and County codes of the Customer itself.
We didn't discover this issue until hundreds of addresses had been affected, and now have to have their State and County codes replaced.
It appears this occurred based on the AddressMap, but I am unsure. It definitely is caused (on demonstration) by this new field.
Question:
Is there a way to selectively turn off that functionality for a given field? It seems like a final country of destination would be a common business need.
If not, is there a way to force a string field to have the lookup of the CountryRegion? (I've tried by inserting a lookup method to do just that, but no combo box/dropdown).
Hello,
I'm working with Dynamics 365 Finance and Operations,
The requirement is that when someone posts a pending vendor invoice from a purchase order by clicking "Post" on the vendor invoice form, an Email has to be sent with the preview report of the invoice journal.
I already have the class created and working, the only thing left is make it run after the vendor invoice is posted.
I tried to make a class extension of the PurchFormLetter.run() method, the method is called when I post the PO, I need to get either the PurchTable purchId or the VendInvoiceJour record to sent them to my class, but I can't find the way to get them from PurchFormLetter, this is my code:
[ExtensionOf(classStr(PurchFormLetter))] final class ATXPurchFormLetter_Extension { public void run() { PurchTable purchTableAlt = this.purchTable(); VendInvoiceJour vendInvoiceJour; SendInvoiceReportEmail emailEngine = new SendInvoiceReportEmail(); info("before run"); next run(); info("after run"); while select vendInvoiceJour where vendInvoiceJour.PurchId == purchTableAlt.PurchId { emailEngine.sendEmail(vendInvoiceJour); } } }
I tried getting the purchTable() method to get PurchTable, but it's not returning any data.
Is there a way I can get those records from the class? Do I have to extend another class or method?
Hi,
AX is not logging change or enter data as it used to. In the attached picture you can see that the created by, and modified by information is blank for customer address record info. This is used to see who entered the data or changed it and when. It is very useful for root causing the problem and training the worker.
Is this is an Hotfix issue...? what is the solution of this.
Can anyone help on this...?
Hi All,
Kindly let me know how to replace or remove any invalid characters from text in AX 2012 R3.
When I am copied and trying to paste the invalid characters in code it display like empty So, not able to apply in function like strRep or strRem to remove or replace that invalid characters from text.
Kindly suggest me how we can achieve this?l
Please give me more shed on this.
thanks!
Hi. The scenario we have is that a sales line has been created and exploded and a production order for the same qty as the sales line has been created. The production order has been moved through its stages and it now at "Report as Finished". The inventory trans data shows that the status of "received" for this production order. When we try to update the warehouse picking registration we get a message to say there is not enough stock and we discover that the "reserved" field on the picking list reservation screen is unticked. I believe this indicates that there was no warehouse reservation associated with this sales line. We would expect that the output order qty for the sales line's item is reserved to the production order initially (Reserved Ordered) and consequently when the Prod order is received then the reservation would be Reserved Physical. We complete thousands of these made to order transaction per month with out issues. Given the production order qty has been received but is no longer available for reservation, I assume that this qty has been picked up by another sales line. How can I find what order line has picked up this prod order qty? I'm not keen to troll laboriously through thousands of inventory transactions to find this needle in a haystack?
Dears
I'm facing below issue , I know it has been discussed here many times but nothing works for me.
I'm facing below issue , I know it has been discussed here many times but nothing works for me.
Any help Please.
What could be the reason for this below error!
CLR objects cannot be marshaled to Microsoft Dynamics any type.
I'm developing an srss report on a GeneralJournalAccountEntry (Cross comapny) table and when I use DimensionStorage to get names of ledger dimensions segments
Using this code (using Job here for simplification only) it works correctly at the same company, but the rest of the company returns with an empty string.
How can I retrive all names of ledger dimensions segments for all companies?
static void TestJob(Args _args) { //LedgerDimension ==> 5637150044 ==> from GeneralJournalAccountEntry table DimensionStorage dimensionStorage; Name Segmentname; DimensionStorageSegment seg; dimensionStorage= DimensionStorage::findById(5637150044); seg = dimensionStorage.getSegment(2); Segmentname = seg.getName(); } static void Job1(Args _args) { //LedgerDimension ==> 5637150044 ==> from GeneralJournalAccountEntry table DimensionStorage dimensionStorage; Name Segmentname; RecId id; dimensionStorage= DimensionStorage::findById(5637150044); id = dimensionStorage.getSegment(2).parmDimensionAttributeValueId(); Segmentname = DimensionAttributeValue::find(id).getName(); }
Hey
We currently use Dynamics AX 2012 R3
In the last few weeks we are seeing the following:
when a user is processing customer payments and settlements transactions are fine in the AR subledger, however, in the General Ledger we see random numbers posting in their trillions. As an example
Journal | Type | Debit | Credit |
BRV10788741 | Customer settlement | 2,936,004,289.71 | 0.00 |
BRV10788741 | Customer settlement | 12,099,656,217.86 | 0.00 |
BRV10788741 | Customer settlement | 0.00 | 1,277.82 |
BRV10788741 | Customer settlement | 0.00 | 15,035,659,229.75 |
If you total the two debits and deduct the high value credit the value is 1,277.82 debit
Its very odd and i haven't come across this before. Any thoughts?
Hi all,
We have a class which processes sales orders with EDI. We are tasked with applying a check that if the ordered quantity is less than three, the journal should be converted into sales order and sales order will be cancelled.
I want to count the total quantity of all the lines of a sales order. Then, compare this quantity with a field in a division/override form.
If the sales order total quantity is exceeding this field's quantity, it should proceed to create the order, else it should convert the journal into sales order which will subsequently be cancelled. How can I do this entire operation ?
My requirement is to hide these two buttons(#SystemDefinedOfficeButton and #SystemDefinedAttachButton) on the base of a toggle button.
//Currently I'm writing my code in the init method of form. It is working perfect and successfully hiding attachment button.
[ExtensionOf(formStr(VendTable))]
final class VendTableForm_Extension
{
public void init()
{
#SysSystemDefinedButtons
next init();
FormCommandButtonControl attachButton= this.control(this.controlId(#SystemDefinedAttachButton)) as FormCommandButtonControl;
attachButton.visible(false);
}
}
//But when I'm adding below code for the office button it is giving me error.
[ExtensionOf(formStr(VendTable))]
final class VendTableForm_Extension
{
public void init()
{
#SysSystemDefinedButtons
next init();
FormCommandButtonControl attachButton= this.control(this.controlId(#SystemDefinedAttachButton)) as FormCommandButtonControl;
attachButton.visible(false);
FormCommandButtonControl OfficeButton= this.control(this.controlId(#SystemDefinedOfficeButton)) as FormCommandButtonControl;
OfficeButton.visible(false)
}
}
Scree shot of error is attached for the reference.
hi all..
DP CLASS [SRSReportParameterAttribute(classStr(InventQuarantineAnnouncmentContract))] class InventQuarantineAnnouncmentDP Extends SRSReportDataProviderBase { date fromDate, toDate; InventQuarantineAnnouncmentContract contract; InventQuarantineAnnouncement inventQuarantineAnnouncementTmp; } [SRSReportDataSetAttribute(tableStr(InventQuarantineAnnouncement))] public InventQuarantineAnnouncement getInventQuarantineAnnouncement() { select * from inventQuarantineAnnouncementTmp; return inventQuarantineAnnouncementTmp; } public void populateTmpTable(date _fromDate, date _toDate) { InventQuarantineOrder inventQuarantineOrder; //CompanyInfo companyInfo = CompanyInfo::find(); select * from inventQuarantineOrder where (inventQuarantineOrder.QuarantineDate >= _fromDate) && (inventQuarantineOrder.QuarantineDate <= _toDate); inventQuarantineAnnouncementTmp.clear(); inventQuarantineAnnouncementTmp.ItemId = inventQuarantineOrder.ItemId; inventQuarantineAnnouncementTmp.Name = inventQuarantineOrder.Name; inventQuarantineAnnouncementTmp.QuarantineId = inventQuarantineOrder.QuarantineId; inventQuarantineAnnouncementTmp.QuarantineDate = inventQuarantineOrder.QuarantineDate; inventQuarantineAnnouncementTmp.Qty = inventQuarantineOrder.Qty; // inventQuarantineAnnouncementTmp.Status = inventQuarantineOrder.Status; //inventQuarantineAnnouncementTmp.CompanyLogo = CompanyImage::findByRecord(companyInfo).Image; inventQuarantineAnnouncementTmp.insert(); } public void processReport() { contract = this.parmDataContract() ; fromDate = contract.parmfromDate(); ToDate = contract.parmtoDate(); this.populateTmpTable(fromDate, toDate); }i have a one row in a table of invent quarantine and when i display a report it shows multiple rows rather than one ..where is the problem?