Hi, How do i know the number of counts for self service and task user license in AX 2012 R2 CU7. I checked it in License info it is showing count zero. Where is the other place to find the count.
License count
Import excel file in Axapta but i got error Like "Currency code must be specified".
I am running this code please any one can tell me how to remove this error..
static void Excel_Upload(Args _args)
{
SysExcelApplication application;
SysExcelWorkbooks workbooks;
SysExcelWorkbook workbook;
SysExcelWorksheets worksheets;
SysExcelWorksheet worksheet;
SysExcelCells cells;
COMVariantType type;
LedgerJournalTrans transtable;
LedgerJournalId id;
AmountCurCredit credit;
AmountCurDebit debit;
FileName filename;
str journalid;
int cr;
int dr;
int row=1;
;
application = SysExcelApplication::construct();
workbooks = application.workbooks();
filename = @"C:\\ExcelUpload.xlsx";
try
{
workbooks.open(filename);
}
catch (Exception::Error)
{
throw error("File cannot be opened.");
}
workbook = workbooks.item(1);
worksheets = workbook.worksheets();
worksheet = worksheets.itemFromNum(1); // represents the current worksheet in my case it's (5)
cells=worksheet.cells();
do
{
row++;
journalid = cells.item(row, 1).value().bStr();
cr= cells.item(row, 2).value().int();
dr = cells.item(row, 3).value().int();
select transtable
where transtable.JournalNum==id;
if(transtable.JournalNum!='0')
{
ttsBegin;
transtable.JournalNum= journalid;
transtable.AmountCurCredit=cr;
transtable.AmountCurDebit=dr;
transtable.insert();
info("Done all things");
ttsCommit;
}
type = cells.item(row+1, 1).value().variantType();
}
while (type != COMVariantType::VT_EMPTY);
application.quit();
}
Ax2012 r3 contoso demo retail, error 503 while browsing 'out of box store'
Hello,
Installed latest contoso demo, most of the components seems to work fine, but I am unable to open any of:
- C1 application for store front *
- Out of box store front *
I remember I had similar issue in previos contoso demo, starting app pools in IIS helped - but it does not seem to be the case now; anyone faced same problem, and probably found solution?
regards
Tomasz
Experience with AXtend Credit?
Does someone have experience with the add-on AXtend Credit?
AXtend Credit Management extends the base functionality of Dynamics AX by introducing a whole new set of tools that allows you to thoroughly manage your customer's credit.
When Delete customer even has new
This Message appear when I want delete a customer
Function DimensionEnabledType::getFieldsForDeleteOrRename has been incorrectly called.
Project Budget Workflow Approval Issue
The below error is generated after the final approval of Project Budget though workflow.
"No account number exists for account type Cost for project *********".
how to get the description of financial dimension like "00,Pretty cash" i only need to display "Pretty cash" by coding X++
plz somebody help me to get only description to be shown
Cannot create a record in Party postal address view
When i Trying to insert address through code getting the following error Document could not be created. Error details: Cannot create a record in Party postal address view (DirPartyPostalAddressView).
Microsoft Dynamics views are read-only. Guide me to solve the issue
Aif Service Operation Issue
Hi,
I have a custom Aif service, the service has an operation to update production order status to "report as finished". When I run this operation, it returns me error, but no details. And when I run this operation method from Ax Morhpx, it works clear. My code is here:
public str prodFinished(str 30 _labelId, str 500 _relatedProd) { Args Args; str sonuc; ProdTable prodTable; ProdMultiReportFinished ProdMultiReportFinished; ProdParmReportFinished ProdParmReportFinished, ProdParmReportFinished2; ; try { ttsBegin; prodTable = ProdTable::find(_labelId); Args = new Args(); Args.parmEnum(0); Args.record(prodTable); ProdMultiReportFinished = ProdMultiReportFinished::construct(Args); RunBaseMultiParm::initParm(ProdMultiReportFinished); ProdParmReportFinished2 = ProdMultiReportFinished.defaultParmBuffer(); ProdMultiReportFinished.insert(prodTable, ProdParmReportFinished2); //Do update select firstOnly forupdate ProdParmReportFinished order by ProdParmReportFinished.RecId desc where ProdParmReportFinished.ProdId == prodTable.ProdId; ProdParmReportFinished.QtyGood = 1;//prodTable.RemainInventPhysical; ProdParmReportFinished.EndJob = false; ProdParmReportFinished.InventDimId = prodTable.InventDimId; ProdParmReportFinished.update(); ProdMultiReportFinished.run(); sonuc = "ok"; ttsCommit; } catch(Exception::Break) { sonuc = "break"; } catch(Exception::CLRError) { sonuc = "cleerror"; } catch(Exception::CodeAccessSecurity) { sonuc = "CodeAccessSecurity"; } catch(Exception::DDEerror) { sonuc = "DDEerror"; } catch(Exception::Deadlock) { sonuc = "Deadlock"; } catch(Exception::DuplicateKeyException) { sonuc = "DuplicateKeyException"; } catch(Exception::DuplicateKeyExceptionNotRecovered) { sonuc = "DuplicateKeyExceptionNotRecovered"; } catch(Exception::Error) { sonuc = "Error"; } catch(Exception::Info) { sonuc = "Info"; } catch(Exception::Internal) { sonuc = "Internal"; } catch(Exception::Numeric) { sonuc = "Numeric"; } catch(Exception::PassClrObjectAcrossTiers) { sonuc = "PassClrObjectAcrossTiers"; } catch(Exception::PassClrObjectAcrossTiers) { sonuc = "PassClrObjectAcrossTiers"; } catch(Exception::Sequence) { sonuc = "Sequence"; } catch(Exception::Timeout) { sonuc = "Timeout"; } catch(Exception::UpdateConflict) { sonuc = "UpdateConflict"; } catch(Exception::UpdateConflictNotRecovered) { sonuc = "UpdateConflictNotRecovered"; } catch(Exception::Warning) { sonuc = "Warning"; } catch { sonuc = "unknown"; } return sonuc; }
The method returns "unknown" value. Where I am wrong?
Issue Entering Vendor AP Invoices
I have a user-experience issue I'm trying to solve for AX 2012. Currently, when you enter an AP invoice on a voucher, you click the Vendor/Account drop down and you get the list of Vendors by Number and Name, but the list is driven by the Vendor Number. You either scroll to find the Vendor or hit Ctrl-G to filter to the Vendor you need. Both options take too much time when entering tons of invoices daily.
Other ERPs you can simply type the name of the Vendor and it auto-populates the field. This doesn't happen in AX since everything is driven by Vendor Number. Is there a quicker way to find and populate the Vendor account field in an AP Invoice voucher so our AP users can enter invoices more quickly? Attached is an image of the field I'm referring to. Any help is greatly appreciated.
Modify dimensions within Update operation using Connector for Dynamics problem
Hi all.
We have following problem:
We are using Connector for Dynamics to integrate information from 3rd party systems. One of integrated information is DefaultDimensions. We have own mapping helper which creates AxdType_DimensionAttributeValueSet (Dictionary) from provided string array and everything works perfect for Create operations. Correct XML is being created and correct dimensions are integrated.
The problem starts when we try to Update record. Everything would be fine but... Connector does not overwrite dimensions but adds the original ones to the new ones. XML then looks like:
<DefaultDimension>
<Values xmlns="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes">
<Value>
<Name>Department</Name>
<Value>00000002</Value>
</Value>
<Value>
<Name>CostCenter</Name>
<Value>00000001</Value>
</Value>
<Value>
<Name>CostCenter</Name>
<Value>00000001</Value>
</Value>
<Value>
<Name>Department</Name>
<Value>00000002</Value>
</Value>
</Values>
</DefaultDimension>
instead of
<DefaultDimension>
<Values xmlns="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes">
<Value>
<Name>Department</Name>
<Value>00000002</Value>
</Value>
<Value>
<Name>CostCenter</Name>
<Value>00000001</Value>
</Value>
</Values>
</DefaultDimension>
Do anyone have any experience with this?
Thanks a lot.
Purchase variance on credit lines.
Hi,
When a physical posting is created on a credit line in AX no Purchase variance gets posted. Ax appears to be using the standard cost as the purchase price and therefore no variance is created.
Example
Original line 10 @ £1 STD Cost 0.50
Physical Variance posted = -£5
When this is credited AX uses the std cost as the issue price and therefore no variance is posted.
Is this standard AX behaviour or is there a paramters which will use the purchase price as the issue price.
Thanks
Reshma
Problem while renaming primary key in a batch job
HI,
I am trying to rename primary key on CustTable but unable to get it working when run as a batch job. It works alright on Cleint though and i do not get any error.
My code looks something like this :
select firstOnly custTable
where custTable.AccountNum == tempAccountnum;
if(custTable.RecId)
{
ttsBegin;
custTable.AccountNum = accountNum;
custTable.renamePrimaryKey();
ttsCommit;
}
Microsoft.Dynamics.Ax.Xpp.InfoException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.InfoException' was thrown.
at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.callReturn(Int32 rc, interpret* ip)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.CallStatic(String className, String methodName, Object[] parameters, Type[] types, Object[] varargs, Type[] varargsTypes)
at Microsoft.Dynamics.Ax.Xpp.XppObjectBase.StaticCall(String className, String methodName, Object[] parameters, Type[] types, Object[] varargs)
at Dynamics.Ax.Application.Debug.assert(Boolean expression)
at Dynamics.Ax.Application.DimensionEnabledType.constructForSystemDefinedByTableId(Int32 _viewId, String _viewLabel, Boolean ) in DimensionEnabledType.constructForSystemDefinedByTableId.xpp:line 200
at Dynamics.Ax.Application.DimensionEnabledType.constructForSystemDefinedByTableId(Int32 _viewId)
at Dynamics.Ax.Application.DimensionEnabledType.getSystemDefinedDimensionsServer() in DimensionEnabledType.getSystemDefinedDimensionsServer.xpp:line 47
at Dynamics.Ax.Application.DimensionEnabledType.getSystemDefinedDimensions() in DimensionEnabledType.getSystemDefinedDimensions.xpp:line 16
at Dynamics.Ax.Application.DimensionEnabledType.getFieldsForDeleteOrRename(Common _table, Int32 _roleViewId, Common _tableOrig, Boolean , Boolean ) in DimensionEnabledType.getFieldsForDeleteOrRename.xpp:line 82
at Dynamics.Ax.Application.DimensionEnabledType.getFieldsForDeleteOrRename(Common _table, Int32 _roleViewId, Common _tableOrig)
at Dynamics.Ax.Application.DimensionStorage.syncRenamedValue(Common _table, Common _tableOrig, Int32 _roleViewId, Boolean ) in DimensionStorage.syncRenamedValue.xpp:line 34
at Dynamics.Ax.Application.DimensionStorage.syncRenamedValue(Common _table, Common _tableOrig)
at Dynamics.Ax.Application.CustTable.Renameprimarykey() in CustTable.renamePrimaryKey.xpp:line 11
at Dynamics.Ax.Application.MyBatch.Run() in HGDTmpCustReplace.run.xpp:line 60
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
Please advice. Not sure what is wrong.
CustomerItemStatisticsReport error.
Hi All.
today i m facing a problem in Customer/ItemStatistics report. it is default report, not customized report. everytime i got this error message.
"Function UnitOfMeasureConverter::
newFromConversionParameters has been incorrectly called.
(S)\Classes\xInfo\add
(S)\Classes\Info\add - line 94
(S)\Classes\Global\error - line 3
(S)\Classes\UnitOfMeasureConverter\newFromConversionParameters - line 37
(S)\Classes\smmSalesCustItemStatisticsDP\unitConvert - line 37
(S)\Classes\smmSalesCustItemStatisticsDP\processReport - line 70
(S)\Classes\SrsReportProviderQueryBuilder\initialize - line 59
(S)\Jobs\
"
kindly check it and let me know what i have to do?
thanks
Hassan
How do you assign a ledger account to a Counting Journal
Hey!
We have been using counting journals (Inventory & warehouse mgmt> Journals> Item counting> Counting) for the purpose of stock/ item counts, however I just realised it is not offsetting the movements to a ledger account.
I checked the set up, however was unable to select a default offset account, as it has been greyed out. (Setup> Journals> Journal names, inventory)
Is it possible to assign an offset account to a counting journal? If so HOW?
Thanks in advance
Mel
Data upgrade preprocessing script error - ReleaseUpdateTransformDB50_Basic.update_ProdRouteTrans_Worker_Live
Hello,
While running the live preprocessing scripts for the data upgrade in the AX 2009 system, I am receiving the error: "String value cannot be converted to date value in the where clause. Try using the conversion function." This is from the ReleaseUpdateTransformDB50_Basic.update_ProdRouteTrans_Worker_Live script. I don't see the query running in SQL, so I haven't been able to see why a date is being used in the where clause. I also stepped through the code and couldn't find anything that looked wrong.
Any help on this is very appreciated.
Trisha
Payroll - gross compensation not calculating state income tax
Gross up earnings are not calculating State income tax -- all other taxes Fed (fica / medi / fit) and contributions okay, even a SUTA okay , just no SIT -- the gross up automatic is set up as well, set up matches TechNet 2012 R2 CU7
Error in Report.
Problem with DLL-reference after upgrade to AX 2012 R3 CU8
Hello,
I am upgrading an 'all in one'-server til R3 CU8. The AX-environment includes retail components. After running AXUpdate and updating the application and binaries I get compilation errors when running a full compilation.
I get compilation errors in the classes where the retail .dll-file Microsoft.Dynamics.Commerce.Headquarters.RetailProxy.dll is used. This DLL is reference under References in the AOT, but this does not seem to work.
The error message I get is: "Microsoft.Dynamics.Commerce.Headquarters.RetailProxy.AxPricingDataManager is not a class"
The version number of the DLL seems correct, and I have updated it in GAC using GACUtil.
Do you have experience with this problem?
Regards
Morten Løpen